Skip to content

Instantly share code, notes, and snippets.

View alloy's full-sized avatar

Eloy Durán alloy

View GitHub Profile
resources/
├── Default-568h@2x.png
└── lessons
├── lesson_0
│   ├── entry_0
│   │   └── entry_0
│   ├── entry_1
│   │   └── entry_1
│   ├── entry_2
│   │   └── entry_2
diff --git a/lib/motion/project/template/osx/config.rb b/lib/motion/project/template/osx/config.rb
index 33ac788..4c128ee 100644
--- a/lib/motion/project/template/osx/config.rb
+++ b/lib/motion/project/template/osx/config.rb
@@ -173,7 +173,7 @@ def deployment_target
def supported_sdk_versions(versions)
versions.reverse.find { |vers|
- Util::Version.new(osx_version) <= Util::Version.new(vers) && File.exist?(datadir(vers))
+ Util::Version.new(deployment_target) <= Util::Version.new(vers) && File.exist?(datadir(vers))
@alloy
alloy / 4.rb
Last active August 29, 2015 14:07 — forked from anonymous/4.rb
module ProMotion
class StaticPageView < PageView
def self.method_missing(method_name, obj_or_klass, *args)
options = args.last if args.last.is_a?(Hash)
options ||= {}
# then do rest
end
end
end
@alloy
alloy / gist:b32cec84e89a74228d63
Created October 6, 2014 13:40
Feature request: official issue ‘voting’ system.

Hi hubbers,

Since the good old Rails days (http://twitter.com/alloy/status/519116631088586752) the +1’s in comments have taken on a life of their own and are nowadays often only a burden to repo collaborators. (They add noise and can be perceived as passive-aggressive nudges.)

As unfortunately very few people read CONTRIBUTING guidelines, this phenomena is hard to combat and can be very tiresome. Therefore I’d like to propose the following feature (which was suggested to me http://twitter.com/StepanHruda/status/519116960446312448):

  • As an issue filer, I would like to be able to mark an issue as being open for ‘votes’, so that I can signal to people that +1’s are appreciated and I can easily keep a tally.
  • As a repo admin, I would like to be able to disallow +1’s on a repo-wide basis, so that tickets that are not marked as taking votes are kept clean.

While we could possibly make a tool for the automation of the latter ourselves (by deleting such comments), it would probably work better when implemen

krzakmac:Xcodeproj krzak$ git pull
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 1 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://github.com/CocoaPods/Xcodeproj
c593b33..66321b0 CoreFoundation-Fiddle -> origin/CoreFoundation-Fiddle
Updating c593b33..66321b0
Fast-forward
spec/project_spec.rb | 10 +++++-----
Bacon::Error: File comparison error `SampleApp.xcodeproj.yaml` for install_remove_pod:
--- DIFF -----------------------------------------------------------------------
-{"File References"=>[{"SampleApp"=>["CPAppDelegate.h", "CPAppDelegate.m", {"MainMenu.xib"=>["en"]}, {"Supporting Files"=>["SampleApp-Info.plist", {"InfoPlist.strings"=>["en"]}, "main.m", "SampleApp-Prefix.pch", {"Credits.rtf"=>["en"]}]}]}, {"Frameworks"=>["Cocoa.framework", {"Other Frameworks"=>["AppKit.framework", "CoreData.framework", "Foundation.framework"]}, "libPods.a"]}, {"Products"=>["SampleApp.app"]}, {"Pods"=>["Pods.debug.xcconfig", "Pods.release.xcconfig"]}], "Targets"=>[{"SampleApp"=>{"Build Phases"=>[{"SourcesBuildPhase"=>["main.m", "CPAppDelegate.m"]}, {"FrameworksBuildPhase"=>["Cocoa.framework", "libPods.a"]}, {"ResourcesBuildPhase"=>["InfoPlist.strings", "Credits.rtf", "MainMenu.xib"]}, {"Copy Pods Resources"=>[]}], "Build Configurations"=>[{"Debug"=>{"Build Settings"=>{"COMBINE_HIDPI_IMAGES"=>"YES", "GCC_PRECOMPILE_PREFIX_HEADE
~/C/C/CocoaPods [master] » rake spec:integration
bundle exec bacon spec/integration.rb
pod
Pod install
Integrates a project with CocoaPods
✓ $ pod install --no-repo-update
✓ Podfile.lock (2 ms)
✓ Pods/Headers/Build/Reachability/Reachability.h
✓ Pods/Headers/Public/Reachability/Reachability.h
$ mkdir RadarReproduction18536864
$ cd RadarReproduction18536864
$ sudo gem install cocoapods
Password:
[SNIP]
N gems installed
$ echo -e "source 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8'\npod 'AFNetworking'" > Podfile
diff --git a/lib/motion/project/template/osx/builder.rb b/lib/motion/project/template/osx/builder.rb
index 900602e..f66e3e4 100644
--- a/lib/motion/project/template/osx/builder.rb
+++ b/lib/motion/project/template/osx/builder.rb
@@ -42,14 +42,62 @@ def archive(config)
end
end
+ # First signs all frameworks (and the individual versions therein) that it
+ # finds in the `Frameworks` directory of the application bundle in the build
This file has been truncated, but you can view the full file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style media="all" type="text/css">
table {
border-collapse: collapse;
border: 1px solid #CCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;