guard-rails 0.5.2 → 0.5.3

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: b195229aa6f2eb27fb7111e5334b979caadcb9b7
4
- data.tar.gz: 47fbf9313b7d2d860c1764b08a5fed6cbd04dbf0
3
+ metadata.gz: 95174474f7158b781f56e351d7069b1d89ac7d94
4
+ data.tar.gz: 9d2ad0756d2e990cf619a093bf72ce687a6723ec
5
5
  SHA512:
6
- metadata.gz: 3966da96186c6951e4001a97c7e769e56160ac22d86ac4b21d6e2e86455b64d52f2d2b7a2f140214a8aa6f11694e3645998f5b24a9a27fc454d613ec8e3ced1a
7
- data.tar.gz: 2a692e06815d3fb62976378c2e872060fab44855df3aefd85021f5e9e1fe40729e860bc156bdc72c48c8e80add3d1f176fa05da53a5f558cad4c4262d6775abe
6
+ metadata.gz: 2ce575bea742462c421ec00c2675bcabd303a64148cf644189ee1f1fc70382183102443bd8be5f0bfdbc38f1cc8877d5e4f5dbe98fb2eceb4baa9e34c04a9be4
7
+ data.tar.gz: d851c55f50720226db322ca3c1914610e30d3f9bf7a454751c314230326541b1e01720532029083707dfe06f75135eea9dc47d761dabec3b3d65192ca90d4624
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-rails (0.5.1)
4
+ guard-rails (0.5.2)
5
5
  guard (~> 2.0)
6
6
 
7
7
  GEM
@@ -24,41 +24,41 @@ GEM
24
24
  guard-bundler (2.0.0)
25
25
  bundler (~> 1.0)
26
26
  guard (~> 2.2)
27
- guard-rspec (4.2.9)
27
+ guard-rspec (4.2.10)
28
28
  guard (~> 2.1)
29
29
  rspec (>= 2.14, < 4.0)
30
30
  libnotify (0.8.3)
31
31
  ffi (>= 1.0.11)
32
- listen (2.7.5)
32
+ listen (2.7.9)
33
33
  celluloid (>= 0.15.2)
34
34
  rb-fsevent (>= 0.9.3)
35
35
  rb-inotify (>= 0.9)
36
- lumberjack (1.0.6)
36
+ lumberjack (1.0.9)
37
37
  metaclass (0.0.4)
38
38
  method_source (0.8.2)
39
39
  mocha (1.1.0)
40
40
  metaclass (~> 0.0.1)
41
- pry (0.9.12.6)
42
- coderay (~> 1.0)
43
- method_source (~> 0.8)
41
+ pry (0.10.0)
42
+ coderay (~> 1.1.0)
43
+ method_source (~> 0.8.1)
44
44
  slop (~> 3.4)
45
- pry (0.9.12.6-java)
46
- coderay (~> 1.0)
47
- method_source (~> 0.8)
45
+ pry (0.10.0-java)
46
+ coderay (~> 1.1.0)
47
+ method_source (~> 0.8.1)
48
48
  slop (~> 3.4)
49
49
  spoon (~> 0.0)
50
50
  rake (10.3.2)
51
51
  rb-fsevent (0.9.4)
52
- rb-inotify (0.9.4)
52
+ rb-inotify (0.9.5)
53
53
  ffi (>= 0.5.0)
54
- rspec (2.14.1)
55
- rspec-core (~> 2.14.0)
56
- rspec-expectations (~> 2.14.0)
57
- rspec-mocks (~> 2.14.0)
58
- rspec-core (2.14.8)
59
- rspec-expectations (2.14.5)
54
+ rspec (2.99.0)
55
+ rspec-core (~> 2.99.0)
56
+ rspec-expectations (~> 2.99.0)
57
+ rspec-mocks (~> 2.99.0)
58
+ rspec-core (2.99.1)
59
+ rspec-expectations (2.99.1)
60
60
  diff-lcs (>= 1.1.3, < 2.0)
61
- rspec-mocks (2.14.6)
61
+ rspec-mocks (2.99.1)
62
62
  slop (3.5.0)
63
63
  spoon (0.0.4)
64
64
  ffi
data/Guardfile CHANGED
@@ -4,9 +4,10 @@
4
4
  guard 'bundler' do
5
5
  watch('Gemfile')
6
6
  watch(/^.+\.gemspec/)
7
+ watch('VERSION')
7
8
  end
8
9
 
9
- guard 'rspec', :cli => "--color --format documentation" do
10
+ guard 'rspec', cmd: "bundle exec rspec --color --format documentation" do
10
11
  watch('Gemfile.lock')
11
12
  watch(%r{^spec/.+_spec\.rb})
12
13
  watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
data/Rakefile CHANGED
@@ -21,10 +21,12 @@ end
21
21
 
22
22
  task :default => 'spec:platforms'
23
23
 
24
+ # Add to .git/config:
25
+ # [remote "all"]
26
+ # url = git@github.com:ranmocy/guard-rails.git
27
+ # url = git@gitcafe.com:ranmocy/guard-rails.git
24
28
  desc 'Push everywhere!'
25
29
  task :publish do
26
- system %{git push origin}
27
- system %{git push gitcafe}
28
- system %{git push origin --tags}
29
- system %{git push gitcafe --tags}
30
+ system %{git push all}
31
+ system %{git push all --tags}
30
32
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -87,17 +87,23 @@ module Guard
87
87
  zeus_options = [
88
88
  options[:zeus_plan] || 'server',
89
89
  ]
90
-
91
- # zeus will check if it runs inside bundler, remove the flag here
92
- "RUBYOPT='' zeus #{zeus_options.join(' ')} #{build_options}"
90
+ "zeus #{zeus_options.join(' ')} #{build_options}"
93
91
  end
94
92
 
95
93
  def build_rails_command
96
94
  "rails server #{build_options}"
97
95
  end
98
96
 
97
+ def without_bundler_env
98
+ if defined?(::Bundler)
99
+ ::Bundler.with_clean_env { yield }
100
+ else
101
+ yield
102
+ end
103
+ end
104
+
99
105
  def run_rails_command!
100
- system(environment, build_command)
106
+ without_bundler_env { system(environment, build_command) }
101
107
  end
102
108
 
103
109
  def has_pid?
@@ -129,10 +129,6 @@ 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
-
136
132
  context "custom zeus plan" do
137
133
  let(:options) { default_options.merge(:zeus => true, :zeus_plan => 'test_server') }
138
134
  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.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bintz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-30 00:00:00.000000000 Z
12
+ date: 2014-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard