gem-wrappers 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changelog.md +5 -0
- data/lib/gem-wrappers.rb +9 -2
- data/lib/gem-wrappers/version.rb +1 -1
- data/test/gem-wrappers/fakes.rb +1 -1
- data/test/gem-wrappers_test.rb +5 -3
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA512:
|
3
|
-
metadata.gz: f04d42e70ec2f1b65a3167be83d17b22f08e7d419a4c8c4675140df95cee9f382dbc9a3537d64598029f3b0048e9fe2965ee692141844eb016d351147b656a83
|
4
|
-
data.tar.gz: 9b8d907ec0e80f40330183cf43f8f3c73aeffe51d80c1d94cc9195ba6c7e1d66c9e7ffb712bfb03d0c8b5324341d0ce15e4b12a62fe899e4982721fcc3f9387a
|
5
2
|
SHA1:
|
6
|
-
|
7
|
-
|
3
|
+
data.tar.gz: bb71f62bd6e935bc54f7a3fd2e703e6522ff41c7
|
4
|
+
metadata.gz: 51b55bfc707350a6b074211143247938fb80f101
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 3190a60f96a8a23daf0343efc1740b485b1621274a5429843c48d71197bb1c2d21bf658b0c6caf86a976100db3124aed429b94af024d574077e7878d573a731c
|
7
|
+
metadata.gz: 1f6092a77020ce56255bf9f2504bcb8e0a291a85fbcc4df4e49cd2bded3486b84b20526b2b7f2c7336839942e0fcfc7678a3527b4f2ecbc5970c51bcece7062d
|
data/Changelog.md
CHANGED
data/lib/gem-wrappers.rb
CHANGED
@@ -20,8 +20,7 @@ module GemWrappers
|
|
20
20
|
installer.install(executable)
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
%w{ruby gem erb irb ri rdoc testrb}.each do |executable|
|
23
|
+
ruby_executables.each do |executable|
|
25
24
|
installer.install(executable)
|
26
25
|
end
|
27
26
|
end
|
@@ -41,4 +40,12 @@ module GemWrappers
|
|
41
40
|
environment.file_name
|
42
41
|
end
|
43
42
|
|
43
|
+
private
|
44
|
+
|
45
|
+
def self.ruby_executables
|
46
|
+
Dir.chdir(RbConfig::CONFIG["bindir"]) {
|
47
|
+
Dir["*"].select{ |file| File.executable?(file) }
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
44
51
|
end
|
data/lib/gem-wrappers/version.rb
CHANGED
data/test/gem-wrappers/fakes.rb
CHANGED
data/test/gem-wrappers_test.rb
CHANGED
@@ -28,14 +28,16 @@ describe GemWrappers do
|
|
28
28
|
subject.install(%w{rake test})
|
29
29
|
@fake_envvironment.ensure?.must_equal(true)
|
30
30
|
@fake_installer.ensure?.must_equal(true)
|
31
|
-
@fake_installer.executables.
|
31
|
+
@fake_installer.executables.sort.must_include("rake")
|
32
|
+
@fake_installer.executables.sort.must_include("ruby")
|
33
|
+
@fake_installer.executables.sort.must_include("test")
|
32
34
|
end
|
33
35
|
|
34
36
|
it "does remove wrapper" do
|
35
37
|
subject.install(%w{rake})
|
36
|
-
@fake_installer.executables.
|
38
|
+
@fake_installer.executables.must_include("rake")
|
37
39
|
subject.uninstall(%w{rake})
|
38
|
-
@fake_installer.executables.
|
40
|
+
@fake_installer.executables.wont_include("rake")
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
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.1
|
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-08-24 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -91,5 +91,11 @@ rubygems_version: 2.0.17
|
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Create gem wrappers for easy use of gems in cron and other system locations.
|
94
|
-
test_files:
|
95
|
-
|
94
|
+
test_files:
|
95
|
+
- test/gem-wrappers/command_test.rb
|
96
|
+
- test/gem-wrappers/environment_test.rb
|
97
|
+
- test/gem-wrappers/fakes.rb
|
98
|
+
- test/gem-wrappers/installer_test.rb
|
99
|
+
- test/gem-wrappers/specification_and_version_test.rb
|
100
|
+
- test/gem-wrappers_test.rb
|
101
|
+
- test/test_helper.rb
|