gct 0.4.6 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gct/command.rb +1 -0
- data/lib/gct/command/autotag.rb +4 -1
- data/lib/gct/command/update/tag.rb +3 -5
- data/lib/gct/gct_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c5c117dbfd9e96df0f31a971dda44635658c33d6acb234829862932ed11377c
|
4
|
+
data.tar.gz: 4c23d03ead1cb929deb885ab802a83531afb0e8f6dcb3d1ffccfc1d433544496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f407f15fa81efaf3233f67b6021551b0ebe62590d086e0f079ca7d2932815529be4f02ed258e126d44241bc9b1cb8a00eb3617bd0f9dd2082c50276ea14e6a99
|
7
|
+
data.tar.gz: a1a85a16d3d6c6e18d2a45e2c5fba28e0981102539dbd6ff9b458572765d0b3ceff4cffde1e72088ecdb54418ed7a27018c1c64d82a50e82386925187b59b585
|
data/lib/gct/command.rb
CHANGED
data/lib/gct/command/autotag.rb
CHANGED
@@ -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
|
252
|
+
sql = "select * from tag where priority = (select MAX(priority) from tag) and project_version = '#{@version}' and tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement}"
|
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
|
data/lib/gct/gct_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jieming
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|