rubocop-ast 0.7.0 → 0.7.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe900ddbeb79b1f5bc64a232c83261e6c947d95639886ecc727a14e928521d87
|
4
|
+
data.tar.gz: d35cd600bbe5b2653e34c3726a7bd860130088dc30d21a4e3838fd1cc05f88db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf280eb45f3b9e6554202cbfd57edb386a5736881251d9492190f29b5c539ac1ad3bf95f39c449cddcda318968e4f09019b70cbc703d3d59044721e5576dee5b
|
7
|
+
data.tar.gz: 85344e01afb0f05836e63c50f7031249fffa2fd5bbf4e8fc8a09f16a05eecaeb339b65b15acc677340621c71955fc295408b7fbabbc24e8d365839700ec515a3
|
@@ -38,7 +38,7 @@ module RuboCop
|
|
38
38
|
|
39
39
|
# @return [token]
|
40
40
|
def emit(type)
|
41
|
-
value = ss
|
41
|
+
value = ss[1] || ss.matched
|
42
42
|
value = yield value if block_given?
|
43
43
|
token = token(type, value)
|
44
44
|
@tokens << token
|
@@ -50,7 +50,8 @@ module RuboCop
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def emit_regexp
|
53
|
-
body
|
53
|
+
body = ss[1]
|
54
|
+
options = ss[2]
|
54
55
|
flag = options.each_char.map { |c| REGEXP_OPTIONS[c] }.sum
|
55
56
|
|
56
57
|
emit(:tREGEXP) { Regexp.new(body, flag) }
|
data/lib/rubocop/ast/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -26,20 +26,6 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 2.7.1.5
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: strscan
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 1.0.0
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 1.0.0
|
43
29
|
- !ruby/object:Gem::Dependency
|
44
30
|
name: bundler
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
165
|
- !ruby/object:Gem::Version
|
180
166
|
version: '0'
|
181
167
|
requirements: []
|
182
|
-
rubygems_version: 3.
|
168
|
+
rubygems_version: 3.0.8
|
183
169
|
signing_key:
|
184
170
|
specification_version: 4
|
185
171
|
summary: RuboCop tools to deal with Ruby code AST.
|