danger 5.3.4 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/danger/commands/init.rb +3 -3
- data/lib/danger/commands/pr.rb +7 -1
- data/lib/danger/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a125bab695ff0f61f64ca3ecb36d6e63b096b9d
|
4
|
+
data.tar.gz: 157d76ea80c2eebe6c747cd31d4d23e39dbec3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6c4041c36f6a2af052b02608f709db4fc1cb48a17b69c255ee87f9d72824a62f5058cd2aa01e4ce9f5493b43085c2371881b6d5ccbd2f5e52e5823ac993e5a
|
7
|
+
data.tar.gz: 3d91b2f6304630f93b8ab6819a501d659866d8f031896a9eb939ce64e5c5501cc472217cfebb457eb40dc98603309b2dd1d4bd629f915faab235304f0909d7fe
|
data/lib/danger/commands/init.rb
CHANGED
@@ -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
|
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
|
290
|
-
ui.say "If you don't like
|
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?
|
data/lib/danger/commands/pr.rb
CHANGED
@@ -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
|
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.3.
|
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-
|
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
|