gem-wrappers 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Changelog.md +5 -0
- data/LICENSE +1 -1
- data/lib/gem-wrappers.rb +5 -3
- data/lib/gem-wrappers/version.rb +1 -1
- data/test/gem-wrappers/command_test.rb +1 -1
- data/test/gem-wrappers/specification_and_version_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
data.tar.gz:
|
4
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 8760f42ee3404a92db5666a4c13f651ea101ba65
|
4
|
+
metadata.gz: 3042f776a429469c017f523557261b0a453c6204
|
5
5
|
SHA512:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
6
|
+
data.tar.gz: c90e21bcd1906252f3948f79691ecf9298eebbb6a28f620fa67b66e3b603a626d2e9635619d8389bf3c921e0651c898ae904077a6c2aa95b91c0863ebf26b7d8
|
7
|
+
metadata.gz: 5c32a9e16c6d3622151b46ef54fbbd0bc8e7553644e2961f32b8828322dfc4381dd6f39e79c05187defca3d4f07c533067dcea19a6e09d281d5396b455229cd1
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
data/LICENSE
CHANGED
data/lib/gem-wrappers.rb
CHANGED
@@ -43,9 +43,11 @@ module GemWrappers
|
|
43
43
|
private
|
44
44
|
|
45
45
|
def self.ruby_executables
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
bindir = RbConfig::CONFIG["bindir"].sub(/\/+\z/, '')
|
47
|
+
Dir.entries(bindir).select do |file|
|
48
|
+
path = "#{bindir}/#{file}"
|
49
|
+
!File.directory?(path) && File.executable?(path)
|
50
|
+
end
|
49
51
|
end
|
50
52
|
|
51
53
|
end
|
data/lib/gem-wrappers/version.rb
CHANGED
@@ -75,7 +75,7 @@ EXPECTED
|
|
75
75
|
Dir.chdir(File.dirname(@file.path)) do
|
76
76
|
subject.options[:args] = [File.basename(@file.path)]
|
77
77
|
subject.execute
|
78
|
-
@fake_installer.executables.must_equal([@file.path])
|
78
|
+
@fake_installer.executables.must_equal([Pathname.new(@file.path).realpath.to_s])
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-wrappers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Papis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-10 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|