cocoapods-tdfire-binary 1.4.28 → 1.4.29
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d4a1b4cacbc181f81a9725f18043d5eca620a1c
|
4
|
+
data.tar.gz: 1e48014ce5f7ec44512ae69abd40506ee1e49288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aa6527885f4dfe18bf3ef1b995febe3173686f0a9c3e9ddfce04ff6dbcc3912409c89b5ff00f3a978544d8247def8104de01a0087c9d9cb6f91bdb39ed6d642
|
7
|
+
data.tar.gz: a010de65dd979949ee1a8479692ad72b37f0b485b7b6cfbaee4e218c1536eef564ce7f6194369b3f7e3e708beb9bf9c0f0a6a65c7591a085cd5176b4ae1e9b71
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
-
|
30
|
+
if @without_ask
|
31
|
+
binary_config.clone_default_config
|
32
|
+
else
|
33
|
+
hash = binary_config.setting_hash
|
24
34
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
40
|
+
binary_config.config_with_setting(hash)
|
41
|
+
end
|
31
42
|
|
32
43
|
@asker.done_message
|
33
44
|
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.
|
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
|
+
date: 2018-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|