cocoapods-modularization 0.2.3 → 0.2.4
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: d885e65aa1597b77a043af9b5fad27146eb766c027067b09bf4cc8d56ccd10ef
|
4
|
+
data.tar.gz: f2250acad1b52d4312949a76b8bf6bb3c791576f9d90e7f989b4a80b75a3b5a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd418bd56f0d2f7f4870ab7e67d631c3d893707a63ed69911b3c742f12033b4ba4014d3c3712d94315450885041a373ae3912e2ddc064e1be646c962a743d00d
|
7
|
+
data.tar.gz: 57530ff3f0b755400e3cc88eda7dc1c09ceb85f5a4af6c9630659838e29f76ce9a8984cab0e2fb17e9b9cff808b9f902d18176d5708aea3a301128b6a6f24003
|
@@ -180,8 +180,10 @@ module Pod
|
|
180
180
|
|
181
181
|
private
|
182
182
|
def repo_url(name, regex)
|
183
|
+
puts "name: #{name}"
|
183
184
|
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
|
-
|
185
|
+
puts "source: #{source}, source:#{source.class}"
|
186
|
+
url = source.url if source.kind_of?(Source)
|
185
187
|
url ||= 'https://github.com/CocoaPods/Specs.git'
|
186
188
|
url
|
187
189
|
end
|
@@ -218,9 +220,7 @@ module Pod
|
|
218
220
|
end
|
219
221
|
|
220
222
|
def locate_spec_in_search_path(repo_name)
|
221
|
-
puts search_path
|
222
223
|
matched = Dir.glob("#{search_path}/**/{*, */*, */*/*}/#{repo_name}", File::FNM_CASEFOLD).min_by { |folder| folder.split('/').count }
|
223
|
-
puts matched
|
224
224
|
return matched
|
225
225
|
end
|
226
226
|
|