git-version-bump 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git-version-bump.rb +4 -1
- metadata +4 -4
data/lib/git-version-bump.rb
CHANGED
@@ -15,12 +15,15 @@ module GitVersionBump
|
|
15
15
|
map { |l| l.split(':')[0] }.
|
16
16
|
find { |l| l != __FILE__ }
|
17
17
|
|
18
|
+
# Real paths, please.
|
19
|
+
caller_file = File.realpath(caller_file)
|
20
|
+
|
18
21
|
# Next we grovel through all the loaded gems to try and find the gem
|
19
22
|
# that contains the caller's file.
|
20
23
|
Gem.loaded_specs.values.each do |spec|
|
21
24
|
if Dir.
|
22
25
|
glob(spec.lib_dirs_glob).
|
23
|
-
find { |d| caller_file.index(d) == 0 }
|
26
|
+
find { |d| caller_file.index(File.realpath(d)) == 0 }
|
24
27
|
# The caller_file is in this
|
25
28
|
# gem! Woohoo!
|
26
29
|
return spec
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-version-bump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
segments:
|
89
89
|
- 0
|
90
|
-
hash:
|
90
|
+
hash: -2248607570757243079
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
none: false
|
93
93
|
requirements:
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: -2248607570757243079
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
102
|
rubygems_version: 1.8.23
|