ripper-tags 0.4.0 → 0.4.1

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: 52c268f393b07f8fa528f4886a5c5c3d39fa712f
4
- data.tar.gz: 7ea8519875252ee44f554ad3021d02a29e482970
3
+ metadata.gz: 32b60c708933420c257f3643835ce2e5e3361541
4
+ data.tar.gz: 73695a4fd2848affbe1bba47cec6e661f44519ac
5
5
  SHA512:
6
- metadata.gz: ed66eb27100243fe6766f609f2ac3aa6f9f556a01f7c3f995fb663e973ef36fc7ab35e46eadf64e448ee75d133c96aa6177fa8a508548ab27fdce7268ade9ca0
7
- data.tar.gz: 504ecdbdbb6315116d0d12d70827597c1f565fe08034d0201498ac5d878888c9e96bb7e7c750db79fd3f95798508493f1bdf9f0c00da9c07129eb3c84863aba7
6
+ metadata.gz: 06208c4d29d56808d0e21fc0a97bde64d82d9a2e375d59b364165bf03cfb49e1884f50a7b4cdf92e5fc1e57dedd586396f670a8d9f0c99ff56ec6c78b95a6994
7
+ data.tar.gz: 526a716837f2a79ef00660f274fb3bd59923a3bedafbc37a40ee538268438ee0c16fd29185b66a70a1efd0814bed05126b8752c84f3149f7110bc380863f295c
@@ -13,7 +13,7 @@ program_name = File.basename($0)
13
13
 
14
14
  begin
15
15
  RipperTags.process_args(ARGV)
16
- rescue Errno::ENOENT, OptionParser::InvalidOption => err
16
+ rescue Errno::ENOENT, OptionParser::InvalidOption, OptionParser::MissingArgument => err
17
17
  abort "#{program_name}: #{err.message}"
18
18
  rescue RipperTags::BrokenPipe
19
19
  abort
@@ -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.4.0" end
12
+ def self.version() "0.4.1" end
13
13
 
14
14
  FatalError = Class.new(RuntimeError)
15
15
 
@@ -274,7 +274,7 @@ class Parser < Ripper
274
274
  def on_delegate(*args)
275
275
  method_names = args.select { |arg| arg.first.is_a? String }
276
276
  options = args.select { |arg| arg.first.is_a?(Array) && arg.first.first == :assoc }.flatten(1)
277
- options = Hash[options.map { |_assoc, key, val| [key.first, val.first] }]
277
+ options = Hash[options.map { |_assoc, key, val| [key[0], val[0]] if key }.compact]
278
278
 
279
279
  target = options["to:"] || options["to"] # When using hashrocket syntax there is no ':'
280
280
  prefix = options["prefix:"] || options["prefix"]
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: fast, accurate ctags generator for ruby source code using Ripper
14
14
  email: