guard-rails 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0f34da5d821d20b9c7e6111263fdc6df7451bec
4
- data.tar.gz: 3c005b66de18c859d5a496c6443f17811e3d7dc2
3
+ metadata.gz: b195229aa6f2eb27fb7111e5334b979caadcb9b7
4
+ data.tar.gz: 47fbf9313b7d2d860c1764b08a5fed6cbd04dbf0
5
5
  SHA512:
6
- metadata.gz: 46ebc27bb4c2e5717d1507f924bf30100abd80222503e14d9997eceaeecd14d25f1933c93e52e48210aa5718c37d4f3228b6721bc1e05bf11c0b513d5b949033
7
- data.tar.gz: a9318d158573f292554c69c24da8a742eef6f80540c691c0aa7f7b5a7ecd6a274d6cebdda025e19db20ba76322625b7ba5b04ec6e1ea973b9fbcc5a6409dd658
6
+ metadata.gz: 3966da96186c6951e4001a97c7e769e56160ac22d86ac4b21d6e2e86455b64d52f2d2b7a2f140214a8aa6f11694e3645998f5b24a9a27fc454d613ec8e3ced1a
7
+ data.tar.gz: 2a692e06815d3fb62976378c2e872060fab44855df3aefd85021f5e9e1fe40729e860bc156bdc72c48c8e80add3d1f176fa05da53a5f558cad4c4262d6775abe
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-rails (0.5.0)
5
- guard (>= 2.0.0)
4
+ guard-rails (0.5.1)
5
+ guard (~> 2.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -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
- # zeus will check if it runs inside bundler, remove the flag here
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
- "zeus #{zeus_options.join(' ')} #{build_options}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bintz