gct 0.4.9 → 0.5.4

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: 3c891620cdbf1ca7ebfbfea728c7119c50bdf57681153578179651c3dd5b92de
4
- data.tar.gz: a141431922d4a1d38fc8a7feb9702da7023524eac255dde2e3433c97dd5b1b76
3
+ metadata.gz: 85d233d1ecbfa999c4a14aa6b4e74aa9276640a5817c3004062f828e2f5177ba
4
+ data.tar.gz: 3cf89d2442c723781e7810d2956103dea691dc1d9915b7acb19130e716126d81
5
5
  SHA512:
6
- metadata.gz: 924af3952e8779c161663672988ed5b590841f5e9c4dca9d1c1acccd8d578a3d18ffd39f100e8539d980d7ce5b30145bf616d2fc159ab9d48cc1673ce674a8dc
7
- data.tar.gz: 8e103f59abf58ea19c52628b947827a3b74e86aaafa7cdd42c4ab310a75b189f0530253fe1ea4106a7ab8758a5bdb50de683c76813f116c3d414e71b948e5515
6
+ metadata.gz: e26e73e2887621b495507797954db5d162cd76a0a145ae0213e2e21bf9661f248e6808bdc895aaa62902b5310e52bb9972c5b31b53fc1f0f34d84d1871e90a39
7
+ data.tar.gz: 0fa751f79b5dbf67ca993e0c9eae29d122b028628ab919f71ab56de9a75caa99f095f52f2f58b046916145b2e169bede3eb149d5bfeca83e412c277e67e50df3
@@ -92,6 +92,7 @@ module Gct
92
92
  end
93
93
 
94
94
  def auto_add_tag(tag)
95
+ puts "current tag = #{tag}"
95
96
  tag_points = tag.to_s.split('.')
96
97
  index = tag_points.length - 1
97
98
  need_add_point = tag_points[index].to_i + 1
@@ -249,7 +249,7 @@ module Gct
249
249
  db = Database::Data.new
250
250
  # 查询优先级最高的为完成打tag的数据
251
251
  where_statement = "and is_pre = " + (@pre ? "1" : "0")
252
- sql = "select * from tag where priority = (select MAX(priority) from tag where project_version = '#{@version}' and tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement})"
252
+ sql = "select * from tag where priority = (select MAX(priority) from tag where tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement}) and project_version = '#{@version}'"
253
253
  result = db.query(sql)
254
254
  vals = ""
255
255
  ins = ""
@@ -258,8 +258,11 @@ module Gct
258
258
  if row["tag_status"].eql?(SpecPublishStatus::WAITING) || row["tag_status"].eql?(SpecPublishStatus::CANCELED) || row["tag_status"].eql?(SpecPublishStatus::FAILED)
259
259
  status = SpecPublishStatus::PENDING
260
260
  name = row["pod_name"]
261
+ puts "pod name is " + name
261
262
  vals.concat("when pod_name = '#{name}' then '#{status}' ")
263
+ puts vals
262
264
  ins.concat("'#{name}',")
265
+ puts ins
263
266
  system "gct update dependency #{name} tag_status #{status}"
264
267
  skip_tag = ""
265
268
  if row["is_tag"].to_i == 1
@@ -34,7 +34,7 @@ module Gct
34
34
  db = Database::Data.new
35
35
  # 查询优先级最高的为完成打tag的数据
36
36
  where_statement = "and is_pre = " + (@pre ? "1" : "0")
37
- sql = "select * from tag where priority = (select MAX(priority) from tag where project_version = '#{@version}' and tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement})"
37
+ sql = "select * from tag where priority = (select MAX(priority) from tag where tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement}) and project_version = '#{@version}'"
38
38
  result = db.query(sql)
39
39
  puts result.count
40
40
  if result.count == 0
@@ -2,5 +2,5 @@ module Gct
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.4.9".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.5.4".freeze unless defined? Gct::VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.0.3
233
+ rubygems_version: 3.0.8
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: '"gct ios 自动化脚本工具"'