ripper-tags 0.2.0 → 0.2.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: 5a6a3d465781a89ac1728aae902fad12c456bbeb
4
- data.tar.gz: cd72ea7c347ac44cf838eb4f68a2e6a4de44f269
3
+ metadata.gz: af64b5310db2c8944c8a3af1bbbf3514b71f003e
4
+ data.tar.gz: 249c8b6dc4dc5d53cbe6d1c3505d5cc6110912c6
5
5
  SHA512:
6
- metadata.gz: 5f0dc42cefd0807694183b743b1525926c6865b8474f7f17d20c95c1031a2c8d6b27930f4cd0c301d2845a5a773ccdea9a6e369997eb326f4ffa7698081e0683
7
- data.tar.gz: e058985d5b4f662329e190a08e74f18df15138b68d07581028a3f0f42c2728064233725d1e0a9796e691a0c25d10efabfcaa449701b6aef2088952796c3903ab
6
+ metadata.gz: bc5ba6f2d1789d1bf02f849e7c0536cf1b3c99c8a3b58fcd3395994ac25223f4134908e1203ae91e2c99694d2cdd0921343b44a094893b8865baa09c941ce939
7
+ data.tar.gz: 74c81007636f8cdb8ed8c3243cc090a8a538a0319d157699e40e8d93490cdf814f73ab1c234118e14d3c7189f60643accd99d0c581448b1bc2604101f8f4c782
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.2.0" end
12
+ def self.version() "0.2.1" end
13
13
 
14
14
  FatalError = Class.new(RuntimeError)
15
15
 
@@ -40,13 +40,13 @@ module RipperTags
40
40
  end
41
41
 
42
42
  def tag_file_dir
43
- @tag_file_dir ||= Pathname.new(options.tag_file_name).dirname
43
+ @tag_file_dir ||= Pathname.new(options.tag_file_name).dirname.expand_path
44
44
  end
45
45
 
46
46
  def relative_path(tag)
47
47
  path = tag.fetch(:path)
48
48
  if options.tag_relative && !stdout? && path.index('/') != 0
49
- Pathname.new(path).relative_path_from(tag_file_dir).to_s
49
+ Pathname.new(path).expand_path.relative_path_from(tag_file_dir).to_s
50
50
  else
51
51
  path
52
52
  end
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.2.0
4
+ version: 0.2.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: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: fast, accurate ctags generator for ruby source code using Ripper
14
14
  email:
@@ -38,17 +38,17 @@ require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 2.2.3
51
+ rubygems_version: 2.0.14
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: ctags generator for ruby code