spitball 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/spitball.rb CHANGED
@@ -70,7 +70,9 @@ class Spitball
70
70
 
71
71
  Dir.chdir(Repo.gemcache_path) do
72
72
  @dsl.__gem_names.each do |spec_name|
73
- install_gem(@parsed_lockfile.specs.find {|spec| spec.name == spec_name})
73
+ if @groups_to_install.any?{|group| @dsl.__groups[group].include?(spec_name)}
74
+ install_gem(@parsed_lockfile.specs.find {|spec| spec.name == spec_name})
75
+ end
74
76
  end
75
77
  end
76
78
 
@@ -89,13 +91,10 @@ class Spitball
89
91
  end
90
92
 
91
93
  def install_gem(spec)
92
- if @groups_to_install.any?{|group| @dsl.__groups[group].include?(spec.name)}
93
- install_and_copy_spec(spec)
94
- spec.dependencies.each do |dep|
95
- install_gem(@parsed_lockfile.specs.find {|spec| spec.name == dep.name})
96
- end
94
+ install_and_copy_spec(spec)
95
+ spec.dependencies.each do |dep|
96
+ install_gem(@parsed_lockfile.specs.find {|spec| spec.name == dep.name})
97
97
  end
98
-
99
98
  end
100
99
 
101
100
  def install_and_copy_spec(spec)
@@ -1,3 +1,3 @@
1
1
  class Spitball
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
@@ -127,7 +127,7 @@ describe Spitball do
127
127
 
128
128
  it "should use without" do
129
129
  @spitball = Spitball.new(@gemfile, @lockfile)
130
- mock(@spitball).install_and_copy_spec(anything).times(1)
130
+ mock(@spitball).install_and_copy_spec(anything).times(9)
131
131
  @spitball.send :create_bundle
132
132
  @spitball = Spitball.new(@gemfile, @lockfile, :without => 'development')
133
133
  mock(@spitball).install_and_copy_spec(anything).times(0)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spitball
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels