ripper-tags 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ripper-tags.rb +9 -6
- data/lib/ripper-tags/parser.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 633febda9a64996bfe3f7b67c54c8ba25f401103
|
|
4
|
+
data.tar.gz: 5ec09660f054651c5f53018c6fc4d0e0b8fec03e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f7a0f16ccd10afe23df8b7955894a40a329403e66fa7b8b19d92e0aec99063b1df6de7128c5d020888e9dd39f97ee0f8e904793a2a13fe8bcc3b43f3f6914a5
|
|
7
|
+
data.tar.gz: d001643167fe786a6bb9b6525dcc2c26ae1c279953b21ab3b9f0cabb343cdf78aa72020f877b76d9bd404cb252fb2fdf4f763e5c5d0e4a50da65ae972d298e45
|
data/lib/ripper-tags.rb
CHANGED
|
@@ -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.
|
|
12
|
+
def self.version() "0.3.4" end
|
|
13
13
|
|
|
14
14
|
FatalError = Class.new(RuntimeError)
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ module RipperTags
|
|
|
17
17
|
OpenStruct.new \
|
|
18
18
|
:format => nil,
|
|
19
19
|
:extra_flags => Set.new,
|
|
20
|
-
:tag_file_name =>
|
|
20
|
+
:tag_file_name => nil,
|
|
21
21
|
:tag_relative => nil,
|
|
22
22
|
:debug => false,
|
|
23
23
|
:verbose_debug => false,
|
|
@@ -36,7 +36,7 @@ module RipperTags
|
|
|
36
36
|
|
|
37
37
|
opts.separator ""
|
|
38
38
|
|
|
39
|
-
opts.on("-f", "--tag-file (FILE|-)", "File to write tags to (default:
|
|
39
|
+
opts.on("-f", "--tag-file (FILE|-)", "File to write tags to (default: `./tags')",
|
|
40
40
|
'"-" outputs to standard output') do |fname|
|
|
41
41
|
options.tag_file_name = fname
|
|
42
42
|
end
|
|
@@ -118,10 +118,13 @@ module RipperTags
|
|
|
118
118
|
def self.process_args(argv, run = method(:run))
|
|
119
119
|
option_parser(default_options) do |optparse, options|
|
|
120
120
|
file_list = optparse.parse(argv)
|
|
121
|
-
if !file_list.empty?
|
|
122
|
-
|
|
121
|
+
if !file_list.empty?
|
|
122
|
+
options.files = file_list
|
|
123
|
+
elsif !options.recursive
|
|
124
|
+
raise OptionParser::InvalidOption, "needs either a list of files or `-R' flag"
|
|
123
125
|
end
|
|
124
|
-
options.
|
|
126
|
+
options.tag_file_name ||= options.format == 'emacs' ? './TAGS' : './tags'
|
|
127
|
+
options.format ||= File.basename(options.tag_file_name) == 'TAGS' ? 'emacs' : 'vim'
|
|
125
128
|
options.tag_relative = options.format == "emacs" if options.tag_relative.nil?
|
|
126
129
|
return run.call(options)
|
|
127
130
|
end
|
data/lib/ripper-tags/parser.rb
CHANGED
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.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aman Gupta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: fast, accurate ctags generator for ruby source code using Ripper
|
|
14
14
|
email:
|