ruby-lint 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +3 -3
- data/checksum/ruby-lint-2.0.0.gem.sha512 +1 -0
- data/doc/changelog.md +5 -0
- data/doc/images/flow.png +0 -0
- data/lib/ruby-lint/command.rb +8 -2
- data/lib/ruby-lint/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c05b71e4416ca5dd96493ba94aa26a21d6f8b588
|
4
|
+
data.tar.gz: 7bd2b44794bd3535034364f2123e62a2ea2a5589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da8b5a726a860571919aeb84309bcc19abb1bcd174a4a29700fe7634f4ab812fa756c26e233603f90360aebf4a093f284d597095a4b67e9f20aaa742cc79eaf
|
7
|
+
data.tar.gz: e0543f60d7b1e9c258fd36a48f0649e7cafdd0667fee7023c84494af9043139b2bdf4f913ef378fc17630de1c2374efee3e400c2f7c651c631b33e188036dd71
|
data/CONTRIBUTING.md
CHANGED
@@ -18,9 +18,9 @@ Whatever editor you use doesn't matter as long as it can do two things:
|
|
18
18
|
* Use spaces for indentation.
|
19
19
|
* Hard wrap lines at 79 characters per line.
|
20
20
|
|
21
|
-
To make this process easier
|
22
|
-
configuration file. If your editor supports this
|
23
|
-
the required settings for you.
|
21
|
+
To make this process easier ruby-lint comes with an
|
22
|
+
[EditorConfig][editorconfig] configuration file. If your editor supports this
|
23
|
+
it will automatically apply the required settings for you.
|
24
24
|
|
25
25
|
## Hacking on ruby-lint
|
26
26
|
|
@@ -0,0 +1 @@
|
|
1
|
+
8e3679a7f891a4cea643fd21a02387b14537dc5b81fc2ed975e51ac53b44479a3dcfbd2fe02078324a602ed4074fc0f6d2ffd860fdcdd497e1b7ee64b1e9d3e9
|
data/doc/changelog.md
CHANGED
@@ -5,6 +5,11 @@ This document contains a short summary of the various releases of ruby-lint.
|
|
5
5
|
For a full list of commits included in each release see the corresponding Git
|
6
6
|
tags (named after the versions).
|
7
7
|
|
8
|
+
## 2.0.1 - 2014-06-11
|
9
|
+
|
10
|
+
* The exit status of ruby-lint is set to 1 when there is data to report. See
|
11
|
+
<https://github.com/YorickPeterse/ruby-lint/issues/117> for more info.
|
12
|
+
|
8
13
|
## 2.0.0 - 2014-06-06
|
9
14
|
|
10
15
|
Although the version number might suggest otherwise this is a rather modest
|
data/doc/images/flow.png
CHANGED
Binary file
|
data/lib/ruby-lint/command.rb
CHANGED
@@ -51,10 +51,16 @@ module RubyLint
|
|
51
51
|
runner = Runner.new(configuration)
|
52
52
|
output = runner.analyze(files)
|
53
53
|
exec_time = Time.now.to_f - start_time
|
54
|
+
status = 0
|
54
55
|
|
55
|
-
|
56
|
+
unless output.empty?
|
57
|
+
status = 1
|
58
|
+
puts output
|
59
|
+
end
|
56
60
|
|
57
61
|
show_benchmark_info(exec_time) if options[:benchmark]
|
62
|
+
|
63
|
+
exit(status)
|
58
64
|
end
|
59
65
|
|
60
66
|
##
|
@@ -69,7 +75,7 @@ module RubyLint
|
|
69
75
|
|
70
76
|
##
|
71
77
|
# @param [RubyLint::Configuration] configuration
|
72
|
-
# @param [Hash]
|
78
|
+
# @param [Hash] options
|
73
79
|
#
|
74
80
|
def configure(configuration, options)
|
75
81
|
OPTION_MAPPING.each do |key, setter|
|
data/lib/ruby-lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- checksum/ruby-lint-1.0.2.gem.sha512
|
172
172
|
- checksum/ruby-lint-1.0.3.gem.sha512
|
173
173
|
- checksum/ruby-lint-1.1.0.gem.sha512
|
174
|
+
- checksum/ruby-lint-2.0.0.gem.sha512
|
174
175
|
- doc/DCO.md
|
175
176
|
- doc/architecture.md
|
176
177
|
- doc/changelog.md
|