quality 2.1.1 → 3.0.0

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: 76acf6791e9b2396f2c4bc64f6dd0305eb5f0cbd
4
- data.tar.gz: 3cecb32fc414693e7ef7c64db579498cba572f4c
3
+ metadata.gz: c5c378258be2a3a2154d61789d6f6e314c3b3d1a
4
+ data.tar.gz: 715fe860836c163de2e34cb442ee8f8b22aec2b6
5
5
  SHA512:
6
- metadata.gz: 62b4a6c72e937057dd312ffa2550481750f1f1e39f09f112c2b5b8d009ae83d566c19f1df230b885015c0fabd485a70cb57e786f841d33ed8c3942ef2488a6e9
7
- data.tar.gz: 3b46333ee3eb5091280bfdef39c8ff97c80a560a5259f7b7b6470cd70b0ad5d98c3758c82bf298606002fbe5f179f9ba7ff401ea088559aa83922b58efdeec7e
6
+ metadata.gz: 0ea4e567b74d01ff3e326e14db1a10377cfef2df0a32a584c628e47b589cda97995f086b71ae7594e01f8e278f8a395dc66e8c17d8cb036cd01714e4aa5303e7
7
+ data.tar.gz: 663eb51f3c0b22a3b540b8673bc0b48336aaa7abb575e146d391c51b712d59956482e8bc32a2679a215fe8fa223c88a096fd81cf8df2568e80144679a38a176b
@@ -9,6 +9,7 @@ require_relative '../tools/flay'
9
9
  require_relative '../tools/flog'
10
10
  require_relative '../tools/reek'
11
11
  require_relative '../tools/rubocop'
12
+ require_relative '../tools/bigfiles'
12
13
 
13
14
  module Quality
14
15
  #
@@ -34,6 +35,7 @@ module Quality
34
35
  include Tools::Flog
35
36
  include Tools::Reek
36
37
  include Tools::Rubocop
38
+ include Tools::BigFiles
37
39
 
38
40
  # Name of quality task.
39
41
  # Defaults to :quality.
@@ -0,0 +1,15 @@
1
+ module Quality
2
+ module Tools
3
+ # Adds 'rubocop' tool support to quality gem
4
+ module BigFiles
5
+ private
6
+
7
+ def quality_bigfiles
8
+ ratchet_quality_cmd('bigfiles',
9
+ {}) do |line|
10
+ line.split(':')[0].to_i
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -18,10 +18,8 @@ module Quality
18
18
 
19
19
  def quality_cane
20
20
  write_out_dot_cane unless @configuration_writer.exist?('.cane')
21
-
22
21
  ratchet_quality_cmd('cane',
23
- gives_error_code_on_violations: true,
24
- args: args,
22
+ gives_error_code_on_violations: true, args: args,
25
23
  emacs_format: true) do |line|
26
24
  if line =~ /\(([0-9]*)\):$/
27
25
  Regexp.last_match[1].to_i
@@ -2,5 +2,5 @@
2
2
  # reek, flog, flay and rubocop and makes sure your numbers don't get
3
3
  # any worse over time.
4
4
  module Quality
5
- VERSION = '2.1.1'
5
+ VERSION = '3.0.0'
6
6
  end
@@ -36,6 +36,7 @@ your numbers don't get any worse over time.
36
36
  # flay 2.6.0 contained a command-line-parsing issue
37
37
  s.add_runtime_dependency(%q(flay), ['>= 2.4', '!= 2.6.0'])
38
38
  s.add_runtime_dependency(%q(rubocop))
39
+ s.add_runtime_dependency(%q(bigfiles))
39
40
 
40
41
  # need above this version to support Ruby 2.0 syntax
41
42
  s.add_runtime_dependency(%q(ruby_parser), ['>= 3.2.2'])
metadata CHANGED
@@ -1,173 +1,187 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cane
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reek
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.3.4
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
40
  version: 1.3.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: flog
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 4.1.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: flay
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.4'
62
- - - "!="
62
+ - - '!='
63
63
  - !ruby/object:Gem::Version
64
64
  version: 2.6.0
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">="
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: '2.4'
72
- - - "!="
72
+ - - '!='
73
73
  - !ruby/object:Gem::Version
74
74
  version: 2.6.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rubocop
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: bigfiles
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
87
101
  - !ruby/object:Gem::Version
88
102
  version: '0'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: ruby_parser
91
105
  requirement: !ruby/object:Gem::Requirement
92
106
  requirements:
93
- - - ">="
107
+ - - '>='
94
108
  - !ruby/object:Gem::Version
95
109
  version: 3.2.2
96
110
  type: :runtime
97
111
  prerelease: false
98
112
  version_requirements: !ruby/object:Gem::Requirement
99
113
  requirements:
100
- - - ">="
114
+ - - '>='
101
115
  - !ruby/object:Gem::Version
102
116
  version: 3.2.2
103
117
  - !ruby/object:Gem::Dependency
104
118
  name: json
105
119
  requirement: !ruby/object:Gem::Requirement
106
120
  requirements:
107
- - - ">="
121
+ - - '>='
108
122
  - !ruby/object:Gem::Version
109
123
  version: '0'
110
124
  type: :runtime
111
125
  prerelease: false
112
126
  version_requirements: !ruby/object:Gem::Requirement
113
127
  requirements:
114
- - - ">="
128
+ - - '>='
115
129
  - !ruby/object:Gem::Version
116
130
  version: '0'
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: bundler
119
133
  requirement: !ruby/object:Gem::Requirement
120
134
  requirements:
121
- - - ">="
135
+ - - '>='
122
136
  - !ruby/object:Gem::Version
123
137
  version: '1.1'
124
138
  type: :development
125
139
  prerelease: false
126
140
  version_requirements: !ruby/object:Gem::Requirement
127
141
  requirements:
128
- - - ">="
142
+ - - '>='
129
143
  - !ruby/object:Gem::Version
130
144
  version: '1.1'
131
145
  - !ruby/object:Gem::Dependency
132
146
  name: rake
133
147
  requirement: !ruby/object:Gem::Requirement
134
148
  requirements:
135
- - - ">="
149
+ - - '>='
136
150
  - !ruby/object:Gem::Version
137
151
  version: '0'
138
152
  type: :development
139
153
  prerelease: false
140
154
  version_requirements: !ruby/object:Gem::Requirement
141
155
  requirements:
142
- - - ">="
156
+ - - '>='
143
157
  - !ruby/object:Gem::Version
144
158
  version: '0'
145
159
  - !ruby/object:Gem::Dependency
146
160
  name: simplecov
147
161
  requirement: !ruby/object:Gem::Requirement
148
162
  requirements:
149
- - - ">="
163
+ - - '>='
150
164
  - !ruby/object:Gem::Version
151
165
  version: '0'
152
166
  type: :development
153
167
  prerelease: false
154
168
  version_requirements: !ruby/object:Gem::Requirement
155
169
  requirements:
156
- - - ">="
170
+ - - '>='
157
171
  - !ruby/object:Gem::Version
158
172
  version: '0'
159
173
  - !ruby/object:Gem::Dependency
160
174
  name: mocha
161
175
  requirement: !ruby/object:Gem::Requirement
162
176
  requirements:
163
- - - ">="
177
+ - - '>='
164
178
  - !ruby/object:Gem::Version
165
179
  version: '0'
166
180
  type: :development
167
181
  prerelease: false
168
182
  version_requirements: !ruby/object:Gem::Requirement
169
183
  requirements:
170
- - - ">="
184
+ - - '>='
171
185
  - !ruby/object:Gem::Version
172
186
  version: '0'
173
187
  description: |+
@@ -188,6 +202,7 @@ files:
188
202
  - lib/quality/process_runner.rb
189
203
  - lib/quality/quality_checker.rb
190
204
  - lib/quality/rake/task.rb
205
+ - lib/quality/tools/bigfiles.rb
191
206
  - lib/quality/tools/cane.rb
192
207
  - lib/quality/tools/flay.rb
193
208
  - lib/quality/tools/flog.rb
@@ -205,17 +220,17 @@ require_paths:
205
220
  - lib
206
221
  required_ruby_version: !ruby/object:Gem::Requirement
207
222
  requirements:
208
- - - ">="
223
+ - - '>='
209
224
  - !ruby/object:Gem::Version
210
225
  version: '0'
211
226
  required_rubygems_version: !ruby/object:Gem::Requirement
212
227
  requirements:
213
- - - ">="
228
+ - - '>='
214
229
  - !ruby/object:Gem::Version
215
230
  version: '0'
216
231
  requirements: []
217
232
  rubyforge_project:
218
- rubygems_version: 2.4.3
233
+ rubygems_version: 2.4.6
219
234
  signing_key:
220
235
  specification_version: 4
221
236
  summary: Code quality tools for Ruby