ruby-lint 2.0.5 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +9 -1
- data/checksum/ruby-lint-2.0.5.gem.sha512 +1 -0
- data/doc/changelog.md +5 -0
- data/lib/ruby-lint/ast/node.rb +1 -1
- data/lib/ruby-lint/definitions/core/module.rb +4 -0
- data/lib/ruby-lint/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57cc060a02f3673b6b1882db8d8336b0556d9068
|
4
|
+
data.tar.gz: e82d93af41f14763d686945929d41febe3138445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d323ef78ba18926744314ec63c2f56d95ad497ad0493ed4d642392ee7d2c019bf3c4c3d72f23d4f946656a9f8098e49ecd9e93e886aa9df12b019a479df31ad6
|
7
|
+
data.tar.gz: 6eb0838c420a61d30f26775502de4f7f8dbab35a11758658d408073d25f77acef5cfff898be975be4707e83d8b256594a71b3caf8e0e1d7e09ec87517382dbdc
|
data/CONTRIBUTING.md
CHANGED
@@ -2,7 +2,15 @@
|
|
2
2
|
|
3
3
|
Everybody is more than welcome to contribute to ruby-lint, no matter how small
|
4
4
|
the change. To keep everything running smoothly there are a few guidelines that
|
5
|
-
one should follow.
|
5
|
+
one should follow.
|
6
|
+
|
7
|
+
## Code of Conduct
|
8
|
+
|
9
|
+
The code of conduct ("CoC") can be found in the file "COC.md". Everybody
|
10
|
+
participating in this project must adhere to the rules and guidelines stated in
|
11
|
+
this CoC.
|
12
|
+
|
13
|
+
## General
|
6
14
|
|
7
15
|
* When changing code make sure to write RSpec tests for the changes.
|
8
16
|
* Document code using YARD. At the very least the method arguments and return
|
@@ -0,0 +1 @@
|
|
1
|
+
49dbf6c6d0e68444b0088339ceebaf3bd76df3ddf66cc9a832e4edc655eea051a0f774d2fd3af5f38257df16ed006cc4f7d3eff642be2be22894fe6dc3849fbe
|
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.1.0 - 2016-01-22
|
9
|
+
|
10
|
+
Ryan McKern added a definition for `Module#module_function` in pull request
|
11
|
+
<https://github.com/YorickPeterse/ruby-lint/pull/162>.
|
12
|
+
|
8
13
|
## 2.0.5 - 2015-09-14
|
9
14
|
|
10
15
|
* When reading files to analyse the encoding is explicitly set to UTF8,
|
data/lib/ruby-lint/ast/node.rb
CHANGED
@@ -203,6 +203,10 @@ RubyLint.registry.register('Module') do |defs|
|
|
203
203
|
method.define_block_argument('prc')
|
204
204
|
end
|
205
205
|
|
206
|
+
klass.define_instance_method('module_function') do |method|
|
207
|
+
method.define_rest_argument('syms')
|
208
|
+
end
|
209
|
+
|
206
210
|
klass.define_instance_method('name')
|
207
211
|
|
208
212
|
klass.define_instance_method('private_class_method') do |method|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- checksum/ruby-lint-2.0.2.gem.sha512
|
171
171
|
- checksum/ruby-lint-2.0.3.gem.sha512
|
172
172
|
- checksum/ruby-lint-2.0.4.gem.sha512
|
173
|
+
- checksum/ruby-lint-2.0.5.gem.sha512
|
173
174
|
- doc/architecture.md
|
174
175
|
- doc/changelog.md
|
175
176
|
- doc/code_analysis.md
|
@@ -492,7 +493,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
492
493
|
version: '0'
|
493
494
|
requirements: []
|
494
495
|
rubyforge_project:
|
495
|
-
rubygems_version: 2.
|
496
|
+
rubygems_version: 2.5.1
|
496
497
|
signing_key:
|
497
498
|
specification_version: 4
|
498
499
|
summary: A linter and static code analysis tool for Ruby.
|