fancy_to_proc 0.4.0 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43f7ea96466696697880490f9f2ea9e04d927b78
|
4
|
+
data.tar.gz: 598739b95b3cb2068222faaa013ff525d03eb8d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde7c3d9e6d56fabbb0e2a1d0ff33a80ef6e10f669af8584122110fd7aa4e869a40f489f4c1e62b86728b184d4071b7a66706d102f44eba9a3d3f4c2d8d5e79f
|
7
|
+
data.tar.gz: d1b98cd64400ae778a4ecd6afd5e7f2836c6413f74dd669b5906bf35d7c6a491dd713398c7b92cd8cc984bca43e2257ce752841b8819dddc42748ca3e287109e
|
@@ -2,17 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
begin
|
4
4
|
class RuboCop::Cop::Style::SpaceAroundOperators
|
5
|
-
|
6
|
-
if node.loc.operator # aref assignment, attribute assignment
|
7
|
-
on_special_asgn(node)
|
8
|
-
elsif !node.unary_operation? && !called_with_dot?(node)
|
9
|
-
op = node.method_name
|
10
|
-
if op != :[] && op != :! && op != :[]= && op != :& && operator?(op)
|
11
|
-
_, _, right, = *node
|
12
|
-
check_operator(node.loc.selector, right.source_range)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
5
|
+
IRREGULAR_METHODS = %i([] ! []= &).freeze
|
16
6
|
end
|
17
7
|
rescue NameError
|
18
8
|
nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy_to_proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon George
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.5.
|
95
|
+
rubygems_version: 2.5.2
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Makes Symbol#to_proc chainable and take arguments
|