guard-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -3
- data/lib/guard/rails/runner.rb +4 -3
- data/lib/guard/rails/version.rb +1 -1
- metadata +21 -15
data/Rakefile
CHANGED
@@ -5,9 +5,10 @@ Bundler::GemHelper.install_tasks
|
|
5
5
|
require 'rspec/core/rake_task'
|
6
6
|
|
7
7
|
desc 'Push everywhere!'
|
8
|
-
task :
|
9
|
-
system %{git push origin
|
10
|
-
system %{git push guard
|
8
|
+
task :publish do
|
9
|
+
system %{git push origin}
|
10
|
+
system %{git push guard}
|
11
|
+
system %{git push gitcafe}
|
11
12
|
end
|
12
13
|
|
13
14
|
RSpec::Core::RakeTask.new(:spec)
|
data/lib/guard/rails/runner.rb
CHANGED
@@ -23,7 +23,7 @@ module Guard
|
|
23
23
|
wait_for_no_pid if $?.exitstatus == 0
|
24
24
|
|
25
25
|
# If you lost your pid_file, you are already died.
|
26
|
-
system %{kill -KILL #{pid} > /dev/null
|
26
|
+
system %{kill -KILL #{pid} > /dev/null}
|
27
27
|
FileUtils.rm pid_file, :force => true
|
28
28
|
end
|
29
29
|
end
|
@@ -43,9 +43,10 @@ module Guard
|
|
43
43
|
options[:server].nil? ? '' : options[:server],
|
44
44
|
]
|
45
45
|
|
46
|
-
|
46
|
+
# omit env when use zeus
|
47
|
+
rails_runner = options[:zeus] ? 'zeus' : "RAILS_ENV=#{options[:environment]} rails"
|
47
48
|
|
48
|
-
%{sh -c 'cd #{Dir.pwd} &&
|
49
|
+
%{sh -c 'cd #{Dir.pwd} && #{rails_runner} server #{rails_options.join(' ')} &'}
|
49
50
|
end
|
50
51
|
|
51
52
|
def pid_file
|
data/lib/guard/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1
|
5
4
|
prerelease:
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Bintz
|
@@ -10,11 +10,17 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.2.2
|
21
|
+
none: false
|
17
22
|
prerelease: false
|
23
|
+
name: guard
|
18
24
|
requirement: !ruby/object:Gem::Requirement
|
19
25
|
requirements:
|
20
26
|
- - ! '>='
|
@@ -22,15 +28,15 @@ dependencies:
|
|
22
28
|
version: 0.2.2
|
23
29
|
none: false
|
24
30
|
type: :runtime
|
31
|
+
- !ruby/object:Gem::Dependency
|
25
32
|
version_requirements: !ruby/object:Gem::Requirement
|
26
33
|
requirements:
|
27
34
|
- - ! '>='
|
28
35
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
36
|
+
version: 2.6.0
|
30
37
|
none: false
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: rspec
|
33
38
|
prerelease: false
|
39
|
+
name: rspec
|
34
40
|
requirement: !ruby/object:Gem::Requirement
|
35
41
|
requirements:
|
36
42
|
- - ! '>='
|
@@ -38,15 +44,15 @@ dependencies:
|
|
38
44
|
version: 2.6.0
|
39
45
|
none: false
|
40
46
|
type: :development
|
47
|
+
- !ruby/object:Gem::Dependency
|
41
48
|
version_requirements: !ruby/object:Gem::Requirement
|
42
49
|
requirements:
|
43
50
|
- - ! '>='
|
44
51
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
52
|
+
version: 0.13.1
|
46
53
|
none: false
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: mocha
|
49
54
|
prerelease: false
|
55
|
+
name: mocha
|
50
56
|
requirement: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - ! '>='
|
@@ -54,12 +60,6 @@ dependencies:
|
|
54
60
|
version: 0.13.1
|
55
61
|
none: false
|
56
62
|
type: :development
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.13.1
|
62
|
-
none: false
|
63
63
|
description: Restart Rails when things change in your app
|
64
64
|
email:
|
65
65
|
- john@coswellproductions.com
|
@@ -94,12 +94,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
hash: -4458401293716373898
|
97
100
|
none: false
|
98
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
102
|
requirements:
|
100
103
|
- - ! '>='
|
101
104
|
- !ruby/object:Gem::Version
|
102
105
|
version: '0'
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
hash: -4458401293716373898
|
103
109
|
none: false
|
104
110
|
requirements: []
|
105
111
|
rubyforge_project: guard-rails
|