git-version-bump 0.13.3 → 0.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/git-version-bump.rb +4 -4
  2. metadata +2 -2
@@ -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
- if (Dir.glob(spec.lib_dirs_glob) + Dir["#{spec.bin_dir}/*"]).
40
- find { |d| cf.index(Pathname(d).realpath.to_s) == 0 }
41
- # The caller_file is in this
42
- # gem! Woohoo!
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.3
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: 2014-11-08 00:00:00.000000000 Z
12
+ date: 2015-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: github-release