engage 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/engage/runner.rb +6 -2
- data/lib/engage/version.rb +2 -2
- data/spec/runner_spec.rb +2 -2
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/engage/runner.rb
CHANGED
@@ -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",
|
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
|
data/lib/engage/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Engage
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
2
|
+
VERSION = "0.0.5"
|
3
|
+
end
|
data/spec/runner_spec.rb
CHANGED
@@ -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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lucas Mazza
|