quality 0.2.8 → 0.2.9

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.
@@ -80,7 +80,7 @@ module Quality
80
80
  end
81
81
  end
82
82
  end
83
-
83
+
84
84
  def ratchet_quality_cmd(cmd,
85
85
  options,
86
86
  &process_output_line)
@@ -99,7 +99,7 @@ module Quality
99
99
  else
100
100
  full_cmd = cmd
101
101
  end
102
-
102
+
103
103
  if !args.nil?
104
104
  full_cmd = "#{full_cmd} #{args}"
105
105
  end
@@ -147,7 +147,7 @@ module Quality
147
147
  def quality_cane
148
148
  if ! File.exist?(".cane")
149
149
  File.open(".cane", "w") {|f| f.write("-f **/*.rb")}
150
- end
150
+ end
151
151
  ratchet_quality_cmd("cane",
152
152
  gives_error_code_on_violations: true,
153
153
  emacs_format: true) { |line|
@@ -206,7 +206,7 @@ module Quality
206
206
  else
207
207
  0
208
208
  end
209
- }
209
+ }
210
210
  end
211
211
 
212
212
  def quality_rubocop
@@ -214,11 +214,11 @@ module Quality
214
214
  gives_error_code_on_violations: true,
215
215
  args: "--format emacs #{ruby_files}") { |line|
216
216
  if line =~ /^.* file[s|] inspected, (.*) offence[s|] detected$/
217
- $1.to_i
218
- else
219
217
  0
218
+ else
219
+ 1
220
220
  end
221
- }
221
+ }
222
222
  end
223
223
 
224
224
  def quality
@@ -1,3 +1,3 @@
1
1
  module Quality
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-09 00:00:00.000000000 Z
12
+ date: 2013-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cane
@@ -182,18 +182,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  - - ! '>='
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
- segments:
186
- - 0
187
- hash: 335418557
188
185
  required_rubygems_version: !ruby/object:Gem::Requirement
189
186
  none: false
190
187
  requirements:
191
188
  - - ! '>='
192
189
  - !ruby/object:Gem::Version
193
190
  version: '0'
194
- segments:
195
- - 0
196
- hash: 335418557
197
191
  requirements: []
198
192
  rubyforge_project:
199
193
  rubygems_version: 1.8.23