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: d075ef12765876d72726f62eb5c16276f74015f694543aa91b6c41b5e1648c70
4
- data.tar.gz: f7042cc2fb5e875312bdf7fb845d558143e481c63a17ab29e982971a66d61703
3
+ metadata.gz: ec0c25e5e2dd443ebac5041a50328d19289d952c50b0790f6d6f4364ec5ab537
4
+ data.tar.gz: ca48ce09723e315b8f947f8f8a5eac3443a0b8932a95ede6b63fe521d85147f6
5
5
  SHA512:
6
- metadata.gz: 55af9a46121004d21724544e50f8ac2111a8c400d565e9507447d360214e1b444fbb6ce2a603c49a0c28adc698da2d739547b5325ffebc0ba0479e90d8d23461
7
- data.tar.gz: 78b306721f37c53529643dab3f249ff5764d204c8ca5d790060367375f78f2d3dc58be46b4b23c075740c866751e4aff299466e665134b418780b6732390f2ec
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
- FileUtils.mv("#{Dir.pwd}/.build/build.rb", "#{Dir.pwd}/build.rb")
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsModularization
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.5"
3
3
  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::Manager)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-modularization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy