ocean_package 0.5.0 → 0.6.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ocean_package/fir.rb +34 -21
- data/lib/ocean_package/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 278a62419d25e625a28732bf86bf529dc840f3720733f550e1bc135e260c5289
|
4
|
+
data.tar.gz: a7852fbf63ee4f5b54e3ba8406f8e30618690e5c60e97f189bbc57b54e8dcf08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4cd1de69f766edfae7040fc5c2e3f4536e07987efafc5ec4d7e78228ae58283a3fe4b2df306777518aebd5edd10aa7f4b1cab61a74079137d1742675e9fdf6a
|
7
|
+
data.tar.gz: 2f1d0110f5a0ba8fa7f0de52ea2c4b64eda35c42803ffa21f8a3f7e90f15ef260aa38042c42da3088765da8586bc21b03599214a8d748fa5ebe16287d47931f3
|
data/Gemfile.lock
CHANGED
data/lib/ocean_package/fir.rb
CHANGED
@@ -37,11 +37,12 @@ module OceanPackage
|
|
37
37
|
|
38
38
|
# 命令:上传ipa文件到fir平台
|
39
39
|
def publish_cmd
|
40
|
+
# @ipa_file_path @change_log @log_path 需要是字符串值!!!!!
|
40
41
|
cmd = "fir publish"
|
41
|
-
cmd += " " + "#{@ipa_file_path}"
|
42
|
-
cmd += " -c " + "#{@change_log}"
|
42
|
+
cmd += " " + "'#{@ipa_file_path}'"
|
43
|
+
cmd += " -c " + "'#{@change_log}'"
|
43
44
|
cmd += " -Q"
|
44
|
-
cmd += " | tee " + "#{@log_path}"
|
45
|
+
cmd += " | tee " + "'#{@log_path}'"
|
45
46
|
|
46
47
|
Log.divider
|
47
48
|
Log.info("fir publish command: #{cmd}")
|
@@ -109,14 +110,18 @@ module OceanPackage
|
|
109
110
|
# 正则表达式匹配
|
110
111
|
pattern = /.*Release id is.*/
|
111
112
|
release_id = ''
|
112
|
-
File.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
113
|
+
if File.exist?("#{@log_path}")
|
114
|
+
File.open(@log_path, "r") do |f|
|
115
|
+
f.each_line do |line|
|
116
|
+
line_s = "#{line}"
|
117
|
+
if line_s =~ pattern
|
118
|
+
release_id = line_s.split(' ').last
|
119
|
+
break
|
120
|
+
end
|
118
121
|
end
|
119
122
|
end
|
123
|
+
else
|
124
|
+
Log.info("fir log path not exist !!!")
|
120
125
|
end
|
121
126
|
Log.info("fir release id value: #{release_id}")
|
122
127
|
release_id
|
@@ -127,14 +132,18 @@ module OceanPackage
|
|
127
132
|
# 正则表达式匹配
|
128
133
|
pattern = /.*Published succeed:.*/
|
129
134
|
link = ''
|
130
|
-
File.
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
135
|
+
if File.exist?("#{@log_path}")
|
136
|
+
File.open(@log_path, "r") do |f|
|
137
|
+
f.each_line do |line|
|
138
|
+
line_s = "#{line}"
|
139
|
+
if line_s =~ pattern
|
140
|
+
link = line_s.split(' ').last
|
141
|
+
break
|
142
|
+
end
|
136
143
|
end
|
137
144
|
end
|
145
|
+
else
|
146
|
+
Log.info("fir log path not exist !!!")
|
138
147
|
end
|
139
148
|
Log.info("fir link value: #{link}")
|
140
149
|
link
|
@@ -156,14 +165,18 @@ module OceanPackage
|
|
156
165
|
# 正则表达式匹配
|
157
166
|
pattern = /.*Local qrcode file:.*/
|
158
167
|
path = ''
|
159
|
-
File.
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
168
|
+
if File.exist?("#{@log_path}")
|
169
|
+
File.open(@log_path, "r") do |f|
|
170
|
+
f.each_line do |line|
|
171
|
+
line_s = "#{line}"
|
172
|
+
if line_s =~ pattern
|
173
|
+
release_id = line_s.split(' ').last
|
174
|
+
break
|
175
|
+
end
|
165
176
|
end
|
166
177
|
end
|
178
|
+
else
|
179
|
+
Log.info("fir log path not exist !!!")
|
167
180
|
end
|
168
181
|
Log.info("fir qr code path value: #{path}")
|
169
182
|
path
|