guard-rails 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/guard/rails/runner.rb +3 -3
- data/spec/lib/guard/rails/runner_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b195229aa6f2eb27fb7111e5334b979caadcb9b7
|
4
|
+
data.tar.gz: 47fbf9313b7d2d860c1764b08a5fed6cbd04dbf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3966da96186c6951e4001a97c7e769e56160ac22d86ac4b21d6e2e86455b64d52f2d2b7a2f140214a8aa6f11694e3645998f5b24a9a27fc454d613ec8e3ced1a
|
7
|
+
data.tar.gz: 2a692e06815d3fb62976378c2e872060fab44855df3aefd85021f5e9e1fe40729e860bc156bdc72c48c8e80add3d1f176fa05da53a5f558cad4c4262d6775abe
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/lib/guard/rails/runner.rb
CHANGED
@@ -38,8 +38,7 @@ module Guard
|
|
38
38
|
command = build_cli_command if options[:CLI]
|
39
39
|
command ||= build_zeus_command if options[:zeus]
|
40
40
|
command ||= build_rails_command
|
41
|
-
|
42
|
-
"env -u RUBYOPT sh -c 'cd \"#{@root}\" && #{command} &'"
|
41
|
+
"sh -c 'cd \"#{@root}\" && #{command} &'"
|
43
42
|
end
|
44
43
|
|
45
44
|
def environment
|
@@ -89,7 +88,8 @@ module Guard
|
|
89
88
|
options[:zeus_plan] || 'server',
|
90
89
|
]
|
91
90
|
|
92
|
-
|
91
|
+
# zeus will check if it runs inside bundler, remove the flag here
|
92
|
+
"RUBYOPT='' zeus #{zeus_options.join(' ')} #{build_options}"
|
93
93
|
end
|
94
94
|
|
95
95
|
def build_rails_command
|
@@ -129,6 +129,10 @@ describe Guard::RailsRunner do
|
|
129
129
|
runner.build_command.should match(%r{zeus server })
|
130
130
|
end
|
131
131
|
|
132
|
+
it "should remove RUBYOPT env var to pretent running outside bundler" do
|
133
|
+
runner.build_command.should match(%r{RUBYOPT='' })
|
134
|
+
end
|
135
|
+
|
132
136
|
context "custom zeus plan" do
|
133
137
|
let(:options) { default_options.merge(:zeus => true, :zeus_plan => 'test_server') }
|
134
138
|
it "should use custom zeus plan" do
|