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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b55d8368b1a3d146c369b5f90d86c29aed33b8d
4
- data.tar.gz: 7237ddaa55dd8240ff9806723678679671373f64
3
+ metadata.gz: 79dda3376c3d1b1070fe56b86189bf904260033e
4
+ data.tar.gz: 43759f9946389cd0723494282d9277a682e676d1
5
5
  SHA512:
6
- metadata.gz: da6962b23d74fee50629fb72a65e3e0d2108084d55dc00a51a61eb3a81cc666474c2078ea476fdba16c8083a0bacf79b1d4f274ec5c1ab362d9e553b3ad98e10
7
- data.tar.gz: 51d15fc8c4060bb00addc22d54959002d70707afbe2f871d74d42b8c1b3d209399a4e39ed2704eb91b9e10c64c03e295b0249edd4ec8002124aaa95d2c71d640
6
+ metadata.gz: 70ae819fd23dfaf91db846b8bb4fd03250cf6e6b90fbd08287234e8741279b62c2ba990d07a035f9e191e2d462e20d93be41ca725364dc621e3360c84124b44b
7
+ data.tar.gz: 4b103fca69af911a605d2552abf90cd8d3a4a075a5184199187f9f69749523e9bae8c8b8ec300ad4f0d2bf7bffbbcb7fce4bbc4aa5154e240132243ff8b74e21
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
2
+ - 1.9.3
4
3
  - 2.0.0
5
- - ree
4
+ - 2.1.0
6
5
  - jruby
7
6
  script: "bundle exec rake spec"
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](http://github.com/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](https://github.com/guard/guard) installed before continue.
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 changed!
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 ran `guard` (**default `false`**)
35
- * `:debugger` enable the debugger in server. Required ruby-debug gem. (**default `false`**)
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](https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md) in zeus, only works when `zeus` option is `true` (**default `server`**)
45
- * `:zeus` support [zeus](https://github.com/burke/zeus) to boost rails init speed (**default `false`**).
46
- * `:CLI` construct the runner command as your willing! Will omit all options above except `pid_file`! (**default `rails server --pid tmp/pids/[RAILS_ENV].pid`**)
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 in 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
+ * **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 choise to contact me is the Issues and Pull Request system on GitHub.
61
- Currently the official fork repository is at [ranmocy/guard-rails](http://github.com/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 issue or pull request there.
64
+ Please, post your issues or pull requests there.
64
65
  And I will be there as your call.
65
66
 
66
- ## Contributor
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
- * Benjamin Sullivan
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
- * cablegram
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.4.7
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.2.2'
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/guard'
2
+ require 'guard/plugin'
3
3
  require 'guard/rails/runner'
4
4
  require 'rbconfig'
5
5
 
6
6
  module Guard
7
- class Rails < ::Guard::Guard
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(watchers = [], options = {})
28
+ def initialize(options = {})
29
29
  super
30
30
  @options = DEFAULT_OPTIONS.merge(options)
31
31
 
@@ -2,8 +2,7 @@ require 'spec_helper'
2
2
  require 'guard/rails'
3
3
 
4
4
  describe Guard::Rails do
5
- let(:guard) { Guard::Rails.new(watchers, options) }
6
- let(:watchers) { [] }
5
+ let(:guard) { Guard::Rails.new(options) }
7
6
  let(:options) { {} }
8
7
 
9
8
  describe '#initialize' 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.4.7
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: 2013-07-14 00:00:00.000000000 Z
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.2.2
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.2.2
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.0.3
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.