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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b5f417b27a94f391fabd9c6fb7813e0bd5c7d87852d58271dd1ac6ef198bce4
4
- data.tar.gz: 0d7bd52c4ba5f8bab9f04fa67fc0bbd4a6c5330ae1f52a69ca4ee63ee972fed1
3
+ metadata.gz: 7d51d196b3dc72f1408638201f87a26a82ed43a61968f58d33b02d8fa07c7323
4
+ data.tar.gz: 9c8d508fc88b23397d2ce35dfb01076351e20ff3f7dd8af1f7b1f06bd2d4d3cb
5
5
  SHA512:
6
- metadata.gz: c27c99ca37f39c393b217b059c01fc7b780e51d1687a8528fd71d84bc004a4dc695af028cd4640effe65258f56f4d1e8e5f00916ff622c63094ad4c4e1387e61
7
- data.tar.gz: 0da26a4d951b1d387b6423469a0d324198eaf14af80fdb6ed85b6912c45200112296fb9fdfe60e395c681c430f0393f8b2799e2a63d4bf174f6b37f30f00ee69
6
+ metadata.gz: a0243919f85a7caf4ff08bf3a56ecc0be0c91f612ba08d6cec20fc3d6628ccd0f3fc0aa75288141eab99309fe868b63ac48f0de808f68f90395163ed0aca4df0
7
+ data.tar.gz: 4dceff529b936be646799dafc349b6ba51fcb65428804079c99984f41d2eae86d08542eebd61b9f402e841de93b31eb016f1d38cee45cd1ce203802ddbf16399
@@ -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.8.1" end
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
@@ -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.8.1
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: 2019-12-17 00:00:00.000000000 Z
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: