cocoapods-modularization 0.2.4 → 0.2.6

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: f7839de2985e7d19de49f4c5664189c59ccc72ee8f783fa6fb7a77928caf9cd9
4
+ data.tar.gz: 693e7d44750f8f1872f8fb1f6476df09cabdf1daf98f0df7537ff494e8b82bd1
5
5
  SHA512:
6
- metadata.gz: bd418bd56f0d2f7f4870ab7e67d631c3d893707a63ed69911b3c742f12033b4ba4014d3c3712d94315450885041a373ae3912e2ddc064e1be646c962a743d00d
7
- data.tar.gz: 57530ff3f0b755400e3cc88eda7dc1c09ceb85f5a4af6c9630659838e29f76ce9a8984cab0e2fb17e9b9cff808b9f902d18176d5708aea3a301128b6a6f24003
6
+ metadata.gz: 63dc94ba88df03193e1e3298e7508cc6edab857f034ea889826263f2a61b0a8c6b2cfd567ebf0af4f0ce5c374d6c39881990a79e6169f9a005398156b0b9cce1
7
+ data.tar.gz: 07cf8a7a26dd4fc1921069fef617c227d2c9568a67cb99cfb541c4fc31176f814367d6c42e96277402aff097776f197a017470607951dcae77c7a42c6a0a9364
@@ -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?('binary-only')
15
22
  super
16
23
  end
17
24
 
@@ -24,14 +31,19 @@ module Pod
24
31
  if File.exist?(build_path)
25
32
  FileUtils.rm_rf(build_path)
26
33
  end
27
- `git clone https://gitlab.appshahe.com/ios-specs/template.git .build`
34
+
35
+ `git clone git@gitlab.appshahe.com:shared-specs/template.git .build`
28
36
 
29
37
  unless File.exist?("#{Dir.pwd}/.build")
30
38
  puts "./.build not found"
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.6"
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy