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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 344dac21c822cdd2058be666eb3dbbb434d2c8b380db248001213a6f09134317
4
- data.tar.gz: 7368eceae90f6301962531d28c13835271542919299aafecb2710c47f48e45fa
3
+ metadata.gz: 278a62419d25e625a28732bf86bf529dc840f3720733f550e1bc135e260c5289
4
+ data.tar.gz: a7852fbf63ee4f5b54e3ba8406f8e30618690e5c60e97f189bbc57b54e8dcf08
5
5
  SHA512:
6
- metadata.gz: 976f454f79dc357c77d352861bf0af1b41125d8359ed3bae1edc9a7899efdffe1137c916d933633d291d56e09acd9486d89a32aefad3cb42997ded29e8d9f754
7
- data.tar.gz: dfdeadea4295b8d84d3509b6cfef25f89e1daed4563d47a95c0a9705e72514f394f10fc7d8bb412af87eeed1f527613e5ddbb0d236e50b4afdcb2934ac615266
6
+ metadata.gz: e4cd1de69f766edfae7040fc5c2e3f4536e07987efafc5ec4d7e78228ae58283a3fe4b2df306777518aebd5edd10aa7f4b1cab61a74079137d1742675e9fdf6a
7
+ data.tar.gz: 2f1d0110f5a0ba8fa7f0de52ea2c4b64eda35c42803ffa21f8a3f7e90f15ef260aa38042c42da3088765da8586bc21b03599214a8d748fa5ebe16287d47931f3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ocean_package (0.5.0)
4
+ ocean_package (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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.open(@log_path, "r") do |f|
113
- f.each_line do |line|
114
- line_s = "#{line}"
115
- if line_s =~ pattern
116
- release_id = line_s.split(' ').last
117
- break
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.open(@log_path, "r") do |f|
131
- f.each_line do |line|
132
- line_s = "#{line}"
133
- if line_s =~ pattern
134
- link = line_s.split(' ').last
135
- break
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.open(@log_path, "r") do |f|
160
- f.each_line do |line|
161
- line_s = "#{line}"
162
- if line_s =~ pattern
163
- path = line_s.split(' ').last
164
- break
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
@@ -1,3 +1,3 @@
1
1
  module OceanPackage
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean_package
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ocean