gem-wrappers 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem-wrappers/command.rb +3 -13
- data/lib/gem-wrappers/version.rb +1 -1
- data/test/gem-wrappers/command_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98aaf8bdf23a01b308bc8baf137d52b5c17dff41
|
4
|
+
data.tar.gz: 2a83e18c650959c196b43f543fc8a0677b798ff5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8401c8ac96d066a0e8fba01293ebbb5ec91d7bdbf7b859db3c2da21bb4a21ecd407767bf218ec49a6e449c3bc2122f6eea979922185944394e2f0954f67c1277
|
7
|
+
data.tar.gz: fca23f20bae605b5cf795dbb5d67b26858e1c7e16e4812d95fdca394504ee8ea5b5dadd8879e0f24e52e3100f00b78e0f25981d451f330939cb9c5caa2c4fab5
|
data/lib/gem-wrappers/command.rb
CHANGED
@@ -51,23 +51,13 @@ DOC
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def execute_regenerate
|
54
|
-
GemWrappers.install(
|
54
|
+
GemWrappers.install(executables)
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
58
58
|
|
59
|
-
def
|
60
|
-
@
|
61
|
-
end
|
62
|
-
|
63
|
-
def gem_dir_specs_executables
|
64
|
-
gem_dir_specs.map(&:executables).reject(&:nil?)
|
65
|
-
end
|
66
|
-
|
67
|
-
def gem_dir_specs
|
68
|
-
installed_gems.select { |spec|
|
69
|
-
File.exists?( File.join( Gem.dir, 'gems', spec.full_name ) )
|
70
|
-
}
|
59
|
+
def executables
|
60
|
+
@executables ||= installed_gems.map(&:executables).inject(&:+)
|
71
61
|
end
|
72
62
|
|
73
63
|
def installed_gems
|
data/lib/gem-wrappers/version.rb
CHANGED
@@ -67,7 +67,7 @@ EXPECTED
|
|
67
67
|
Gem.configuration[:wrappers_environment_file] = File.join(@test_path, "environment")
|
68
68
|
Gem.configuration[:wrappers_path] = File.join(@test_path, "wrappers")
|
69
69
|
|
70
|
-
subject.instance_variable_set(:@
|
70
|
+
subject.instance_variable_set(:@executables, %w{rake})
|
71
71
|
subject.options[:args] = ['regenerate']
|
72
72
|
subject.execute
|
73
73
|
|
@@ -86,7 +86,7 @@ EXPECTED
|
|
86
86
|
end
|
87
87
|
|
88
88
|
it "finds gem executables" do
|
89
|
-
subject.send(:
|
89
|
+
subject.send(:executables).must_include('coveralls')
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-wrappers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Papis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|