guard-rails 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -18
- data/Guardfile +2 -1
- data/Rakefile +6 -4
- data/VERSION +1 -1
- data/lib/guard/rails/runner.rb +10 -4
- data/spec/lib/guard/rails/runner_spec.rb +0 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95174474f7158b781f56e351d7069b1d89ac7d94
|
4
|
+
data.tar.gz: 9d2ad0756d2e990cf619a093bf72ce687a6723ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
52
|
+
rb-inotify (0.9.5)
|
53
53
|
ffi (>= 0.5.0)
|
54
|
-
rspec (2.
|
55
|
-
rspec-core (~> 2.
|
56
|
-
rspec-expectations (~> 2.
|
57
|
-
rspec-mocks (~> 2.
|
58
|
-
rspec-core (2.
|
59
|
-
rspec-expectations (2.
|
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.
|
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', :
|
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
|
27
|
-
system %{git push
|
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.
|
1
|
+
0.5.3
|
data/lib/guard/rails/runner.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|