ripper-tags 0.8.1 → 0.9.0
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 +4 -1
- data/lib/ripper-tags/parser.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d51d196b3dc72f1408638201f87a26a82ed43a61968f58d33b02d8fa07c7323
|
4
|
+
data.tar.gz: 9c8d508fc88b23397d2ce35dfb01076351e20ff3f7dd8af1f7b1f06bd2d4d3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0243919f85a7caf4ff08bf3a56ecc0be0c91f612ba08d6cec20fc3d6628ccd0f3fc0aa75288141eab99309fe868b63ac48f0de808f68f90395163ed0aca4df0
|
7
|
+
data.tar.gz: 4dceff529b936be646799dafc349b6ba51fcb65428804079c99984f41d2eae86d08542eebd61b9f402e841de93b31eb016f1d38cee45cd1ce203802ddbf16399
|
data/lib/ripper-tags.rb
CHANGED
@@ -11,7 +11,7 @@ require 'ripper-tags/vim_append_formatter'
|
|
11
11
|
require 'ripper-tags/json_formatter'
|
12
12
|
|
13
13
|
module RipperTags
|
14
|
-
def self.version() "0.
|
14
|
+
def self.version() "0.9.0" end
|
15
15
|
|
16
16
|
FatalError = Class.new(RuntimeError)
|
17
17
|
|
@@ -103,6 +103,9 @@ module RipperTags
|
|
103
103
|
opts.on("-R", "--recursive", "Descend recursively into subdirectories") do
|
104
104
|
options.recursive = true
|
105
105
|
end
|
106
|
+
opts.on("--recurse=[yes|no]", "Alias for --recursive") do |value|
|
107
|
+
options.recursive = value != 'no'
|
108
|
+
end
|
106
109
|
opts.on("--exclude PATTERN", "Exclude a file, directory or pattern") do |pattern|
|
107
110
|
if pattern.empty?
|
108
111
|
options.exclude.clear
|
data/lib/ripper-tags/parser.rb
CHANGED
@@ -88,6 +88,14 @@ class Parser < Ripper
|
|
88
88
|
on_def_delegator(*args[0][1..-1])
|
89
89
|
when "def_delegators", "def_instance_delegators"
|
90
90
|
on_def_delegators(*args[0][1..-1])
|
91
|
+
else
|
92
|
+
if args[0].respond_to?(:[])
|
93
|
+
# Handle decorators: if what follows is a method def, pass it on
|
94
|
+
inner = args[0][1]
|
95
|
+
if inner.respond_to?(:[]) && inner[0] == :def
|
96
|
+
on_def(inner[1..-1], nil, nil)
|
97
|
+
end
|
98
|
+
end
|
91
99
|
end
|
92
100
|
end
|
93
101
|
def on_bodystmt(*args)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripper-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mislav Marohnić
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: fast, accurate ctags generator for ruby source code using Ripper
|
15
15
|
email:
|