cocoapods-bin 0.1.13 → 0.1.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd26940d706cbaf492d900b845ab38d8ab3f3206
4
- data.tar.gz: 1b51ef8061248eb303e470c6d65985c6b8644734
3
+ metadata.gz: 4e573093df9af0838e23b54e789e0ac327ed5438
4
+ data.tar.gz: de394c9fe817917e8360258f7b88819c076ccd8f
5
5
  SHA512:
6
- metadata.gz: 168f6ec195a473800eecc3eedec30a79ca36b1e1ead1c58243cf8c6faa2059781ee7b98853791c1e6529a63a615bf69e0785e1ff4086d35eacbf45513273077a
7
- data.tar.gz: 0f5ee1ca7a1f300819bfb1a8f415e40b45b0aac9e0d9cb0d0c34140f4946f26ebadd1e6127212d918a780a7223f82c4657df7eb473d60ae18d9974302b5fdde2
6
+ metadata.gz: 8739b2c44bd8d8b2f2d995e85500d141c825e7e293fa31a77026db1b777980a80d9ebe415f7ce14907faccda1a912f51f5bf48caddb56528cb4e4569fc6f2210
7
+ data.tar.gz: f491334bb81a20c24435647d12a61871e48dfc123f067cf8ff25962c0361e41ba25b97f76ea8084c432e83fca6a968854017cba2df7b06d195bfd0d1fa67ad65
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-bin (0.1.13)
4
+ cocoapods-bin (0.1.14)
5
5
  cocoapods (~> 1.4)
6
6
  parallel
7
7
 
@@ -68,7 +68,7 @@ GEM
68
68
  nanaimo (0.2.6)
69
69
  nap (1.1.0)
70
70
  netrc (0.11.0)
71
- parallel (1.16.2)
71
+ parallel (1.17.0)
72
72
  prettybacon (0.0.2)
73
73
  bacon (~> 1.2)
74
74
  rake (12.3.2)
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
4
4
 
5
5
  module Pod
@@ -0,0 +1,22 @@
1
+ require 'cocoapods-bin/native/specification'
2
+
3
+ module Pod
4
+ class Sandbox
5
+ class PodspecFinder
6
+ def podspecs
7
+ return @specs_by_name if @specs_by_name
8
+ @specs_by_name = {}
9
+ spec_files = Pathname.glob(root + '{,*}.podspec{,.json}')
10
+ # pod 指向分支时,如果目标组件有 subspec ,并且有 template spec ,request 之后使用的 spec 不应该为 template spec
11
+ # 这里做下过滤
12
+ spec_files = spec_files.reject { |p| Specification::DEFAULT_TEMPLATE_EXTNAME.find { |e| p.to_s.end_with?(e) } }
13
+ spec_files.sort_by { |p| -p.to_path.split(File::SEPARATOR).size }.each do |file|
14
+ spec = Specification.from_file(file)
15
+ spec.validate_cocoapods_version
16
+ @specs_by_name[spec.name] = spec
17
+ end
18
+ @specs_by_name
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,5 +1,6 @@
1
1
  module Pod
2
2
  class Specification
3
3
  VALID_EXTNAME = %w[.binary.podspec.json .binary.podspec .podspec.json .podspec]
4
+ DEFAULT_TEMPLATE_EXTNAME = %w[.binary-template.podspec .binary-template.podspec.json]
4
5
  end
5
6
  end
@@ -14,4 +14,5 @@ if Pod.match_version?('~> 1.4')
14
14
  require 'cocoapods-bin/native/validator'
15
15
  require 'cocoapods-bin/native/acknowledgements'
16
16
  require 'cocoapods-bin/native/sandbox_analyzer'
17
+ require 'cocoapods-bin/native/podspec_finder'
17
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - tripleCC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-29 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -113,6 +113,7 @@ files:
113
113
  - lib/cocoapods-bin/native/pod_source_installer.rb
114
114
  - lib/cocoapods-bin/native/podfile.rb
115
115
  - lib/cocoapods-bin/native/podfile_env.rb
116
+ - lib/cocoapods-bin/native/podspec_finder.rb
116
117
  - lib/cocoapods-bin/native/resolver.rb
117
118
  - lib/cocoapods-bin/native/sandbox_analyzer.rb
118
119
  - lib/cocoapods-bin/native/source.rb