danger-pmd 0.3.0 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,30 +1,36 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "pathname"
4
- ROOT = Pathname.new(File.expand_path("..", __dir__))
5
- $:.unshift((ROOT + "lib").to_s)
6
- $:.unshift((ROOT + "spec").to_s)
3
+ require 'simplecov'
4
+ SimpleCov.start
7
5
 
8
- require "bundler/setup"
9
- require "pry"
6
+ require 'codecov'
7
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
10
8
 
11
- require "rspec"
12
- require "danger"
9
+ require 'pathname'
10
+ ROOT = Pathname.new(File.expand_path('..', __dir__))
11
+ $LOAD_PATH.unshift("#{ROOT}lib".to_s)
12
+ $LOAD_PATH.unshift("#{ROOT}spec".to_s)
13
13
 
14
- if `git remote -v` == ""
15
- puts "You cannot run tests without setting a local git remote on this repo"
14
+ require 'bundler/setup'
15
+ require 'pry'
16
+
17
+ require 'rspec'
18
+ require 'danger'
19
+
20
+ if `git remote -v` == ''
21
+ puts 'You cannot run tests without setting a local git remote on this repo'
16
22
  puts "It's a weird side-effect of Danger's internals."
17
23
  exit(0)
18
24
  end
19
25
 
20
26
  # Use coloured output, it's the best.
21
27
  RSpec.configure do |config|
22
- config.filter_gems_from_backtrace "bundler"
28
+ config.filter_gems_from_backtrace 'bundler'
23
29
  config.color = true
24
30
  config.tty = true
25
31
  end
26
32
 
27
- require "danger_plugin"
33
+ require 'danger_plugin'
28
34
 
29
35
  # These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
30
36
  # If you are expanding these files, see if it's already been done ^.
@@ -42,7 +48,7 @@ def testing_ui
42
48
 
43
49
  cork = Cork::Board.new(out: @output)
44
50
  def cork.string
45
- out.string.gsub(/\e\[([;\d]+)?m/, "")
51
+ out.string.gsub(/\e\[([;\d]+)?m/, '')
46
52
  end
47
53
  cork
48
54
  end
@@ -52,11 +58,11 @@ end
52
58
  # running a PR on TravisCI
53
59
  def testing_env
54
60
  {
55
- "HAS_JOSH_K_SEAL_OF_APPROVAL" => "true",
56
- "TRAVIS_PULL_REQUEST" => "800",
57
- "TRAVIS_REPO_SLUG" => "artsy/eigen",
58
- "TRAVIS_COMMIT_RANGE" => "759adcbd0d8f...13c4dc8bb61d",
59
- "DANGER_GITHUB_API_TOKEN" => "123sbdq54erfsd3422gdfio"
61
+ 'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
62
+ 'TRAVIS_PULL_REQUEST' => '800',
63
+ 'TRAVIS_REPO_SLUG' => 'artsy/eigen',
64
+ 'TRAVIS_COMMIT_RANGE' => '759adcbd0d8f...13c4dc8bb61d',
65
+ 'DANGER_GITHUB_API_TOKEN' => '123sbdq54erfsd3422gdfio'
60
66
  }
61
67
  end
62
68
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-pmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Rul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -30,140 +30,182 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.10'
33
+ version: '2.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.10'
40
+ version: '2.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: codecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.5.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.5.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '3.4'
89
+ version: 3.10.0
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '3.4'
96
+ version: 3.10.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rubocop
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0.75'
103
+ version: 1.11.0
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0.75'
110
+ version: 1.11.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.5.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.5.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.2.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.2.0
97
139
  - !ruby/object:Gem::Dependency
98
140
  name: yard
99
141
  requirement: !ruby/object:Gem::Requirement
100
142
  requirements:
101
143
  - - "~>"
102
144
  - !ruby/object:Gem::Version
103
- version: 0.9.20
145
+ version: 0.9.26
104
146
  type: :development
105
147
  prerelease: false
106
148
  version_requirements: !ruby/object:Gem::Requirement
107
149
  requirements:
108
150
  - - "~>"
109
151
  - !ruby/object:Gem::Version
110
- version: 0.9.20
152
+ version: 0.9.26
111
153
  - !ruby/object:Gem::Dependency
112
154
  name: guard
113
155
  requirement: !ruby/object:Gem::Requirement
114
156
  requirements:
115
157
  - - "~>"
116
158
  - !ruby/object:Gem::Version
117
- version: '2.14'
159
+ version: 2.16.2
118
160
  type: :development
119
161
  prerelease: false
120
162
  version_requirements: !ruby/object:Gem::Requirement
121
163
  requirements:
122
164
  - - "~>"
123
165
  - !ruby/object:Gem::Version
124
- version: '2.14'
166
+ version: 2.16.2
125
167
  - !ruby/object:Gem::Dependency
126
168
  name: guard-rspec
127
169
  requirement: !ruby/object:Gem::Requirement
128
170
  requirements:
129
171
  - - "~>"
130
172
  - !ruby/object:Gem::Version
131
- version: '4.7'
173
+ version: 4.7.3
132
174
  type: :development
133
175
  prerelease: false
134
176
  version_requirements: !ruby/object:Gem::Requirement
135
177
  requirements:
136
178
  - - "~>"
137
179
  - !ruby/object:Gem::Version
138
- version: '4.7'
180
+ version: 4.7.3
139
181
  - !ruby/object:Gem::Dependency
140
182
  name: listen
141
183
  requirement: !ruby/object:Gem::Requirement
142
184
  requirements:
143
- - - '='
185
+ - - "~>"
144
186
  - !ruby/object:Gem::Version
145
- version: 3.0.7
187
+ version: 3.0.8
146
188
  type: :development
147
189
  prerelease: false
148
190
  version_requirements: !ruby/object:Gem::Requirement
149
191
  requirements:
150
- - - '='
192
+ - - "~>"
151
193
  - !ruby/object:Gem::Version
152
- version: 3.0.7
194
+ version: 3.0.8
153
195
  - !ruby/object:Gem::Dependency
154
196
  name: pry
155
197
  requirement: !ruby/object:Gem::Requirement
156
198
  requirements:
157
- - - ">="
199
+ - - "~>"
158
200
  - !ruby/object:Gem::Version
159
- version: '0'
201
+ version: 0.14.0
160
202
  type: :development
161
203
  prerelease: false
162
204
  version_requirements: !ruby/object:Gem::Requirement
163
205
  requirements:
164
- - - ">="
206
+ - - "~>"
165
207
  - !ruby/object:Gem::Version
166
- version: '0'
208
+ version: 0.14.0
167
209
  description: A Danger plugin for PMD.
168
210
  email:
169
211
  - mathroule@gmail.com
@@ -171,15 +213,17 @@ executables: []
171
213
  extensions: []
172
214
  extra_rdoc_files: []
173
215
  files:
216
+ - ".github/workflows/deploy.yml"
217
+ - ".github/workflows/test.yml"
174
218
  - ".gitignore"
175
219
  - ".rubocop.yml"
176
- - ".travis.yml"
177
220
  - Gemfile
178
221
  - Gemfile.lock
179
222
  - Guardfile
180
- - LICENSE.txt
223
+ - LICENSE
181
224
  - README.md
182
225
  - Rakefile
226
+ - codecov.yml
183
227
  - danger-pmd.gemspec
184
228
  - lib/danger_plugin.rb
185
229
  - lib/danger_pmd.rb
@@ -212,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
256
  - !ruby/object:Gem::Version
213
257
  version: '0'
214
258
  requirements: []
215
- rubygems_version: 3.0.6
259
+ rubygems_version: 3.2.3
216
260
  signing_key:
217
261
  specification_version: 4
218
262
  summary: A Danger plugin for PMD (Programming Mistake Detector), see https://pmd.github.io.
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- cache:
3
- directories:
4
- - bundle
5
-
6
- rvm:
7
- - 2.3.8
8
-
9
- script:
10
- - bundle exec rake spec
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2019 Mathieu Rul <mathroule@gmail.com>
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.