motion-cocoapods 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +26 -4
- data/lib/motion/project/cocoapods.rb +14 -3
- metadata +9 -14
data/README.rdoc
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
= motion-cocoapods
|
2
2
|
|
3
|
-
motion-cocoapods allows RubyMotion projects to integrate with the CocoaPods
|
3
|
+
motion-cocoapods allows RubyMotion projects to integrate with the CocoaPods
|
4
|
+
dependency manager.
|
5
|
+
|
4
6
|
|
5
7
|
== Requirements
|
6
8
|
|
@@ -8,17 +10,22 @@ motion-cocoapods allows RubyMotion projects to integrate with the CocoaPods depe
|
|
8
10
|
|
9
11
|
* RubyMotion 1.0 or greater (see http://www.rubymotion.com).
|
10
12
|
|
13
|
+
|
11
14
|
== Installation
|
12
15
|
|
13
16
|
$ sudo gem install motion-cocoapods
|
14
17
|
|
18
|
+
|
15
19
|
== Setup
|
16
20
|
|
17
|
-
1. Edit the +Rakefile+ of your RubyMotion project and add the following require
|
21
|
+
1. Edit the +Rakefile+ of your RubyMotion project and add the following require
|
22
|
+
line.
|
18
23
|
|
24
|
+
require 'rubygems'
|
19
25
|
require 'motion-cocoapods'
|
20
26
|
|
21
|
-
2. Still in the +Rakefile+, set your dependencies using the same language as
|
27
|
+
2. Still in the +Rakefile+, set your dependencies using the same language as
|
28
|
+
you would do in Podfiles.
|
22
29
|
|
23
30
|
Motion::Project::App.setup do |app|
|
24
31
|
# ...
|
@@ -27,7 +34,22 @@ motion-cocoapods allows RubyMotion projects to integrate with the CocoaPods depe
|
|
27
34
|
end
|
28
35
|
end
|
29
36
|
|
30
|
-
That's all. The build system will properly download the given pods and their
|
37
|
+
That's all. The build system will properly download the given pods and their
|
38
|
+
dependencies, build them and link them to your application executable.
|
39
|
+
|
40
|
+
|
41
|
+
== Options
|
42
|
+
|
43
|
+
By default the output of CocoaPods doing its work is silenced. If, however, you
|
44
|
+
would like to see the output, you can set the +COCOAPODS_VERBOSE+ env variable.
|
45
|
+
|
46
|
+
$ env COCOAPODS_VERBOSE=1 rake
|
47
|
+
|
48
|
+
On every build, CocoaPods will try to update the specification repos in
|
49
|
+
+~/.cocoapods+, if you want to skip this then set the +COCOAPODS_NO_UPDATE+ env
|
50
|
+
variable.
|
51
|
+
|
52
|
+
$ env COCOAPODS_NO_UPDATE=1 rake
|
31
53
|
|
32
54
|
|
33
55
|
== Contribute
|
@@ -35,6 +35,9 @@ module Motion::Project
|
|
35
35
|
def pods(&block)
|
36
36
|
@pods ||= Motion::Project::CocoaPods.new(self)
|
37
37
|
if block
|
38
|
+
unless ENV['COCOAPODS_NO_UPDATE']
|
39
|
+
Pod::Command::Repo.new(Pod::Command::ARGV.new(["update"])).run
|
40
|
+
end
|
38
41
|
@pods.instance_eval(&block)
|
39
42
|
@pods.install!
|
40
43
|
end
|
@@ -43,12 +46,12 @@ module Motion::Project
|
|
43
46
|
end
|
44
47
|
|
45
48
|
class CocoaPods
|
46
|
-
VERSION = '1.0.
|
49
|
+
VERSION = '1.0.3'
|
47
50
|
|
48
51
|
def initialize(config)
|
49
52
|
@config = config
|
50
53
|
@podfile = Pod::Podfile.new {}
|
51
|
-
@podfile.platform :ios
|
54
|
+
@podfile.platform :ios, :deployment_target => config.deployment_target
|
52
55
|
|
53
56
|
cp_config = Pod::Config.instance
|
54
57
|
if ENV['COCOAPODS_VERBOSE']
|
@@ -76,7 +79,15 @@ module Motion::Project
|
|
76
79
|
# For now we only support one Pods target, this will have to be expanded
|
77
80
|
# once we work on more spec support.
|
78
81
|
def install!
|
79
|
-
pods_installer
|
82
|
+
@installer = pods_installer
|
83
|
+
|
84
|
+
# CocoaPods 0.5.x backward compatibility
|
85
|
+
if @config.deployment_target && @installer.project.respond_to?(:build_configuration)
|
86
|
+
@installer.project.build_configuration("Debug").buildSettings["IPHONEOS_DEPLOYMENT_TARGET"] = @config.deployment_target
|
87
|
+
@installer.project.build_configuration("Release").buildSettings["IPHONEOS_DEPLOYMENT_TARGET"] = @config.deployment_target
|
88
|
+
end
|
89
|
+
|
90
|
+
@installer.install!
|
80
91
|
|
81
92
|
@config.vendor_project('vendor/Pods', :xcode,
|
82
93
|
:target => 'Pods',
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 3
|
9
|
+
version: 1.0.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Laurent Sansonetti
|
@@ -15,17 +14,14 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2012-05-
|
17
|
+
date: 2012-05-29 00:00:00 +02:00
|
18
|
+
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
22
|
-
type: :runtime
|
23
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
22
|
requirements:
|
26
23
|
- - ">="
|
27
24
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 9
|
29
25
|
segments:
|
30
26
|
- 0
|
31
27
|
- 5
|
@@ -33,6 +29,8 @@ dependencies:
|
|
33
29
|
version: 0.5.1
|
34
30
|
requirement: *id001
|
35
31
|
name: cocoapods
|
32
|
+
prerelease: false
|
33
|
+
type: :runtime
|
36
34
|
description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods dependency manager.
|
37
35
|
email: lrz@hipbyte.com
|
38
36
|
executables: []
|
@@ -46,6 +44,7 @@ files:
|
|
46
44
|
- lib/motion-cocoapods.rb
|
47
45
|
- README.rdoc
|
48
46
|
- LICENSE
|
47
|
+
has_rdoc: true
|
49
48
|
homepage: http://www.rubymotion.com
|
50
49
|
licenses: []
|
51
50
|
|
@@ -55,27 +54,23 @@ rdoc_options: []
|
|
55
54
|
require_paths:
|
56
55
|
- lib
|
57
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
57
|
requirements:
|
60
58
|
- - ">="
|
61
59
|
- !ruby/object:Gem::Version
|
62
|
-
hash: 3
|
63
60
|
segments:
|
64
61
|
- 0
|
65
62
|
version: "0"
|
66
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
64
|
requirements:
|
69
65
|
- - ">="
|
70
66
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
67
|
segments:
|
73
68
|
- 0
|
74
69
|
version: "0"
|
75
70
|
requirements: []
|
76
71
|
|
77
72
|
rubyforge_project:
|
78
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.6
|
79
74
|
signing_key:
|
80
75
|
specification_version: 3
|
81
76
|
summary: CocoaPods integration for RubyMotion projects
|