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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 290bd07700cddff930025f82db6f37b0bd964ae1
4
- data.tar.gz: 3a7a292de4d1dc789a34d5b74a8f70cf0875d34d
3
+ metadata.gz: 29451c95b293c4e7ae7b70c1f6522de57b2961cc
4
+ data.tar.gz: b19c450f3aae7dceb353a57aa54e5d75636909fe
5
5
  SHA512:
6
- metadata.gz: 79cf2b4df184edb33d7cae195666ece7cf22adbc9840349bd62dc0e6724a0060141f256a8e2562b1c360364dd0ebbe09228a415bc8f52c57fd437c5306f2f5fb
7
- data.tar.gz: f40040c5fd7ad7085b1c250c8244dadaee5463237b7a2e2ab5a33a015e2472782edec9c1eb6c3b44e65d6a732c5f8a2bb82de75fd7a1b94bb0d39f58580ee5af
6
+ metadata.gz: bdf6876249d285c2ec75abf4731128cb96db9e7cb887c95c3f9058566276beee23b6883563ff818767268e9b3b35de620d358132202f8da51d2ed0d5d4b8d0b8
7
+ data.tar.gz: 1b1d50f0a4a81ffc4f4022e7a82f688452046010a9fe7cadbcaa55ca84f0a04490d9ec8b5789613e356e162fa963b290bbdc5dfdc72f68f00d2b7525c112c2fc
@@ -9,7 +9,7 @@ require 'ripper-tags/vim_formatter'
9
9
  require 'ripper-tags/json_formatter'
10
10
 
11
11
  module RipperTags
12
- def self.version() "0.3.1" end
12
+ def self.version() "0.3.2" end
13
13
 
14
14
  FatalError = Class.new(RuntimeError)
15
15
 
@@ -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
- def on_assign(name, rhs, line)
304
- return unless name =~ /^[A-Z]/
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.1
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-02 00:00:00.000000000 Z
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: