git-version-bump 0.13.3 → 0.13.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.
- data/lib/git-version-bump.rb +4 -4
- metadata +2 -2
data/lib/git-version-bump.rb
CHANGED
@@ -36,10 +36,10 @@ module GitVersionBump
|
|
36
36
|
# Grovel through all the loaded gems to try and find the gem
|
37
37
|
# that contains the caller's file.
|
38
38
|
Gem.loaded_specs.values.each do |spec|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
search_dirs = spec.require_paths.map { |d| "#{spec.full_gem_path}/#{d}" } +
|
40
|
+
[spec.bin_dir]
|
41
|
+
|
42
|
+
if search_dirs.find { |d| cf.index(Pathname(d).realpath.to_s) == 0 }
|
43
43
|
return spec
|
44
44
|
end
|
45
45
|
end
|
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.13.
|
4
|
+
version: 0.13.4
|
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:
|
12
|
+
date: 2015-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: github-release
|