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 CHANGED
@@ -1 +1 @@
1
- 0.1.18
1
+ 0.1.19
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "cuken"
8
- s.version = "0.1.18"
8
+ s.version = "0.1.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hedgehog"]
@@ -32,9 +32,9 @@ module ::Cuken
32
32
  end
33
33
 
34
34
  def environment(gemset, options={})
35
- @environemnt = self.new(gemset, options)
36
- yield @environemnt if block_given?
37
- @environemnt
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.18
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: -3188376704056936823
740
+ hash: -307529011445037689
741
741
  segments:
742
742
  - 0
743
743
  version: "0"