engage 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- engage (0.0.4)
4
+ engage (0.0.5)
5
5
  thor (~> 0.14)
6
6
 
7
7
  GEM
@@ -26,12 +26,12 @@ module Engage
26
26
  def generate_gemset
27
27
  return if adding_source?
28
28
  run "rvm gemset create #{project_name}"
29
- create_file "#{project_name}/.rvmrc", "rvm #{rubyversion}@#{project_name}"
29
+ create_file "#{project_name}/.rvmrc", selected_ruby
30
30
  end
31
31
 
32
32
  def run_bundler
33
33
  return if adding_source?
34
- run "cd #{project_name} && bundle" if using_bundler?
34
+ run "cd #{project_name} && #{selected_ruby} exec bundle" if using_bundler?
35
35
  end
36
36
 
37
37
  def store
@@ -79,6 +79,10 @@ module Engage
79
79
  `#{ENV["HOME"]}/.rvm/bin/rvm-prompt v`.strip
80
80
  end
81
81
 
82
+ def selected_ruby
83
+ "rvm #{rubyversion}@#{project_name}"
84
+ end
85
+
82
86
  end
83
87
  end
84
88
  end
@@ -1,3 +1,3 @@
1
1
  module Engage
2
- VERSION = "0.0.4"
3
- end
2
+ VERSION = "0.0.5"
3
+ end
@@ -36,7 +36,7 @@ describe Engage::Runner do
36
36
  end
37
37
 
38
38
  it "runs bundler command" do
39
- expect "cd engage && bundle"
39
+ expect "cd engage && #{subject.selected_ruby} exec bundle"
40
40
  run
41
41
  end
42
42
 
@@ -52,7 +52,7 @@ describe Engage::Runner do
52
52
  end
53
53
 
54
54
  it "doesn't run the bundler command" do
55
- dont_expect "cd engage && bundle"
55
+ dont_expect "cd engage && #{subject.selected_ruby} exec bundle"
56
56
  run
57
57
  end
58
58
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engage
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lucas Mazza