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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd14cd5d69f040b9db3dc0cf2c55564e2b8f1fe3
4
- data.tar.gz: 2f101c257298daab747e4b1dba4d8a35e207e96c
3
+ metadata.gz: 57cc060a02f3673b6b1882db8d8336b0556d9068
4
+ data.tar.gz: e82d93af41f14763d686945929d41febe3138445
5
5
  SHA512:
6
- metadata.gz: c1199dd1922f10cc0878a442c56b8d1437d353594f11f0ade051556a0c13141cbb158b627f1dd80b4a34c24809142133dadc3179f2f7acc2bcae583caaa0b6e8
7
- data.tar.gz: b6852d453d25c58a478a945d029c2e0ad9a3f3967b01c3a9f7b03a5c1071c2bfaae9a5f9e2f83d77bd5080d78c956d2c01803fdb825fcf65796e0173b6dd0449
6
+ metadata.gz: d323ef78ba18926744314ec63c2f56d95ad497ad0493ed4d642392ee7d2c019bf3c4c3d72f23d4f946656a9f8098e49ecd9e93e886aa9df12b019a479df31ad6
7
+ data.tar.gz: 6eb0838c420a61d30f26775502de4f7f8dbab35a11758658d408073d25f77acef5cfff898be975be4707e83d8b256594a71b3caf8e0e1d7e09ec87517382dbdc
@@ -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. These are as following:
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
@@ -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,
@@ -42,7 +42,7 @@ module RubyLint
42
42
  # @return [String]
43
43
  #
44
44
  def inspect_oneline
45
- return inspect.gsub(/\s*\n\s*/, ' ')
45
+ return to_s.gsub(/\s*\n\s*/, ' ')
46
46
  end
47
47
  end # Node
48
48
  end # AST
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module RubyLint
2
- VERSION = '2.0.5'
2
+ VERSION = '2.1.0'
3
3
  end # RubyLint
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.5
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: 2015-09-14 00:00:00.000000000 Z
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.4.8
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.