spitball 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spitball.rb +6 -7
- data/lib/spitball/version.rb +1 -1
- data/spec/spitball_spec.rb +1 -1
- metadata +3 -3
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
|
-
|
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
|
-
|
93
|
-
|
94
|
-
|
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)
|
data/lib/spitball/version.rb
CHANGED
data/spec/spitball_spec.rb
CHANGED
@@ -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(
|
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Freels
|