danger 5.6.6 → 5.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 6722a08820a85ec60408d2fc93329a826aaed25a4425638417698bee2d77df7b
4
- data.tar.gz: c0e7b028098a0b5e8d427d9516c09231b1fa068998266828a65e989995fb0c83
2
+ SHA1:
3
+ metadata.gz: eca39151f7232a27b7fc9f54c06dc434d475bd85
4
+ data.tar.gz: 6d135a5b57185143b620273b0f3c39a40e502b51
5
5
  SHA512:
6
- metadata.gz: d0e3c2710044d765c3487c2bdff272fafa01c5ddf628696022f3dd3e4c8ed80e147789ac3d88401c48c5a9e4bb0324ec5c1f9e54ce85192ecf16f9e6c70fa6eb
7
- data.tar.gz: 56d68c16a9d9c70e055455d668bf3b3dd9ad77c38763aac509d2b72b021572cd2d1c25b23d6858f9baf5cd9bdee225963febfb61b798d3871036179c6aa645c7
6
+ metadata.gz: 3810e8b529e8b0caa024baa621f9c1539a88364d36ff430c1dc884c6f9053141fb807a1bc6858d6d2bef98c48e9ab87334f4f3da7b25b330946d7b3fd0e6aee1
7
+ data.tar.gz: b5b5624c645635af6656598c98a70e250db02e6fd2c5316e22aeb3e15da292e317782f04995106048feeb48e8cd0ab15156df8bfcdad4827e3e495ac1369ce57
@@ -42,6 +42,7 @@ module Danger
42
42
  @danger_id = argv.option("danger_id", "danger")
43
43
  @cork = Cork::Board.new(silent: argv.option("silent", false),
44
44
  verbose: argv.option("verbose", false))
45
+ adjust_colored2_output(argv)
45
46
  super
46
47
  end
47
48
 
@@ -75,5 +76,14 @@ module Danger
75
76
  remove_previous_comments: @remove_previous_comments
76
77
  )
77
78
  end
79
+
80
+ private
81
+
82
+ def adjust_colored2_output(argv)
83
+ # disable/enable colored2 output
84
+ # consider it execution wide to avoid need to wrap #run and maintain state
85
+ # ARGV#options is non-destructive way to check flags
86
+ Colored2.public_send(argv.options.fetch("ansi", true) ? "enable!" : "disable!")
87
+ end
78
88
  end
79
89
  end
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.6.6".freeze
2
+ VERSION = "5.6.7".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.6
4
+ version: 5.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-10 00:00:00.000000000 Z
12
+ date: 2018-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  requirements: []
294
294
  rubyforge_project:
295
- rubygems_version: 2.7.6
295
+ rubygems_version: 2.5.2.3
296
296
  signing_key:
297
297
  specification_version: 4
298
298
  summary: Like Unit Tests, but for your Team Culture.