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
- SHA256:
3
- metadata.gz: a72490b3f9bf6128a0ce28f1b3c3c95937b6885798b4714bd143039d190e0a68
4
- data.tar.gz: 82b296a25e0c8677c75a65acb825aaa870f15bd036c14b193ea4171d9ee00c0d
2
+ SHA1:
3
+ metadata.gz: 9fab94213fea25585d4c9d5f5a441ab57a1be71b
4
+ data.tar.gz: e047ee2dd1e99f5ad8a08a1a28ae0d08d55ba0ad
5
5
  SHA512:
6
- metadata.gz: 4a2b4e8dd96a9e6d7e546c986dc4dd843c6395baa90326c890af7f2e138c557ac1da39d3288818560179622d7f93a8114d76853b6edc5c9974473afae6d8bb25
7
- data.tar.gz: 5fc7e35ef9d4efd480cef4ef66285d8b5f323a7ff06efaf9c56930d1c2c574e59a2a665bd485c05e8674fff345738d0bde05c81b27ba868bbc6872704ca74f21
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
- # rubocop:disable Eval
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 BitBucket Server returned an error
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 BitBucket Server: #{res.code} (#{res.message})\n\n"
83
+ abort "\nError posting comment to Bitbucket Server: #{res.code} (#{res.message}) - #{res.body}\n\n"
84
84
  end
85
85
  end
86
86
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.8.0".freeze
2
+ VERSION = "5.8.1".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.8.0
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-06 00:00:00.000000000 Z
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.7.6
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.