motion-cocoapods 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -30,7 +30,7 @@ dependency manager.
30
30
  Motion::Project::App.setup do |app|
31
31
  # ...
32
32
  app.pods do
33
- dependency 'JSONKit'
33
+ pod 'JSONKit'
34
34
  end
35
35
  end
36
36
 
@@ -47,7 +47,7 @@ module Motion::Project
47
47
  end
48
48
 
49
49
  class CocoaPods
50
- VERSION = '1.0.5'
50
+ VERSION = '1.1.0'
51
51
  PODS_ROOT = 'vendor/Pods'
52
52
 
53
53
  def initialize(config)
@@ -61,11 +61,15 @@ module Motion::Project
61
61
  else
62
62
  cp_config.silent = true
63
63
  end
64
- cp_config.rootspec = @podfile unless cocoapods_v06_and_higher?
65
- cp_config.integrate_targets = false if cocoapods_v06_and_higher?
64
+ cp_config.integrate_targets = false
66
65
  cp_config.project_root = Pathname.new(File.expand_path(config.project_dir)) + 'vendor'
67
66
  end
68
67
 
68
+ def pod(*name_and_version_requirements, &block)
69
+ @podfile.pod(*name_and_version_requirements, &block)
70
+ end
71
+
72
+ # Deprecated.
69
73
  def dependency(*name_and_version_requirements, &block)
70
74
  @podfile.dependency(*name_and_version_requirements, &block)
71
75
  end
@@ -85,11 +89,6 @@ module Motion::Project
85
89
  installed_pods_before = installed_pods
86
90
  end
87
91
 
88
- unless cocoapods_v06_and_higher?
89
- pods_installer.project.build_configuration("Debug").buildSettings["IPHONEOS_DEPLOYMENT_TARGET"] = @config.deployment_target
90
- pods_installer.project.build_configuration("Release").buildSettings["IPHONEOS_DEPLOYMENT_TARGET"] = @config.deployment_target
91
- end
92
-
93
92
  pods_installer.install!
94
93
 
95
94
  # Let RubyMotion re-generate the BridgeSupport file whenever the list of
@@ -122,21 +121,8 @@ module Motion::Project
122
121
 
123
122
  def pods_xcconfig
124
123
  pods_installer.target_installers.find do |target_installer|
125
- if cocoapods_v06_and_higher?
126
- target_installer.target_definition.name == :default
127
- else
128
- target_installer.definition.name == :default
129
- end
124
+ target_installer.target_definition.name == :default
130
125
  end.xcconfig
131
126
  end
132
-
133
- def cocoapods_v06_and_higher?
134
- self.class.cocoapods_v06_and_higher?
135
- end
136
-
137
- def self.cocoapods_v06_and_higher?
138
- # last 0.5.x version of CP
139
- Gem::Version.new(Pod::VERSION) > Gem::Version.new('0.5.1')
140
- end
141
127
  end
142
128
  end
metadata CHANGED
@@ -1,78 +1,68 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: motion-cocoapods
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 5
9
- version: 1.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Laurent Sansonetti
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-07-03 00:00:00 +02:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- segments:
26
- - 0
27
- - 5
28
- - 1
29
- version: 0.5.1
30
- requirement: *id001
12
+ date: 2012-07-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
31
15
  name: cocoapods
32
- prerelease: false
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.9.1
33
22
  type: :runtime
34
- description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods dependency manager.
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.1
30
+ description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods
31
+ dependency manager.
35
32
  email: lrz@hipbyte.com
36
33
  executables: []
37
-
38
34
  extensions: []
39
-
40
35
  extra_rdoc_files: []
41
-
42
- files:
36
+ files:
43
37
  - lib/motion/project/cocoapods.rb
44
38
  - lib/motion-cocoapods.rb
45
39
  - README.rdoc
46
40
  - LICENSE
47
- has_rdoc: true
48
41
  homepage: http://www.rubymotion.com
49
42
  licenses: []
50
-
51
43
  post_install_message:
52
44
  rdoc_options: []
53
-
54
- require_paths:
45
+ require_paths:
55
46
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- segments:
61
- - 0
62
- version: "0"
63
- required_rubygems_version: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ segments:
68
54
  - 0
69
- version: "0"
55
+ hash: 1442407846404016045
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
70
62
  requirements: []
71
-
72
63
  rubyforge_project:
73
- rubygems_version: 1.3.6
64
+ rubygems_version: 1.8.23
74
65
  signing_key:
75
66
  specification_version: 3
76
67
  summary: CocoaPods integration for RubyMotion projects
77
68
  test_files: []
78
-