danger-gem_changes 0.0.6 → 0.0.8
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/.rubocop.yml +8 -2
- data/Gemfile.lock +137 -90
- data/LICENSE.txt +1 -1
- data/README.md +4 -3
- data/danger-gem_changes.gemspec +3 -3
- data/lib/danger_plugin.rb +19 -13
- data/lib/gem_changes/change.rb +1 -1
- data/lib/gem_changes/version.rb +1 -1
- data/spec/spec_helper.rb +4 -4
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f56d60a961c8a1fbd064d6eba294c6471039dbb2388c2644af787f1c9d3f611
|
|
4
|
+
data.tar.gz: 3548f0fb3df4a6f61ca7fce00c07267616e02d481869df69015b2f01151772e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7df0b21f15eb9573a771a6f7e09e75524079c20546b31b07bf2da2aab172d3a433fc292e5b3ae74dfe8e8a48298f2d89b2672cddf44890b7e444bb763ed47004
|
|
7
|
+
data.tar.gz: de7f70d9df66813d5797711f8b7378723c3b43027449de7ee12183c7c6666af4a03fa4e8edb40895f5901b2d203660bd76be350226929481e7fa2be9a3336a0d
|
data/.rubocop.yml
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# If you don't like these settings, just delete this file :)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
plugins:
|
|
6
6
|
- rubocop-performance
|
|
7
7
|
- rubocop-rake
|
|
8
8
|
- rubocop-rspec
|
|
9
9
|
|
|
10
10
|
AllCops:
|
|
11
|
-
TargetRubyVersion: 3.
|
|
11
|
+
TargetRubyVersion: 3.3
|
|
12
12
|
NewCops: enable
|
|
13
13
|
|
|
14
14
|
Style/StringLiterals:
|
|
@@ -152,3 +152,9 @@ Style/PercentLiteralDelimiters:
|
|
|
152
152
|
|
|
153
153
|
Security/YAMLLoad:
|
|
154
154
|
Enabled: false
|
|
155
|
+
|
|
156
|
+
Style/AccessModifierDeclarations:
|
|
157
|
+
Enabled: false
|
|
158
|
+
|
|
159
|
+
RSpec/ExampleLength:
|
|
160
|
+
Max: 10
|
data/Gemfile.lock
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
danger-gem_changes (0.0.
|
|
4
|
+
danger-gem_changes (0.0.7)
|
|
5
5
|
danger-plugin-api (~> 1.0)
|
|
6
6
|
nokogiri (~> 1.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
activesupport (8.1.3)
|
|
12
|
+
base64
|
|
13
|
+
bigdecimal
|
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
15
|
+
connection_pool (>= 2.2.5)
|
|
16
|
+
drb
|
|
17
|
+
i18n (>= 1.6, < 2)
|
|
18
|
+
json
|
|
19
|
+
logger (>= 1.4.2)
|
|
20
|
+
minitest (>= 5.1)
|
|
21
|
+
securerandom (>= 0.3)
|
|
22
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
23
|
+
uri (>= 0.13.1)
|
|
24
|
+
addressable (2.9.0)
|
|
25
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
26
|
+
ast (2.4.3)
|
|
27
|
+
base64 (0.3.0)
|
|
28
|
+
bigdecimal (4.1.2)
|
|
15
29
|
claide (1.1.0)
|
|
16
30
|
claide-plugins (0.9.2)
|
|
17
31
|
cork
|
|
@@ -19,41 +33,54 @@ GEM
|
|
|
19
33
|
open4 (~> 1.3)
|
|
20
34
|
coderay (1.1.3)
|
|
21
35
|
colored2 (3.1.2)
|
|
36
|
+
concurrent-ruby (1.3.6)
|
|
37
|
+
connection_pool (3.0.2)
|
|
22
38
|
cork (0.3.0)
|
|
23
39
|
colored2 (~> 3.1)
|
|
24
|
-
danger (9.
|
|
40
|
+
danger (9.5.3)
|
|
41
|
+
base64 (~> 0.2)
|
|
25
42
|
claide (~> 1.0)
|
|
26
43
|
claide-plugins (>= 0.9.2)
|
|
27
|
-
colored2 (
|
|
44
|
+
colored2 (>= 3.1, < 5)
|
|
28
45
|
cork (~> 0.1)
|
|
29
46
|
faraday (>= 0.9.0, < 3.0)
|
|
30
47
|
faraday-http-cache (~> 2.0)
|
|
31
|
-
git (
|
|
32
|
-
kramdown (
|
|
48
|
+
git (>= 1.13, < 3.0)
|
|
49
|
+
kramdown (>= 2.5.1, < 3.0)
|
|
33
50
|
kramdown-parser-gfm (~> 1.0)
|
|
34
|
-
no_proxy_fix
|
|
35
51
|
octokit (>= 4.0)
|
|
36
|
-
|
|
52
|
+
pstore (~> 0.1)
|
|
53
|
+
terminal-table (>= 1, < 5)
|
|
37
54
|
danger-plugin-api (1.0.0)
|
|
38
55
|
danger (> 2.0)
|
|
39
|
-
|
|
56
|
+
date (3.5.1)
|
|
57
|
+
debug (1.11.1)
|
|
40
58
|
irb (~> 1.10)
|
|
41
59
|
reline (>= 0.3.8)
|
|
42
|
-
diff-lcs (1.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
faraday
|
|
60
|
+
diff-lcs (1.6.2)
|
|
61
|
+
drb (2.2.3)
|
|
62
|
+
erb (6.0.4)
|
|
63
|
+
faraday (2.14.3)
|
|
64
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
65
|
+
json
|
|
66
|
+
logger
|
|
67
|
+
faraday-http-cache (2.7.0)
|
|
46
68
|
faraday (>= 0.8)
|
|
47
|
-
faraday-net_http (3.
|
|
48
|
-
net-http
|
|
49
|
-
ffi (1.
|
|
50
|
-
|
|
51
|
-
|
|
69
|
+
faraday-net_http (3.4.4)
|
|
70
|
+
net-http (~> 0.5)
|
|
71
|
+
ffi (1.17.4)
|
|
72
|
+
ffi (1.17.4-arm64-darwin)
|
|
73
|
+
formatador (1.2.3)
|
|
74
|
+
reline
|
|
75
|
+
git (2.3.3)
|
|
76
|
+
activesupport (>= 5.0)
|
|
52
77
|
addressable (~> 2.8)
|
|
78
|
+
process_executer (~> 1.1)
|
|
53
79
|
rchardet (~> 1.8)
|
|
54
|
-
guard (2.
|
|
80
|
+
guard (2.20.1)
|
|
55
81
|
formatador (>= 0.2.4)
|
|
56
82
|
listen (>= 2.7, < 4.0)
|
|
83
|
+
logger (~> 1.6)
|
|
57
84
|
lumberjack (>= 1.0.12, < 2.0)
|
|
58
85
|
nenv (~> 0.1)
|
|
59
86
|
notiffany (~> 0.0)
|
|
@@ -65,117 +92,137 @@ GEM
|
|
|
65
92
|
guard (~> 2.1)
|
|
66
93
|
guard-compat (~> 1.1)
|
|
67
94
|
rspec (>= 2.99.0, < 4.0)
|
|
68
|
-
|
|
69
|
-
|
|
95
|
+
i18n (1.14.8)
|
|
96
|
+
concurrent-ruby (~> 1.0)
|
|
97
|
+
io-console (0.8.2)
|
|
98
|
+
irb (1.18.0)
|
|
99
|
+
pp (>= 0.6.0)
|
|
100
|
+
prism (>= 1.3.0)
|
|
70
101
|
rdoc (>= 4.0.0)
|
|
71
102
|
reline (>= 0.4.2)
|
|
72
|
-
json (2.
|
|
73
|
-
kramdown (2.
|
|
74
|
-
rexml
|
|
103
|
+
json (2.19.9)
|
|
104
|
+
kramdown (2.5.2)
|
|
105
|
+
rexml (>= 3.4.4)
|
|
75
106
|
kramdown-parser-gfm (1.1.0)
|
|
76
107
|
kramdown (~> 2.0)
|
|
77
|
-
language_server-protocol (3.17.0.
|
|
78
|
-
|
|
108
|
+
language_server-protocol (3.17.0.5)
|
|
109
|
+
lint_roller (1.1.0)
|
|
110
|
+
listen (3.10.0)
|
|
111
|
+
logger
|
|
79
112
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
80
113
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
81
|
-
|
|
114
|
+
logger (1.7.0)
|
|
115
|
+
lumberjack (1.4.2)
|
|
82
116
|
method_source (1.1.0)
|
|
83
|
-
mini_portile2 (2.8.
|
|
117
|
+
mini_portile2 (2.8.9)
|
|
118
|
+
minitest (6.0.6)
|
|
119
|
+
drb (~> 2.0)
|
|
120
|
+
prism (~> 1.5)
|
|
84
121
|
nap (1.1.0)
|
|
85
122
|
nenv (0.3.0)
|
|
86
|
-
net-http (0.
|
|
87
|
-
uri
|
|
88
|
-
|
|
89
|
-
nokogiri (1.16.4)
|
|
123
|
+
net-http (0.9.1)
|
|
124
|
+
uri (>= 0.11.1)
|
|
125
|
+
nokogiri (1.19.3)
|
|
90
126
|
mini_portile2 (~> 2.8.2)
|
|
91
127
|
racc (~> 1.4)
|
|
92
|
-
nokogiri (1.
|
|
128
|
+
nokogiri (1.19.3-arm64-darwin)
|
|
93
129
|
racc (~> 1.4)
|
|
94
130
|
notiffany (0.1.3)
|
|
95
131
|
nenv (~> 0.1)
|
|
96
132
|
shellany (~> 0.0)
|
|
97
|
-
octokit (
|
|
98
|
-
base64
|
|
133
|
+
octokit (10.0.0)
|
|
99
134
|
faraday (>= 1, < 3)
|
|
100
135
|
sawyer (~> 0.9)
|
|
101
136
|
open4 (1.3.4)
|
|
102
|
-
parallel (1.
|
|
103
|
-
parser (3.3.1
|
|
137
|
+
parallel (2.1.0)
|
|
138
|
+
parser (3.3.11.1)
|
|
104
139
|
ast (~> 2.4.1)
|
|
105
140
|
racc
|
|
106
|
-
|
|
141
|
+
pp (0.6.3)
|
|
142
|
+
prettyprint
|
|
143
|
+
prettyprint (0.2.0)
|
|
144
|
+
prism (1.9.0)
|
|
145
|
+
process_executer (1.3.0)
|
|
146
|
+
pry (0.16.0)
|
|
107
147
|
coderay (~> 1.1)
|
|
108
148
|
method_source (~> 1.0)
|
|
109
|
-
|
|
149
|
+
reline (>= 0.6.0)
|
|
150
|
+
pstore (0.2.1)
|
|
151
|
+
psych (5.4.0)
|
|
152
|
+
date
|
|
110
153
|
stringio
|
|
111
|
-
public_suffix (
|
|
112
|
-
racc (1.
|
|
154
|
+
public_suffix (7.0.5)
|
|
155
|
+
racc (1.8.1)
|
|
113
156
|
rainbow (3.1.1)
|
|
114
|
-
rake (13.2
|
|
157
|
+
rake (13.4.2)
|
|
115
158
|
rb-fsevent (0.11.2)
|
|
116
|
-
rb-inotify (0.
|
|
159
|
+
rb-inotify (0.11.1)
|
|
117
160
|
ffi (~> 1.0)
|
|
118
|
-
rchardet (1.
|
|
119
|
-
rdoc (
|
|
161
|
+
rchardet (1.10.2)
|
|
162
|
+
rdoc (7.2.0)
|
|
163
|
+
erb
|
|
120
164
|
psych (>= 4.0.0)
|
|
121
|
-
|
|
122
|
-
|
|
165
|
+
tsort
|
|
166
|
+
regexp_parser (2.12.0)
|
|
167
|
+
reline (0.6.3)
|
|
123
168
|
io-console (~> 0.5)
|
|
124
|
-
rexml (3.
|
|
125
|
-
rspec (3.13.
|
|
169
|
+
rexml (3.4.4)
|
|
170
|
+
rspec (3.13.2)
|
|
126
171
|
rspec-core (~> 3.13.0)
|
|
127
172
|
rspec-expectations (~> 3.13.0)
|
|
128
173
|
rspec-mocks (~> 3.13.0)
|
|
129
|
-
rspec-core (3.13.
|
|
174
|
+
rspec-core (3.13.6)
|
|
130
175
|
rspec-support (~> 3.13.0)
|
|
131
|
-
rspec-expectations (3.13.
|
|
176
|
+
rspec-expectations (3.13.5)
|
|
132
177
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
133
178
|
rspec-support (~> 3.13.0)
|
|
134
|
-
rspec-mocks (3.13.
|
|
179
|
+
rspec-mocks (3.13.8)
|
|
135
180
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
136
181
|
rspec-support (~> 3.13.0)
|
|
137
|
-
rspec-support (3.13.
|
|
138
|
-
rubocop (1.
|
|
182
|
+
rspec-support (3.13.7)
|
|
183
|
+
rubocop (1.88.0)
|
|
139
184
|
json (~> 2.3)
|
|
140
|
-
language_server-protocol (
|
|
141
|
-
|
|
185
|
+
language_server-protocol (~> 3.17.0.2)
|
|
186
|
+
lint_roller (~> 1.1.0)
|
|
187
|
+
parallel (>= 1.10)
|
|
142
188
|
parser (>= 3.3.0.2)
|
|
143
189
|
rainbow (>= 2.2.2, < 4.0)
|
|
144
|
-
regexp_parser (>=
|
|
145
|
-
|
|
146
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
190
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
191
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
147
192
|
ruby-progressbar (~> 1.7)
|
|
148
|
-
unicode-display_width (>= 2.4.0, <
|
|
149
|
-
rubocop-ast (1.
|
|
150
|
-
parser (>= 3.3.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
rubocop (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
rubocop
|
|
163
|
-
rubocop-factory_bot (~> 2.22)
|
|
164
|
-
rubocop-rspec_rails (~> 2.28)
|
|
165
|
-
rubocop-rspec_rails (2.28.3)
|
|
166
|
-
rubocop (~> 1.40)
|
|
193
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
194
|
+
rubocop-ast (1.49.1)
|
|
195
|
+
parser (>= 3.3.7.2)
|
|
196
|
+
prism (~> 1.7)
|
|
197
|
+
rubocop-performance (1.26.1)
|
|
198
|
+
lint_roller (~> 1.1)
|
|
199
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
200
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
201
|
+
rubocop-rake (0.7.1)
|
|
202
|
+
lint_roller (~> 1.1)
|
|
203
|
+
rubocop (>= 1.72.1)
|
|
204
|
+
rubocop-rspec (3.10.2)
|
|
205
|
+
lint_roller (~> 1.1)
|
|
206
|
+
regexp_parser (>= 2.0)
|
|
207
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
167
208
|
ruby-progressbar (1.13.0)
|
|
168
|
-
sawyer (0.9.
|
|
209
|
+
sawyer (0.9.3)
|
|
169
210
|
addressable (>= 2.3.5)
|
|
170
211
|
faraday (>= 0.17.3, < 3)
|
|
212
|
+
securerandom (0.4.1)
|
|
171
213
|
shellany (0.0.1)
|
|
172
|
-
stringio (3.
|
|
173
|
-
terminal-table (
|
|
174
|
-
unicode-display_width (>= 1.1.1, <
|
|
175
|
-
thor (1.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
214
|
+
stringio (3.2.0)
|
|
215
|
+
terminal-table (4.0.0)
|
|
216
|
+
unicode-display_width (>= 1.1.1, < 4)
|
|
217
|
+
thor (1.5.0)
|
|
218
|
+
tsort (0.2.0)
|
|
219
|
+
tzinfo (2.0.6)
|
|
220
|
+
concurrent-ruby (~> 1.0)
|
|
221
|
+
unicode-display_width (3.2.0)
|
|
222
|
+
unicode-emoji (~> 4.1)
|
|
223
|
+
unicode-emoji (4.2.0)
|
|
224
|
+
uri (1.1.1)
|
|
225
|
+
yard (0.9.44)
|
|
179
226
|
|
|
180
227
|
PLATFORMS
|
|
181
228
|
arm64-darwin-22
|
|
@@ -197,4 +244,4 @@ DEPENDENCIES
|
|
|
197
244
|
yard
|
|
198
245
|
|
|
199
246
|
BUNDLED WITH
|
|
200
|
-
|
|
247
|
+
4.0.14
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# danger-gem_changes
|
|
2
2
|
|
|
3
|
-
This is a Danger plugin that can assist with
|
|
4
|
-
dependency changes. It can display a helpful table
|
|
5
|
-
diffs, and provides a DSL for evaluating changes
|
|
3
|
+
This is a [Danger](https://danger.systems/ruby/) plugin that can assist with
|
|
4
|
+
reviews involving Gemfile dependency changes. It can display a helpful table
|
|
5
|
+
with links to changelogs and diffs, and provides a DSL for evaluating changes
|
|
6
|
+
to your depdencies.
|
|
6
7
|
|
|
7
8
|
## Installation
|
|
8
9
|
|
data/danger-gem_changes.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
22
22
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
23
23
|
spec.metadata["issue_tracker_uri"] = "#{spec.homepage}/issues"
|
|
24
|
-
spec.required_ruby_version = ">= 3.
|
|
25
|
-
spec.
|
|
26
|
-
spec.
|
|
24
|
+
spec.required_ruby_version = ">= 3.3"
|
|
25
|
+
spec.add_dependency "danger-plugin-api", "~> 1.0"
|
|
26
|
+
spec.add_dependency "nokogiri", "~> 1.0"
|
|
27
27
|
end
|
data/lib/danger_plugin.rb
CHANGED
|
@@ -3,24 +3,20 @@
|
|
|
3
3
|
require "gem_changes"
|
|
4
4
|
|
|
5
5
|
module Danger
|
|
6
|
-
#
|
|
7
|
-
# be available from within your Dangerfile.
|
|
6
|
+
# A Danger plugin that can help code review for PRs that have changes to Gemfile.lock.
|
|
8
7
|
#
|
|
9
|
-
#
|
|
10
|
-
# the public interface documented. Danger uses [YARD](http://yardoc.org/)
|
|
11
|
-
# for generating documentation from your plugin source, and you can verify
|
|
12
|
-
# by running `danger plugins lint` or `bundle exec rake spec`.
|
|
8
|
+
# @example Print a markdown table summarizing all gem dependency changes
|
|
13
9
|
#
|
|
14
|
-
#
|
|
10
|
+
# gem_changes.summarize_changes
|
|
15
11
|
#
|
|
16
|
-
# @
|
|
17
|
-
#
|
|
18
|
-
# my_plugin.warn_on_mondays
|
|
19
|
-
#
|
|
20
|
-
# @see Aesthetikx/danger-gems
|
|
21
|
-
# @tags monday, weekends, time, rattata
|
|
12
|
+
# @see Aesthetikx/danger-gem_changes
|
|
22
13
|
#
|
|
14
|
+
# @tags changelogs, dependencies, gemfile, gems, updates, versions
|
|
23
15
|
class DangerGemChanges < Plugin
|
|
16
|
+
# Print a summary of the changes to the Gemfile.lock.
|
|
17
|
+
# @param changes [Array<GemChanges::Change>] An optional list of changes to summarize, defaulting to all changes.
|
|
18
|
+
# @param title [String] An optional title for the header.
|
|
19
|
+
# @return [void]
|
|
24
20
|
def summarize_changes(changes: self.changes, title: "Gemfile.lock Changes")
|
|
25
21
|
return if changes.empty?
|
|
26
22
|
|
|
@@ -31,22 +27,32 @@ module Danger
|
|
|
31
27
|
markdown string
|
|
32
28
|
end
|
|
33
29
|
|
|
30
|
+
# All dependencies that have changed.
|
|
31
|
+
# @return [Array<GemChanges::Change>]
|
|
34
32
|
def changes
|
|
35
33
|
GemChanges::Gemfile.changes(git:)
|
|
36
34
|
end
|
|
37
35
|
|
|
36
|
+
# New dependencies that have been added.
|
|
37
|
+
# @return [Array<GemChanges::Change>]
|
|
38
38
|
def additions
|
|
39
39
|
changes.select(&:addition?)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
# Dependencies that have been removed.
|
|
43
|
+
# @return [Array<GemChanges::Change>]
|
|
42
44
|
def removals
|
|
43
45
|
changes.select(&:removal?)
|
|
44
46
|
end
|
|
45
47
|
|
|
48
|
+
# Dependencies that were upgraded.
|
|
49
|
+
# @return [Array<GemChanges::Change>]
|
|
46
50
|
def upgrades
|
|
47
51
|
changes.select(&:upgrade?)
|
|
48
52
|
end
|
|
49
53
|
|
|
54
|
+
# Dependencies that were downgraded.
|
|
55
|
+
# @return [Array<GemChanges::Change>]
|
|
50
56
|
def downgrades
|
|
51
57
|
changes.select(&:downgrade?)
|
|
52
58
|
end
|
data/lib/gem_changes/change.rb
CHANGED
data/lib/gem_changes/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require "pathname"
|
|
4
4
|
ROOT = Pathname.new(File.expand_path("..", __dir__))
|
|
5
|
-
$:.unshift("#{ROOT}lib"
|
|
6
|
-
$:.unshift("#{ROOT}spec"
|
|
5
|
+
$:.unshift("#{ROOT}lib")
|
|
6
|
+
$:.unshift("#{ROOT}spec")
|
|
7
7
|
|
|
8
8
|
require "bundler/setup"
|
|
9
9
|
require "debug"
|
|
@@ -12,8 +12,10 @@ require "rspec"
|
|
|
12
12
|
require "danger"
|
|
13
13
|
|
|
14
14
|
if `git remote -v` == ""
|
|
15
|
+
# rubocop:disable RSpec/Output
|
|
15
16
|
puts "You cannot run tests without setting a local git remote on this repo"
|
|
16
17
|
puts "It's a weird side-effect of Danger's internals."
|
|
18
|
+
# rubocop:enable RSpec/Output
|
|
17
19
|
exit(0)
|
|
18
20
|
end
|
|
19
21
|
|
|
@@ -33,7 +35,6 @@ require "danger_plugin"
|
|
|
33
35
|
# it comes with an extra function `.string` which will
|
|
34
36
|
# strip all ANSI colours from the string.
|
|
35
37
|
|
|
36
|
-
# rubocop:disable Lint/NestedMethodDefinition
|
|
37
38
|
def testing_ui
|
|
38
39
|
@output = StringIO.new
|
|
39
40
|
def @output.winsize
|
|
@@ -46,7 +47,6 @@ def testing_ui
|
|
|
46
47
|
end
|
|
47
48
|
cork
|
|
48
49
|
end
|
|
49
|
-
# rubocop:enable Lint/NestedMethodDefinition
|
|
50
50
|
|
|
51
51
|
# Example environment (ENV) that would come from
|
|
52
52
|
# running a PR on TravisCI
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-gem_changes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John DeSilva
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: danger-plugin-api
|
|
@@ -73,7 +72,6 @@ metadata:
|
|
|
73
72
|
rubygems_mfa_required: 'true'
|
|
74
73
|
source_code_uri: https://github.com/Aesthetikx/danger-gem_changes
|
|
75
74
|
issue_tracker_uri: https://github.com/Aesthetikx/danger-gem_changes/issues
|
|
76
|
-
post_install_message:
|
|
77
75
|
rdoc_options: []
|
|
78
76
|
require_paths:
|
|
79
77
|
- lib
|
|
@@ -81,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
81
79
|
requirements:
|
|
82
80
|
- - ">="
|
|
83
81
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: '3.
|
|
82
|
+
version: '3.3'
|
|
85
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
84
|
requirements:
|
|
87
85
|
- - ">="
|
|
88
86
|
- !ruby/object:Gem::Version
|
|
89
87
|
version: '0'
|
|
90
88
|
requirements: []
|
|
91
|
-
rubygems_version:
|
|
92
|
-
signing_key:
|
|
89
|
+
rubygems_version: 4.0.10
|
|
93
90
|
specification_version: 4
|
|
94
91
|
summary: A danger plugin for helping review gem depencency changes.
|
|
95
92
|
test_files: []
|