ripper-tags 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ripper-tags.rb +1 -1
- data/lib/ripper-tags/parser.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29451c95b293c4e7ae7b70c1f6522de57b2961cc
|
4
|
+
data.tar.gz: b19c450f3aae7dceb353a57aa54e5d75636909fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdf6876249d285c2ec75abf4731128cb96db9e7cb887c95c3f9058566276beee23b6883563ff818767268e9b3b35de620d358132202f8da51d2ed0d5d4b8d0b8
|
7
|
+
data.tar.gz: 1b1d50f0a4a81ffc4f4022e7a82f688452046010a9fe7cadbcaa55ca84f0a04490d9ec8b5789613e356e162fa963b290bbdc5dfdc72f68f00d2b7525c112c2fc
|
data/lib/ripper-tags.rb
CHANGED
data/lib/ripper-tags/parser.rb
CHANGED
@@ -300,8 +300,10 @@ end
|
|
300
300
|
def on_protected() @current_access = 'protected' end
|
301
301
|
def on_public() @current_access = 'public' end
|
302
302
|
|
303
|
-
|
304
|
-
|
303
|
+
# Ripper trips up on keyword arguments in pre-2.1 Ruby and supplies extra
|
304
|
+
# arguments that we just ignore here
|
305
|
+
def on_assign(name, rhs, line, *junk)
|
306
|
+
return unless name =~ /^[A-Z]/ && junk.empty?
|
305
307
|
|
306
308
|
if rhs && :call == rhs[0] && rhs[1] && "#{rhs[1][0]}.#{rhs[2]}" =~ /^(Class|Module|Struct)\.new$/
|
307
309
|
kind = $1 == 'Module' ? :module : :class
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripper-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: fast, accurate ctags generator for ruby source code using Ripper
|
14
14
|
email:
|