cocoapods-generate 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '085238f62f85be96c8083741c44ba432d1c4639d606fd2fce354c37ea07bbc69'
4
- data.tar.gz: cd982fa728d5ce32d3555998623e3f3cc0ecabb5f724fae3bc1d9994a5c5ac96
3
+ metadata.gz: 88a4db4a80c8533cbe54c2813443fd0729846e1f942f87b3db085fd3b00f9d1b
4
+ data.tar.gz: a7056402d4ff8e84009902b4ff391ad12167645acfb5cdb25b3ad1c2546f94e0
5
5
  SHA512:
6
- metadata.gz: f5a696be86b359c2055246c007e28fcad24f68c44e1cc79f54756c7a1790d39ade858e0fc71ce8e6ddc9d38aafbbb2b85a3962aec5d08b6065e9e1d2b09def54
7
- data.tar.gz: ad4dc0ba42d7d75cb3202ffd627d1745344e579a06a50b5ac0bf8223884355c2908cfd80ef21ae3d51b32dcfcd2647e87498f32a55121ec50bc57d435efdabae
6
+ metadata.gz: 77378bac396ef788da55f68b07cda819e8339784f806f82ab1cac1922e5ec18766d467b8a7c700215df9ae2b841ddcf16fcaedeab8a76af57716ed1cb593db6f
7
+ data.tar.gz: 4d6bdad6928e3ce9b1753daf5a05ff7aafb24c4a5a027870de31f497803ffdd05c553aed0db62eb27d907c61373604637723a3714356e4e04ea38f759c9f41fb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -144,12 +144,28 @@ module Pod
144
144
  raise "unable to find a pod target for #{native_app_target} / #{spec}" unless pod_target
145
145
 
146
146
  if (app_host_source_dir = configuration.app_host_source_dir)
147
- files = Pathname.glob(app_host_source_dir + '**/*')
148
- .map { |f| f.relative_path_from(app_host_source_dir) }
149
- app_host_source_dir = app_host_source_dir.relative_path_from(installer.sandbox.root)
150
- group = app_project.new_group(native_app_target.name, app_host_source_dir)
151
- source_file_refs = files.map { |source_file| group.new_file(source_file) }
152
- native_app_target.add_file_references(source_file_refs)
147
+ relative_app_host_source_dir = app_host_source_dir.relative_path_from(installer.sandbox.root)
148
+ groups = {}
149
+
150
+ app_host_source_dir.find do |file|
151
+ relative_path = file.relative_path_from(app_host_source_dir)
152
+
153
+ if file.directory?
154
+ groups[relative_path] =
155
+ if (base_group = groups[relative_path.dirname])
156
+ basename = relative_path.basename
157
+ base_group.new_group(basename.to_s, basename)
158
+ else
159
+ app_project.new_group(native_app_target.name, relative_app_host_source_dir)
160
+ end
161
+
162
+ next
163
+ end
164
+
165
+ group = groups[relative_path.dirname]
166
+ source_file_ref = group.new_file(file.basename)
167
+ native_app_target.add_file_references([source_file_ref])
168
+ end
153
169
  elsif Pod::Generator::AppTargetHelper.method(:add_app_project_import).arity == -5 # CocoaPods >= 1.6
154
170
  Pod::Generator::AppTargetHelper.add_app_project_import(app_project, native_app_target, pod_target, pod_target.platform.name, native_app_target.name)
155
171
  else
@@ -51,7 +51,7 @@ module Pod
51
51
 
52
52
  self.defined_in_file = dir.join('Podfile.yaml')
53
53
 
54
- test_specs = spec.recursive_subspecs.select(&:test_specification)
54
+ test_specs = spec.recursive_subspecs.select(&:test_specification?)
55
55
 
56
56
  # Stick all of the transitive dependencies in an abstract target.
57
57
  # This allows us to force CocoaPods to use the versions / sources / external sources
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.7.3
89
+ rubygems_version: 2.7.7
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Generates Xcode workspaces from a podspec.