danger 5.3.4 → 5.3.5

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
2
  SHA1:
3
- metadata.gz: fd328f55fb2fe6ee6a1e0620c24e030dbb6186ca
4
- data.tar.gz: ce734963c70c59a01bc08d615a01a1e398a484a0
3
+ metadata.gz: 7a125bab695ff0f61f64ca3ecb36d6e63b096b9d
4
+ data.tar.gz: 157d76ea80c2eebe6c747cd31d4d23e39dbec3df
5
5
  SHA512:
6
- metadata.gz: cb16654b5163a1852a4ef3a371c799398fdd1d84944da4de149ba9ba4b2cdcf492500713ba51558469fe2a23e0324fa5a6f0186037ef3497671b2bd12d67fa1f
7
- data.tar.gz: 15f2f3a72bce7776860936abd2a2e3dd0b1bc43a3b3d84fc2baf2a0bce40a265f75e79b6fb3ac1ed13dc9865f6662942b09bd1e34713f5a4fbcc6ae77b52bffc
6
+ metadata.gz: bf6c4041c36f6a2af052b02608f709db4fc1cb48a17b69c255ee87f9d72824a62f5058cd2aa01e4ce9f5493b43085c2371881b6d5ccbd2f5e52e5823ac993e5a
7
+ data.tar.gz: 3d91b2f6304630f93b8ab6819a501d659866d8f031896a9eb939ce64e5c5501cc472217cfebb457eb40dc98603309b2dd1d4bd629f915faab235304f0909d7fe
@@ -272,7 +272,7 @@ module Danger
272
272
  ui.header "Useful info"
273
273
  ui.say "- One of the best ways to test out new rules locally is via " + "bundle exec danger pr".yellow + "."
274
274
  ui.pause 0.6
275
- ui.say "- You can have Danger output all of its variables to the console via the " + "--verbose".yellow + " option."
275
+ ui.say "- You can have Danger output all of her variables to the console via the " + "--verbose".yellow + " option."
276
276
  ui.pause 0.6
277
277
  ui.say "- You can look at the following Dangerfiles to get some more ideas:"
278
278
  ui.pause 0.6
@@ -286,8 +286,8 @@ module Danger
286
286
  ui.pause 0.6
287
287
 
288
288
  ui.say "And you're good to go. Danger is a collaboration between Orta Therox, Gem 'Danger' McShane and Felix Krause."
289
- ui.say "If you like it, let others know. If you want to know more, follow " + "@orta".yellow + " and " + "@KrauseFx".yellow + " on Twitter."
290
- ui.say "If you don't like it, help us improve it! xxx"
289
+ ui.say "If you like Danger, let others know. If you want to know more, follow " + "@orta".yellow + " and " + "@KrauseFx".yellow + " on Twitter."
290
+ ui.say "If you don't like Danger, help us improve the project! xxx"
291
291
  end
292
292
 
293
293
  def darwin?
@@ -4,6 +4,7 @@ require "faraday/http_cache"
4
4
  require "fileutils"
5
5
  require "octokit"
6
6
  require "tmpdir"
7
+ require "no_proxy_fix"
7
8
 
8
9
  module Danger
9
10
  class PR < Runner
@@ -14,7 +15,8 @@ module Danger
14
15
  [
15
16
  ["--clear-http-cache", "Clear the local http cache before running Danger locally."],
16
17
  ["--pry", "Drop into a Pry shell after evaluating the Dangerfile."],
17
- ["--dangerfile=<path/to/dangerfile>", "The location of your Dangerfile"]
18
+ ["--dangerfile=<path/to/dangerfile>", "The location of your Dangerfile"],
19
+ ["--verify-ssl", "Verify SSL in Octokit"]
18
20
  ]
19
21
  end
20
22
 
@@ -24,6 +26,7 @@ module Danger
24
26
  @pr_url = argv.shift_argument
25
27
  @clear_http_cache = argv.flag?("clear-http-cache", false)
26
28
  dangerfile = argv.option("dangerfile", "Dangerfile")
29
+ @verify_ssl = argv.flag?("verify-ssl", true)
27
30
 
28
31
  # Currently CLAide doesn't support short option like -h https://github.com/CocoaPods/CLAide/pull/60
29
32
  # when user pass in -h, mimic the behavior of passing in --help.
@@ -71,6 +74,9 @@ module Danger
71
74
  # setup caching for Github calls to hitting the API rate limit too quickly
72
75
  cache_file = File.join(cache_dir, "danger_local_cache")
73
76
  cache = HTTPCache.new(cache_file, clear_cache: @clear_http_cache)
77
+ Octokit.configure do |config|
78
+ config.connection_options[:ssl] = { verify: @verify_ssl }
79
+ end
74
80
  Octokit.middleware = Faraday::RackBuilder.new do |builder|
75
81
  builder.use Faraday::HttpCache, store: cache, serializer: Marshal, shared_cache: false
76
82
  builder.use Octokit::Response::RaiseError
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.3.4".freeze
2
+ VERSION = "5.3.5".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.3.4
4
+ version: 5.3.5
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: 2017-07-25 00:00:00.000000000 Z
12
+ date: 2017-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -151,6 +151,20 @@ dependencies:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0.1'
154
+ - !ruby/object:Gem::Dependency
155
+ name: no_proxy_fix
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :runtime
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
154
168
  - !ruby/object:Gem::Dependency
155
169
  name: bundler
156
170
  requirement: !ruby/object:Gem::Requirement