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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4339758308b39d5be1d3226018ae44fd251d3971
4
- data.tar.gz: 720d74afa2a718ea92b5eb6b671809d2560cbe05
3
+ metadata.gz: 98aaf8bdf23a01b308bc8baf137d52b5c17dff41
4
+ data.tar.gz: 2a83e18c650959c196b43f543fc8a0677b798ff5
5
5
  SHA512:
6
- metadata.gz: 2f802504d5d80a1cee63660ee2591938d3a4033ac34667bfc0093369f9f32d25892de710192f5937181580428fd849199af75852dca50d0bf2402219513c1440
7
- data.tar.gz: 293ab5d653fdaa12e8457b1892ed09ab7df090ef9046fccb0fb73b072b93949c6de0ceb24481e5b8ac5f425ed3446f0fc4b33ec426cfd8f7fb0a55ff44d00dcf
6
+ metadata.gz: 8401c8ac96d066a0e8fba01293ebbb5ec91d7bdbf7b859db3c2da21bb4a21ecd407767bf218ec49a6e449c3bc2122f6eea979922185944394e2f0954f67c1277
7
+ data.tar.gz: fca23f20bae605b5cf795dbb5d67b26858e1c7e16e4812d95fdca394504ee8ea5b5dadd8879e0f24e52e3100f00b78e0f25981d451f330939cb9c5caa2c4fab5
@@ -51,23 +51,13 @@ DOC
51
51
  end
52
52
 
53
53
  def execute_regenerate
54
- GemWrappers.install(gem_dir_executables)
54
+ GemWrappers.install(executables)
55
55
  end
56
56
 
57
57
  private
58
58
 
59
- def gem_dir_executables
60
- @gem_dir_executables ||= gem_dir_specs_executables.inject(&:+).reject(&:nil?)
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
@@ -1,3 +1,3 @@
1
1
  module GemWrappers
2
- VERSION = "0.8.1"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -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(:@gem_dir_executables, %w{rake})
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(:gem_dir_executables).must_include('coveralls')
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.8.1
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-09 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake