cocoapods-modularization 0.2.3 → 0.2.5
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec0c25e5e2dd443ebac5041a50328d19289d952c50b0790f6d6f4364ec5ab537
|
|
4
|
+
data.tar.gz: ca48ce09723e315b8f947f8f8a5eac3443a0b8932a95ede6b63fe521d85147f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9145146bf9136111c25ed4fda7f5043a4e7844530ff5935f1e3f8e543b615e7e5a2f152ccee77c23af5273c82ea7fe092fa2bfa32aa61f8d21d6395551551762
|
|
7
|
+
data.tar.gz: 0fe88e93434e9afcb712a83ca0b6126ca9d1bc1444f27489e8280d4400fb30cb60a39b577142bc79c4e24817ad3d1e0acd9cad90bb34cb580c7252eb86b6ec09
|
|
@@ -11,7 +11,14 @@ module Pod
|
|
|
11
11
|
Fetch build.rb from remote
|
|
12
12
|
DESC
|
|
13
13
|
|
|
14
|
+
def self.options
|
|
15
|
+
[
|
|
16
|
+
['--binary-only', 'Use this option impact this repo is a binary only repo']
|
|
17
|
+
].concat(super)
|
|
18
|
+
end
|
|
19
|
+
|
|
14
20
|
def initialize(argv)
|
|
21
|
+
@binary = argv.flag?('local')
|
|
15
22
|
super
|
|
16
23
|
end
|
|
17
24
|
|
|
@@ -24,6 +31,7 @@ module Pod
|
|
|
24
31
|
if File.exist?(build_path)
|
|
25
32
|
FileUtils.rm_rf(build_path)
|
|
26
33
|
end
|
|
34
|
+
|
|
27
35
|
`git clone https://gitlab.appshahe.com/ios-specs/template.git .build`
|
|
28
36
|
|
|
29
37
|
unless File.exist?("#{Dir.pwd}/.build")
|
|
@@ -31,7 +39,11 @@ module Pod
|
|
|
31
39
|
return
|
|
32
40
|
end
|
|
33
41
|
|
|
34
|
-
|
|
42
|
+
if @binary
|
|
43
|
+
FileUtils.mv("#{Dir.pwd}/.build/Binary/build.rb", "#{Dir.pwd}/build.rb")
|
|
44
|
+
else
|
|
45
|
+
FileUtils.mv("#{Dir.pwd}/.build/build.rb", "#{Dir.pwd}/build.rb")
|
|
46
|
+
end
|
|
35
47
|
FileUtils.rm_rf("#{Dir.pwd}/.build")
|
|
36
48
|
end
|
|
37
49
|
end
|
|
@@ -181,7 +181,7 @@ module Pod
|
|
|
181
181
|
private
|
|
182
182
|
def repo_url(name, regex)
|
|
183
183
|
source = Config.instance.sources_manager.all.select { |e| e.name =~ /#{regex}/ }.find { |e| Dir.exists?("#{Pathname.new(File.expand_path('~'))}/.cocoapods/repos/#{e}/#{name}") }
|
|
184
|
-
url = source.url if source.kind_of?(Source
|
|
184
|
+
url = source.url if source.kind_of?(Source)
|
|
185
185
|
url ||= 'https://github.com/CocoaPods/Specs.git'
|
|
186
186
|
url
|
|
187
187
|
end
|
|
@@ -218,9 +218,7 @@ module Pod
|
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
def locate_spec_in_search_path(repo_name)
|
|
221
|
-
puts search_path
|
|
222
221
|
matched = Dir.glob("#{search_path}/**/{*, */*, */*/*}/#{repo_name}", File::FNM_CASEFOLD).min_by { |folder| folder.split('/').count }
|
|
223
|
-
puts matched
|
|
224
222
|
return matched
|
|
225
223
|
end
|
|
226
224
|
|