motion-cocoapods 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/motion/project/cocoapods.rb +34 -1
  3. metadata +9 -13
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a6515bb61266bad77ded4c9f831a9440aed449e
4
+ data.tar.gz: 994cc2b82fa82f326e86696e2339fccef531eff7
5
+ SHA512:
6
+ metadata.gz: c6d54b304477048265ed2ab7702078eb8f5fe3ed2827637532da4c8468ef97d7d102887d90e5c28f8e59edd4c0df1ce024eec47ee7e022583ad6dc7a7edd9cc5
7
+ data.tar.gz: 29f060ffc2213922b8563ac275a4be19baea01f5f69dcd3554b963e37d8a10b809e52f25a0ef66b8f369efab21b398f36a566febc613f1e386d800f4789a2ff0
@@ -51,7 +51,7 @@ module Motion::Project
51
51
  end
52
52
 
53
53
  class CocoaPods
54
- VERSION = '1.2.1'
54
+ VERSION = '1.2.2'
55
55
  PODS_ROOT = 'vendor/Pods'
56
56
 
57
57
  def initialize(config)
@@ -110,6 +110,8 @@ module Motion::Project
110
110
  bridgesupport_file.delete
111
111
  end
112
112
 
113
+ install_resources
114
+
113
115
  @config.vendor_project(PODS_ROOT, :xcode,
114
116
  :target => 'Pods',
115
117
  :headers_dir => 'Headers',
@@ -158,6 +160,37 @@ module Motion::Project
158
160
  Xcodeproj::Config.new(path)
159
161
  end
160
162
 
163
+ def resources_dir
164
+ Pathname.new(@config.project_dir) + PODS_ROOT + 'Resources'
165
+ end
166
+
167
+ def resources
168
+ resources = []
169
+ pods_resources_path = Pathname.new(@config.project_dir) + PODS_ROOT + "Pods-resources.sh"
170
+ File.open(pods_resources_path) { |f|
171
+ f.each_line do |line|
172
+ if matched = line.match(/install_resource\s+'(.*)'/)
173
+ resources << Pathname.new(@config.project_dir) + PODS_ROOT + matched[1]
174
+ end
175
+ end
176
+ }
177
+ resources
178
+ end
179
+
180
+ def install_resources
181
+ FileUtils.mkdir_p(resources_dir)
182
+ resources.each do |file|
183
+ begin
184
+ FileUtils.cp_r file, resources_dir
185
+ rescue ArgumentError => exc
186
+ unless exc.message =~ /same file/
187
+ raise
188
+ end
189
+ end
190
+ end
191
+ @config.resources_dirs << resources_dir.to_s
192
+ end
193
+
161
194
  def inspect
162
195
  ''
163
196
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-cocoapods
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
5
- prerelease:
4
+ version: 1.2.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Laurent Sansonetti
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
11
+ date: 2013-03-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cocoapods
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.14.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.14.0
30
27
  description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods
@@ -40,26 +37,25 @@ files:
40
37
  - LICENSE
41
38
  homepage: http://www.rubymotion.com
42
39
  licenses: []
40
+ metadata: {}
43
41
  post_install_message:
44
42
  rdoc_options: []
45
43
  require_paths:
46
44
  - lib
47
45
  required_ruby_version: !ruby/object:Gem::Requirement
48
- none: false
49
46
  requirements:
50
- - - ! '>='
47
+ - - '>='
51
48
  - !ruby/object:Gem::Version
52
49
  version: '0'
53
50
  required_rubygems_version: !ruby/object:Gem::Requirement
54
- none: false
55
51
  requirements:
56
- - - ! '>='
52
+ - - '>='
57
53
  - !ruby/object:Gem::Version
58
54
  version: '0'
59
55
  requirements: []
60
56
  rubyforge_project:
61
- rubygems_version: 1.8.23
57
+ rubygems_version: 2.0.0
62
58
  signing_key:
63
- specification_version: 3
59
+ specification_version: 4
64
60
  summary: CocoaPods integration for RubyMotion projects
65
61
  test_files: []