danger 5.8.0 → 5.8.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9fab94213fea25585d4c9d5f5a441ab57a1be71b
|
4
|
+
data.tar.gz: e047ee2dd1e99f5ad8a08a1a28ae0d08d55ba0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa6090fd64759712a60998e10f49845bfed69dc15b1d4e9c3972097cdf9a9da40360c50a908eea56bb14c5e7e1735c9f1c73e692d91249c4c8dab0028f2d3fd0
|
7
|
+
data.tar.gz: cb6ff3a94aee20ce380095c3d4aaee784e8eb66f0e75509512ecd7e3aa65bf349ff6dbe1dcb28a5b41460ac6a7d2892d9e537b4158a32716448ded715d0cdb79
|
@@ -197,9 +197,7 @@ module Danger
|
|
197
197
|
instance_eval do
|
198
198
|
# rubocop:disable Lint/RescueException
|
199
199
|
begin
|
200
|
-
|
201
|
-
eval(contents, nil, path.to_s)
|
202
|
-
# rubocop:enable Eval
|
200
|
+
eval_file(contents, path)
|
203
201
|
rescue Exception => e
|
204
202
|
message = "Invalid `#{path.basename}` file: #{e.message}"
|
205
203
|
raise DSLError.new(message, path, e.backtrace, contents)
|
@@ -295,6 +293,10 @@ module Danger
|
|
295
293
|
|
296
294
|
private
|
297
295
|
|
296
|
+
def eval_file(contents, path)
|
297
|
+
eval(contents, nil, path.to_s) # rubocop:disable Eval
|
298
|
+
end
|
299
|
+
|
298
300
|
def print_list(title, rows)
|
299
301
|
unless rows.empty?
|
300
302
|
ui.title(title) do
|
@@ -76,11 +76,11 @@ module Danger
|
|
76
76
|
http.request(req)
|
77
77
|
end
|
78
78
|
|
79
|
-
# show error to the user when
|
79
|
+
# show error to the user when Bitbucket Server returned an error
|
80
80
|
case res
|
81
81
|
when Net::HTTPClientError, Net::HTTPServerError
|
82
82
|
# HTTP 4xx - 5xx
|
83
|
-
abort "\nError posting comment to
|
83
|
+
abort "\nError posting comment to Bitbucket Server: #{res.code} (#{res.message}) - #{res.body}\n\n"
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
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.8.
|
4
|
+
version: 5.8.1
|
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-11-
|
12
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
300
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.
|
301
|
+
rubygems_version: 2.6.11
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: Like Unit Tests, but for your Team Culture.
|