guard 2.14.1 → 2.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +23 -27
- data/bin/guard +2 -6
- data/lib/guard/dsl.rb +1 -1
- data/lib/guard/version.rb +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 455215a941ac2d73b1995dae25f8d1e74e2a5fab7f8f2464761ebe548196036c
|
4
|
+
data.tar.gz: aaad1253be8d09c050bca148a5b4c28d1c634a6dd15aeec37867f2c308e90685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b13dcd7c9a0d08568e5c4fd8fc10cbcb4b0f0991e29f20d4f14765da5863084f4259cf30fc7e90e56d23fb3bf112c388d9535dedb10d9f124942893ae9495d8d
|
7
|
+
data.tar.gz: 92b77b3770e19bfe38b03cdc6bb407526206d017a83086fc3b2282a3caae1cf116e197fcc0a9c60f2da3be5123b987f94a87c5876eaed8bc01ae0d6708edeb00
|
data/README.md
CHANGED
@@ -1,13 +1,10 @@
|
|
1
|
-
|
1
|
+
# Guard
|
2
2
|
|
3
|
-
|
3
|
+
**IMPORTANT: [Ruby 2.1 is officially outdated and unsupported!](https://www.ruby-lang.org/en/news/2016/03/30/ruby-2-1-9-released/) Please upgrade to Ruby >=2.3 or >=2.2.8 before installing Guard! To install for older versions, update Bundler at least 1.12: `gem update bundler` and Bundler should correctly resolve to earlier gems for your given Ruby version.**
|
4
4
|
|
5
5
|
:exclamation: Guard is currently accepting more maintainers. Please [read this](https://github.com/guard/guard/wiki/Maintainers) if you're interested in joining the team.
|
6
6
|
|
7
|
-
|
8
|
-
=====
|
9
|
-
|
10
|
-
[![Gem Version](https://img.shields.io/gem/v/guard.svg?style=flat)](https://rubygems.org/gems/guard) [![Build Status](https://travis-ci.org/guard/guard.svg)](https://travis-ci.org/guard/guard) [![Dependency Status](https://gemnasium.com/guard/guard.svg)](https://gemnasium.com/guard/guard) [![Code Climate](https://codeclimate.com/github/guard/guard/badges/gpa.svg)](https://codeclimate.com/github/guard/guard) [![Test Coverage](https://codeclimate.com/github/guard/guard/badges/coverage.svg)](https://codeclimate.com/github/guard/guard) [![Inline docs](http://inch-ci.org/github/guard/guard.svg)](http://inch-ci.org/github/guard/guard)
|
7
|
+
[![Gem Version](https://img.shields.io/gem/v/guard.svg?style=flat)](https://rubygems.org/gems/guard) [![Build Status](https://travis-ci.org/guard/guard.svg?branch=master)](https://travis-ci.org/guard/guard) [![Dependency Status](https://gemnasium.com/guard/guard.svg)](https://gemnasium.com/guard/guard) [![Code Climate](https://codeclimate.com/github/guard/guard/badges/gpa.svg)](https://codeclimate.com/github/guard/guard) [![Test Coverage](https://codeclimate.com/github/guard/guard/badges/coverage.svg)](https://codeclimate.com/github/guard/guard) [![Inline docs](http://inch-ci.org/github/guard/guard.svg)](http://inch-ci.org/github/guard/guard)
|
11
8
|
|
12
9
|
<img src="http://f.cl.ly/items/0A0M3W2x3I1P450z341U/guard-Icon.png" alt="Guard Icon" align="right" />
|
13
10
|
Guard automates various tasks by running custom rules whenever file or directories are modified.
|
@@ -30,22 +27,21 @@ the following places:
|
|
30
27
|
|
31
28
|
Before you file an issue, make sure you have read the _[known issues](#issues)_ and _[file an issue](#file-an-issue)_ sections that contains some important information.
|
32
29
|
|
33
|
-
|
30
|
+
## Features
|
34
31
|
|
35
32
|
* File system changes handled by our awesome [Listen](https://github.com/guard/listen) gem.
|
36
33
|
* Support for visual system notifications.
|
37
34
|
* Huge eco-system with [more than 220](https://rubygems.org/search?query=guard-) Guard plugins.
|
38
|
-
* Tested against Ruby 2.2.
|
35
|
+
* Tested against Ruby 2.2.8, 2.3.5, 2.4.2, JRuby & Rubinius.
|
39
36
|
|
40
|
-
|
37
|
+
## Screencast
|
41
38
|
|
42
39
|
Two nice screencasts are available to help you get started:
|
43
40
|
|
44
41
|
* [Guard](http://railscasts.com/episodes/264-guard) on RailsCast.
|
45
42
|
* [Guard is Your Best Friend](http://net.tutsplus.com/tutorials/tools-and-tips/guard-is-your-best-friend) on Net Tuts+.
|
46
43
|
|
47
|
-
Installation
|
48
|
-
------------
|
44
|
+
## Installation
|
49
45
|
|
50
46
|
The simplest way to install Guard is to use [Bundler](http://bundler.io).
|
51
47
|
|
@@ -81,7 +77,7 @@ to Ruby on Mac OS
|
|
81
77
|
X](https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X).
|
82
78
|
|
83
79
|
|
84
|
-
|
80
|
+
## Avoiding gem/dependency problems
|
85
81
|
|
86
82
|
**It's important that you always run Guard through Bundler to avoid errors.**
|
87
83
|
|
@@ -90,6 +86,10 @@ If you're getting sick of typing `bundle exec` all the time, try one of the foll
|
|
90
86
|
* (Recommended) Running `bundle binstub guard` will create `bin/guard` in your
|
91
87
|
project, which means running `bin/guard` (tab completion will save you a key
|
92
88
|
stroke or two) will have the exact same result as `bundle exec guard`.
|
89
|
+
|
90
|
+
* Or, you can `alias be="bundle exec"` in your `.bashrc` or similar and the execute only `be guard`.
|
91
|
+
**Protip**: It will work for all comands executed in `bundle exec` context!
|
92
|
+
|
93
93
|
|
94
94
|
* Or, for RubyGems >= 2.2.0 (at least, though the more recent the better),
|
95
95
|
simply set the `RUBYGEMS_GEMDEPS` environment variable to `-` (for autodetecting
|
@@ -101,7 +101,7 @@ If you're getting sick of typing `bundle exec` all the time, try one of the foll
|
|
101
101
|
|
102
102
|
* Or, for RubyGems < 2.2.0 check out the [Rubygems Bundler](https://github.com/rvm/rubygems-bundler).
|
103
103
|
|
104
|
-
|
104
|
+
## Add Guard plugins
|
105
105
|
|
106
106
|
Guard is now ready to use and you should add some Guard plugins for your specific use. Start exploring the many Guard
|
107
107
|
plugins available by browsing the [Guard organization](https://github.com/guard) on GitHub or by searching for `guard-`
|
@@ -118,8 +118,7 @@ end
|
|
118
118
|
See the init section of the Guard usage below to see how to install the supplied plugin template that you can install and
|
119
119
|
to suit your needs.
|
120
120
|
|
121
|
-
Usage
|
122
|
-
-----
|
121
|
+
## Usage
|
123
122
|
|
124
123
|
Guard is run from the command line. Please open your terminal and go to your project work directory.
|
125
124
|
|
@@ -138,35 +137,32 @@ directory for a `.Guardfile`.
|
|
138
137
|
|
139
138
|
Please look here to see all the [command line options for Guard](https://github.com/guard/guard/wiki/Command-line-options-for-Guard)
|
140
139
|
|
141
|
-
Interactions
|
142
|
-
|
140
|
+
## Interactions
|
141
|
+
|
143
142
|
Please read how to [interact with Guard](https://github.com/guard/guard/wiki/Interacting-with-Guard) on the console and which [signals](https://github.com/guard/guard/wiki/Interacting-with-Guard#guard-signals) Guard accepts
|
144
143
|
|
145
144
|
|
146
|
-
Guardfile DSL
|
147
|
-
|
145
|
+
## Guardfile DSL
|
146
|
+
|
148
147
|
For details on extending your `Guardfile` look at [Guardfile examples](https://github.com/guard/guard/wiki/Guardfile-examples) or look at a list of commands [Guardfile-DSL / Configuring-Guard](https://github.com/guard/guard/wiki/Guardfile-DSL---Configuring-Guard)
|
149
148
|
|
150
|
-
Issues
|
151
|
-
------
|
149
|
+
## Issues
|
152
150
|
|
153
151
|
Before reporting a problem, please read how to [File an issue](https://github.com/guard/guard/blob/master/CONTRIBUTING.md#file-an-issue).
|
154
152
|
|
155
|
-
Development / Contributing
|
156
|
-
--------------------------
|
153
|
+
## Development / Contributing
|
157
154
|
|
158
155
|
See the [Contributing Guide](https://github.com/guard/guard/blob/master/CONTRIBUTING.md#development).
|
159
|
-
|
160
|
-
#### Author
|
156
|
+
### Author
|
161
157
|
|
162
158
|
[Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg))
|
163
159
|
|
164
|
-
|
160
|
+
### Core Team
|
165
161
|
|
166
162
|
* R.I.P. :broken_heart: [Michael Kessler](https://github.com/netzpirat) ([flinkfinger.com](http://www.flinkfinger.com)).
|
167
163
|
* [Rémy Coutable](https://github.com/rymai).
|
168
164
|
* [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg), [thibaud.gg](http://thibaud.gg/)).
|
169
165
|
|
170
|
-
|
166
|
+
### Contributors
|
171
167
|
|
172
168
|
[https://github.com/guard/guard/graphs/contributors](https://github.com/guard/guard/graphs/contributors)
|
data/bin/guard
CHANGED
@@ -41,10 +41,6 @@ class GuardReloader
|
|
41
41
|
Gem.win_platform?
|
42
42
|
end
|
43
43
|
|
44
|
-
def default_system_ruby
|
45
|
-
RbConfig.ruby
|
46
|
-
end
|
47
|
-
|
48
44
|
def exit_with(code)
|
49
45
|
exit(code)
|
50
46
|
end
|
@@ -98,8 +94,8 @@ class GuardReloader
|
|
98
94
|
end
|
99
95
|
|
100
96
|
def auto_restart
|
101
|
-
args = [config.guard_core_path] + config.program_arguments
|
102
|
-
|
97
|
+
args = [Gem.ruby, config.guard_core_path] + config.program_arguments
|
98
|
+
|
103
99
|
loop do
|
104
100
|
exitcode = config.wait_ignoring_interrupts(config.spawn_with(*args))
|
105
101
|
config.exit_with(exitcode) if exitcode != 2
|
data/lib/guard/dsl.rb
CHANGED
data/lib/guard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -62,16 +62,22 @@ dependencies:
|
|
62
62
|
name: lumberjack
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.0.12
|
68
|
+
- - "<"
|
66
69
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
70
|
+
version: '2.0'
|
68
71
|
type: :runtime
|
69
72
|
prerelease: false
|
70
73
|
version_requirements: !ruby/object:Gem::Requirement
|
71
74
|
requirements:
|
72
|
-
- - "
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.12
|
78
|
+
- - "<"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
80
|
+
version: '2.0'
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: formatador
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
235
|
version: '0'
|
230
236
|
requirements: []
|
231
237
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
238
|
+
rubygems_version: 2.7.3
|
233
239
|
signing_key:
|
234
240
|
specification_version: 4
|
235
241
|
summary: Guard keeps an eye on your file modifications
|