gct 0.3.95 → 0.3.96

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: 3a66d72b82441d12f72050bcb612ada7ed56a250b6f647eb7e8828f126dc1285
4
- data.tar.gz: 793399e10ac9879a19a6088808f184ba2f1496749bee1b0d113c836bafa71047
3
+ metadata.gz: fc724b7284f83afb5c5b2d1bc1e4056179d5b88e45d39dd375942649f8ad760b
4
+ data.tar.gz: be50780a0fc37a2bc3fcb5bcf2c403cb8addf005f67ebd2d03ef1d5a28883809
5
5
  SHA512:
6
- metadata.gz: d9d2b0c7d925ec5f9fcb175615d87c9ca9440b836a003449d9afd70e295c46c6ea3ab91223b2cd4d98bef5c0d326c26c179bd1a9962754665a548aec9ae23138
7
- data.tar.gz: ea22f65f15803aefaed9e8b447c9d113dc93d78409aa6af4de2c004ca218a1c3057d907af0d17ab6272a25cac976bf8f8a1f83d529e5d05299f5ba66e67b7529
6
+ metadata.gz: 32c305352fa1248ca6587ca5e8e1ef7a2d7bd56bfcf30390e4b769a492f1ef17bffa13df9c3b0c4f3b87bca52ebfaba2b739ccc4b2962a2e4696842943e7479c
7
+ data.tar.gz: 0011f8848cb83ace7603b49cbbc713b905213fbf4a9c837cf5ccfb41419d054423fb62ff7b7e97bad919f85fc2c2685e01cf9fa7c35e3dd346a7f92f3acb8134
@@ -33,8 +33,13 @@ module Gct
33
33
  end
34
34
 
35
35
  def run
36
+ puts @build_status.class
36
37
  puts "build_status == #{@build_status}"
37
- build_text = @build_status ? "<font color=\"info\">CI运行成功</font>" : "<font color=\"comment\">CI运行失败</font>,请相关人员注意"
38
+ if @build_status.eql?('false')
39
+ build_text = "<font color=\"comment\">CI运行失败</font>,请相关人员注意"
40
+ elsif @build_status.eql?('true')
41
+ build_text = "<font color=\"info\">CI运行成功</font>"
42
+ end
38
43
  ci_text = "[点击跳转](#{@ci_url})"
39
44
 
40
45
  if @test
@@ -2,5 +2,5 @@ module Gct
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.3.95".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.3.96".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.3.95
4
+ version: 0.3.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming