cuken 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cuken.gemspec +1 -1
- data/lib/cuken/api/rvm.rb +3 -3
- data/lib/cuken/api/rvm/gemsets.rb +9 -0
- data/lib/cuken/cucumber/rvm/gemsets.rb +4 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.19
|
data/cuken.gemspec
CHANGED
data/lib/cuken/api/rvm.rb
CHANGED
@@ -32,9 +32,9 @@ module ::Cuken
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def environment(gemset, options={})
|
35
|
-
@
|
36
|
-
yield @
|
37
|
-
@
|
35
|
+
@environment = self.new(gemset, options)
|
36
|
+
yield @environment if block_given?
|
37
|
+
@environment
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -14,6 +14,15 @@ module ::Cuken
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
def gemset_use(gemset, rubie = 'ruby-1.9.2-p290', expect_active = true)
|
18
|
+
RVM.use!("#{gemset}").inspect
|
19
|
+
if expect_active
|
20
|
+
rvm.current.environment_name.should match(gemset)
|
21
|
+
else
|
22
|
+
rvm.current.environment_name.should_not match(gemset)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
17
26
|
def check_gemset_presence(gemsets, expect_presence = true)
|
18
27
|
if expect_presence
|
19
28
|
gemsets.each do |gs|
|
@@ -20,6 +20,10 @@ Given /^the Gemset "([^"]*)" is active$/ do |gemset|
|
|
20
20
|
check_gemset_activation(gemset, true)
|
21
21
|
end
|
22
22
|
|
23
|
+
Given /^the Gemset "([^"]*)" is used$/ do |gemset|
|
24
|
+
gemset_use(gemset)
|
25
|
+
end
|
26
|
+
|
23
27
|
Given /^the Gemset "([^"]*)" is not active$/ do |gemset|
|
24
28
|
check_gemset_activation(gemset, true)
|
25
29
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: cuken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.19
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Hedgehog
|
@@ -737,7 +737,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
737
737
|
requirements:
|
738
738
|
- - ">="
|
739
739
|
- !ruby/object:Gem::Version
|
740
|
-
hash: -
|
740
|
+
hash: -307529011445037689
|
741
741
|
segments:
|
742
742
|
- 0
|
743
743
|
version: "0"
|