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 +5 -5
- data/lib/danger/commands/runner.rb +10 -0
- data/lib/danger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eca39151f7232a27b7fc9f54c06dc434d475bd85
|
4
|
+
data.tar.gz: 6d135a5b57185143b620273b0f3c39a40e502b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/danger/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|