guard-rails 0.4.7 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/LICENSE +22 -0
- data/README.md +32 -19
- data/Rakefile +0 -2
- data/VERSION +1 -1
- data/guard-rails.gemspec +1 -1
- data/lib/guard/rails.rb +3 -3
- data/spec/lib/guard/rails_spec.rb +1 -2
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79dda3376c3d1b1070fe56b86189bf904260033e
|
4
|
+
data.tar.gz: 43759f9946389cd0723494282d9277a682e676d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ae819fd23dfaf91db846b8bb4fd03250cf6e6b90fbd08287234e8741279b62c2ba990d07a035f9e191e2d462e20d93be41ca725364dc621e3360c84124b44b
|
7
|
+
data.tar.gz: 4b103fca69af911a605d2552abf90cd8d3a4a075a5184199187f9f69749523e9bae8c8b8ec300ad4f0d2bf7bffbbcb7fce4bbc4aa5154e240132243ff8b74e21
|
data/.travis.yml
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
FOLLOW YOUR HEART PUBLIC LICENSE
|
2
|
+
Version 1, July 2013
|
3
|
+
|
4
|
+
Copyright (C) 2013, Ranmocy Sheng <ranmocy@gmail.com>
|
5
|
+
|
6
|
+
Permission to use, copy, modify, and/or distribute this license for any purpose
|
7
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
8
|
+
and this permission notice appear in all copies, under this license itself.
|
9
|
+
|
10
|
+
THE WORK IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
11
|
+
REGARD TO THIS WORK INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
12
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
14
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
15
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
16
|
+
THIS WORK.
|
17
|
+
|
18
|
+
1. You MUST follow your heart to do what you REALLY want to do with this WORK.
|
19
|
+
2. If you are working on something you don't truely like, you are NOT permitted
|
20
|
+
to use this WORK in what you are working on.
|
21
|
+
3. Any work based on this work MUST under this license or the combination of this
|
22
|
+
license and other compatible license.
|
data/README.md
CHANGED
@@ -6,12 +6,12 @@
|
|
6
6
|
[![Code Climate](https://codeclimate.com/github/ranmocy/guard-rails.png)](https://codeclimate.com/github/ranmocy/guard-rails)
|
7
7
|
|
8
8
|
## Main repository
|
9
|
-
Currently, the official fork repository is at [ranmocy/guard-rails]
|
9
|
+
Currently, the official fork repository is at [ranmocy/guard-rails][ranmocy-guard-rails].
|
10
10
|
Please, come here and communicate with me.
|
11
11
|
|
12
12
|
## Install
|
13
13
|
|
14
|
-
Please make sure to have [Guard]
|
14
|
+
Please make sure to have [Guard][guard] installed before continuing.
|
15
15
|
|
16
16
|
Add Guard::Rails to your `Gemfile`:
|
17
17
|
|
@@ -27,12 +27,12 @@ Add the default Guard::Rails template to your `Guardfile` by running:
|
|
27
27
|
$ guard init rails
|
28
28
|
```
|
29
29
|
|
30
|
-
Now I can automatically restart your Rails development server as your files
|
30
|
+
Now I can automatically restart your Rails development server as your files change!
|
31
31
|
|
32
32
|
## Lots of fun options growing!
|
33
33
|
|
34
|
-
* `:daemon` runs the server as a daemon, without any output to the terminal that
|
35
|
-
* `:debugger` enable the debugger in server.
|
34
|
+
* `:daemon` runs the server as a daemon, without any output to the terminal that started `guard` (**default `false`**)
|
35
|
+
* `:debugger` enable the debugger in server. Requires ruby-debug gem. (**default `false`**)
|
36
36
|
* `:environment` is the server environment (**default `development`**)
|
37
37
|
* `:force_run` kills any process that's holding the listen port before attempting to (re)start Rails (**default `false`**)
|
38
38
|
* `:pid_file` specify your pid\_file (**default `tmp/pids/[RAILS_ENV].pid`**)
|
@@ -41,41 +41,54 @@ Now I can automatically restart your Rails development server as your files chan
|
|
41
41
|
* `:server` the webserver engine to use (**try `:server => :thin`**)
|
42
42
|
* `:start_on_start` will start the server when starting Guard (**default `true`**)
|
43
43
|
* `:timeout` waits when restarting the Rails server, in seconds (**default `30`**).
|
44
|
-
* `:zeus_plan` the [custom plan]
|
45
|
-
* `:zeus` support [zeus]
|
46
|
-
* `:CLI` construct the runner command as
|
44
|
+
* `:zeus_plan` the [custom plan][zeus-custom-plan] in zeus, only works when `zeus` option is `true` (**default `server`**)
|
45
|
+
* `:zeus` support [zeus][zeus] to boost rails init speed (**default `false`**).
|
46
|
+
* `:CLI` construct the runner command as you will! Will omit all options above except `pid_file`! (**default `rails server --pid tmp/pids/[RAILS_ENV].pid`**)
|
47
47
|
|
48
48
|
## How-to
|
49
49
|
|
50
|
-
* **Multiple instances** use `pid_file` option to run multiple instances with same rails\_env
|
50
|
+
* **Multiple instances** use `pid_file` option to run multiple instances with same rails\_env.
|
51
|
+
* **Avoid multiple autoruns when editing by VIM and Emacs** move the backup files to somewhere else or just ignore them in Guardfile.
|
51
52
|
|
52
53
|
## Philosophy
|
53
54
|
|
54
55
|
* **All Platforms** MRI is the main test case. But will be tested under REE and JRuby.
|
55
|
-
* **Live
|
56
|
+
* **Live on the edge** Ruby 1.8.7 has been deprecated. Guard-Rails will be tested under Ruby 1.9.3, 2.0.0 with newest gems. Will be rewrited with features of Ruby 2.0.0 as version 1.0.0.
|
56
57
|
* [Semantic Version](http://semver.org/)
|
57
58
|
|
58
59
|
## Contribute
|
59
60
|
|
60
|
-
The best
|
61
|
-
Currently the official fork repository is at [ranmocy/guard-rails]
|
61
|
+
The best way to contact me is the Issues and Pull Request system on GitHub.
|
62
|
+
Currently the official fork repository is at [ranmocy/guard-rails][ranmocy-guard-rails].
|
62
63
|
|
63
|
-
Please, post your
|
64
|
+
Please, post your issues or pull requests there.
|
64
65
|
And I will be there as your call.
|
65
66
|
|
66
|
-
##
|
67
|
+
## Contributors
|
67
68
|
|
68
69
|
* Ranmocy Sheng
|
69
70
|
* John Bintz
|
71
|
+
* cablegram
|
70
72
|
* Joel Moss
|
71
73
|
* Sidney Burks
|
72
74
|
* Paul Schyska
|
73
|
-
* Tim Preston
|
74
|
-
* Nathan Broadbent
|
75
75
|
* Adam Michel
|
76
|
-
*
|
76
|
+
* Nathan Broadbent
|
77
|
+
* Tim Preston
|
78
|
+
* killphi
|
79
|
+
* Grant Hutchins and Jonathan Mukai-Heidt
|
77
80
|
* Everard Brown
|
78
81
|
* Darrin Holst
|
79
|
-
* Grant Hutchins and Jonathan Mukai-Heidt
|
80
82
|
* Michel Pavan Macedo
|
81
|
-
*
|
83
|
+
* Benjamin Sullivan
|
84
|
+
* Johnny Robeson
|
85
|
+
|
86
|
+
## Copyright
|
87
|
+
|
88
|
+
Guard-rails is under **[FOLLOW YOUR HEART PUBLIC LICENSE][FYHPL]** version 1.
|
89
|
+
|
90
|
+
[ranmocy-guard-rails]: http://github.com/ranmocy/guard-rails
|
91
|
+
[guard]: https://github.com/guard/guard
|
92
|
+
[zeus]: https://github.com/burke/zeus
|
93
|
+
[zeus-custom-plan]: https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md
|
94
|
+
[FYHPL]: http://ranmocy.info/piece/FYHPL.txt
|
data/Rakefile
CHANGED
@@ -24,9 +24,7 @@ task :default => 'spec:platforms'
|
|
24
24
|
desc 'Push everywhere!'
|
25
25
|
task :publish do
|
26
26
|
system %{git push origin}
|
27
|
-
system %{git push guard}
|
28
27
|
system %{git push gitcafe}
|
29
28
|
system %{git push origin --tags}
|
30
|
-
system %{git push guard --tags}
|
31
29
|
system %{git push gitcafe --tags}
|
32
30
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/guard-rails.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency 'guard', '>= 0.
|
21
|
+
s.add_dependency 'guard', '>= 2.0.0'
|
22
22
|
|
23
23
|
s.add_development_dependency 'rspec', '>= 2.6.0'
|
24
24
|
s.add_development_dependency 'mocha', '>= 0.13.1'
|
data/lib/guard/rails.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'guard'
|
2
|
-
require 'guard/
|
2
|
+
require 'guard/plugin'
|
3
3
|
require 'guard/rails/runner'
|
4
4
|
require 'rbconfig'
|
5
5
|
|
6
6
|
module Guard
|
7
|
-
class Rails <
|
7
|
+
class Rails < Plugin
|
8
8
|
# Use gem `version` to support versioning
|
9
9
|
# is_versioned
|
10
10
|
|
@@ -25,7 +25,7 @@ module Guard
|
|
25
25
|
:zeus => false,
|
26
26
|
}
|
27
27
|
|
28
|
-
def initialize(
|
28
|
+
def initialize(options = {})
|
29
29
|
super
|
30
30
|
@options = DEFAULT_OPTIONS.merge(options)
|
31
31
|
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bintz
|
@@ -9,62 +9,62 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 2.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 2.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 2.6.0
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 2.6.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: mocha
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 0.13.1
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.13.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: version
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 1.0.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 1.0.0
|
70
70
|
description: Restart Rails when things change in your app
|
@@ -75,10 +75,11 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
- .gitignore
|
79
|
-
- .travis.yml
|
78
|
+
- ".gitignore"
|
79
|
+
- ".travis.yml"
|
80
80
|
- Gemfile
|
81
81
|
- Guardfile
|
82
|
+
- LICENSE
|
82
83
|
- README.md
|
83
84
|
- Rakefile
|
84
85
|
- VERSION
|
@@ -100,17 +101,17 @@ require_paths:
|
|
100
101
|
- lib
|
101
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
103
|
requirements:
|
103
|
-
- -
|
104
|
+
- - ">="
|
104
105
|
- !ruby/object:Gem::Version
|
105
106
|
version: '0'
|
106
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
108
|
requirements:
|
108
|
-
- -
|
109
|
+
- - ">="
|
109
110
|
- !ruby/object:Gem::Version
|
110
111
|
version: '0'
|
111
112
|
requirements: []
|
112
113
|
rubyforge_project: guard-rails
|
113
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.2.1
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: Guard your Rails to always be there.
|