cocoapods-modularization 0.2.4 → 0.2.5

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: d885e65aa1597b77a043af9b5fad27146eb766c027067b09bf4cc8d56ccd10ef
4
- data.tar.gz: f2250acad1b52d4312949a76b8bf6bb3c791576f9d90e7f989b4a80b75a3b5a6
3
+ metadata.gz: ec0c25e5e2dd443ebac5041a50328d19289d952c50b0790f6d6f4364ec5ab537
4
+ data.tar.gz: ca48ce09723e315b8f947f8f8a5eac3443a0b8932a95ede6b63fe521d85147f6
5
5
  SHA512:
6
- metadata.gz: bd418bd56f0d2f7f4870ab7e67d631c3d893707a63ed69911b3c742f12033b4ba4014d3c3712d94315450885041a373ae3912e2ddc064e1be646c962a743d00d
7
- data.tar.gz: 57530ff3f0b755400e3cc88eda7dc1c09ceb85f5a4af6c9630659838e29f76ce9a8984cab0e2fb17e9b9cff808b9f902d18176d5708aea3a301128b6a6f24003
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.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -180,9 +180,7 @@ module Pod
180
180
 
181
181
  private
182
182
  def repo_url(name, regex)
183
- puts "name: #{name}"
184
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}") }
185
- puts "source: #{source}, source:#{source.class}"
186
184
  url = source.url if source.kind_of?(Source)
187
185
  url ||= 'https://github.com/CocoaPods/Specs.git'
188
186
  url
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy