ripper-tags 1.0.0 → 1.0.2

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: 49763a523894bbbefd2b30cb86634ee63576c2109e9954a0f0b2e9b57f799585
4
- data.tar.gz: 9ceda5050f002211a6c61f2dea6f65eb1e1978e2e689d73e2d6740045ae62c8d
3
+ metadata.gz: 7e25bff54d3ffe31948e40613d2e01cd94bacfdff6c73049589b7f6f60388734
4
+ data.tar.gz: fd8e730c4119cd42d4df37d82b6e898258221faa5783d50d98d546bf1cea4386
5
5
  SHA512:
6
- metadata.gz: 37450f44bd80a4e79aeb3a025e703ef4c186ab1fcd92b44dfb064d9168808322a369ff90ee97b7289170252b4ff749fd4c8d0a7377d7a81e46c1f5e255e693a4
7
- data.tar.gz: e29983e918577f41e485ee4576355db5d683d5c01ba80a99a9e9c85d653573b5d9bab8c65d91b891e0978ae9310319abfb5da9ef1e3902f188a319c45187718f
6
+ metadata.gz: c2f232b0795dd9bbd55fa7ed636ad49272542330391cce5262eb392cf2802494f1d25bbae44e9cfccddf2b74d1e3ed593b904e826471a6aaf67b7a7692a07208
7
+ data.tar.gz: d5d70e3b0da811fd01de5a3fc1968d830ed2e0b0a66d478b1e34495cf03c31d356175b8e8ee3d6abe93badcbd7187424c89426a5f8a9dc054c61b497d0ee67be
@@ -220,7 +220,7 @@ class Parser < Ripper
220
220
  method_name = args[1][1]
221
221
  end
222
222
 
223
- [procedure, klass, method_name, access, line]
223
+ [procedure, klass, method_name, access, line] if method_name
224
224
  when "scope", "named_scope"
225
225
  scope_name = args[1][0]
226
226
  [:rails_def, :scope, scope_name, line] if scope_name
@@ -316,8 +316,8 @@ class Parser < Ripper
316
316
  end
317
317
 
318
318
  def on_delegate(*args)
319
- method_names = args.select { |arg| arg.first.is_a? String }
320
- options = args.select { |arg| arg.first.is_a?(Array) && arg.first.first == :assoc }.flatten(1)
319
+ method_names = args.select { |arg| arg.is_a?(Array) && arg.first.is_a?(String) }
320
+ options = args.select { |arg| arg.is_a?(Array) && arg.first.is_a?(Array) && arg.first.first == :assoc }.flatten(1)
321
321
  options = Hash[options.map { |_assoc, key, val| [key[0], val[0]] if key }.compact]
322
322
 
323
323
  target = options["to:"] || options["to"] # When using hashrocket syntax there is no ':'
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() "1.0.0" end
14
+ def self.version() "1.0.2" end
15
15
 
16
16
  FatalError = Class.new(RuntimeError)
17
17
 
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: 1.0.0
4
+ version: 1.0.2
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: 2023-05-18 00:00:00.000000000 Z
12
+ date: 2024-02-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: fast, accurate ctags generator for ruby source code using Ripper
15
15
  email:
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.4.6
54
+ rubygems_version: 3.5.4
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: ctags generator for ruby code