cocoapods-tdfire-binary 1.4.28 → 1.4.29

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
  SHA1:
3
- metadata.gz: 8c44411059f78e04d123d0ca2cc8b540a01498b5
4
- data.tar.gz: c9cd018edcaec55dce0145f2f46180fff3d876cd
3
+ metadata.gz: 3d4a1b4cacbc181f81a9725f18043d5eca620a1c
4
+ data.tar.gz: 1e48014ce5f7ec44512ae69abd40506ee1e49288
5
5
  SHA512:
6
- metadata.gz: 010c201674c93d797852cc6c48b28a69a8eb6503ae9dd34d4f7bae02082bf4be6669609bf6d37ee23fae25123037e7ef65510819179e60380c60feddd406da73
7
- data.tar.gz: 365e8226d1fc9391c4fc49dd4a76a07f9cb3ad026694ea702a116183a8280d9a49b5e3abcbc78342b36c25a184abe31abebc9a73ee2e35b878d2d1ca2ae7e0e8
6
+ metadata.gz: 1aa6527885f4dfe18bf3ef1b995febe3173686f0a9c3e9ddfce04ff6dbcc3912409c89b5ff00f3a978544d8247def8104de01a0087c9d9cb6f91bdb39ed6d642
7
+ data.tar.gz: a010de65dd979949ee1a8479692ad72b37f0b485b7b6cfbaee4e218c1536eef564ce7f6194369b3f7e3e708beb9bf9c0f0a6a65c7591a085cd5176b4ae1e9b71
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-tdfire-binary (1.4.28)
4
+ cocoapods-tdfire-binary (1.4.29)
5
5
  cocoapods (~> 1.2)
6
6
  cocoapods-packager (~> 1.5.0)
7
7
 
@@ -66,6 +66,16 @@ module Pod
66
66
  sources
67
67
  end
68
68
 
69
+
70
+ def clone_default_config
71
+ FileUtils.cd(config.home_dir) do
72
+ `git clone http://git.2dfire.net/qingmu/cocoapods-tdfire-binary-config`
73
+
74
+ FileUtils.mv("cocoapods-tdfire-binary-config/#{setting_file_name}", '.')
75
+ FileUtils.rm_rf(config.home_dir + 'cocoapods-tdfire-binary-config')
76
+ end
77
+ end
78
+
69
79
  private
70
80
 
71
81
  def config
@@ -91,12 +101,7 @@ module Pod
91
101
  raise Pod::Informative, '获取不到配置信息,执行 pod binary init 初始化配置信息.'
92
102
  end
93
103
 
94
- FileUtils.cd(config.home_dir) do
95
- `git clone http://git.2dfire.net/qingmu/cocoapods-tdfire-binary-config`
96
-
97
- FileUtils.mv("cocoapods-tdfire-binary-config/#{setting_file_name}", '.')
98
- FileUtils.rm_rf(config.home_dir + 'cocoapods-tdfire-binary-config')
99
- end
104
+ clone_default_config
100
105
  end
101
106
  end
102
107
  end
@@ -12,7 +12,14 @@ module Pod
12
12
  初始化二进制插件
13
13
  DESC
14
14
 
15
+ def self.options
16
+ [
17
+ ['--without-ask', '直接下载配置'],
18
+ ].concat(super)
19
+ end
20
+
15
21
  def initialize(argv)
22
+ @without_ask = argv.flag?('without-ask')
16
23
  @asker = Pod::Tdfire::InitAsker.new
17
24
  super
18
25
  end
@@ -20,14 +27,18 @@ module Pod
20
27
  def run
21
28
  @asker.wellcome_message
22
29
 
23
- hash = binary_config.setting_hash
30
+ if @without_ask
31
+ binary_config.clone_default_config
32
+ else
33
+ hash = binary_config.setting_hash
24
34
 
25
- Pod::Tdfire::InitAsker::QUESTIONS.each do |k, v|
26
- default = hash[k] if hash
27
- hash[k] = @asker.ask_with_answer(v, default)
28
- end
35
+ Pod::Tdfire::InitAsker::QUESTIONS.each do |k, v|
36
+ default = hash[k] if hash
37
+ hash[k] = @asker.ask_with_answer(v, default)
38
+ end
29
39
 
30
- binary_config.config_with_setting(hash)
40
+ binary_config.config_with_setting(hash)
41
+ end
31
42
 
32
43
  @asker.done_message
33
44
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfireBinary
2
- VERSION = "1.4.28"
2
+ VERSION = "1.4.29"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tdfire-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.28
4
+ version: 1.4.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - tripleCC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler