guard 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -8
- data/lib/guard/commander.rb +2 -1
- data/lib/guard/dsl.rb +2 -2
- data/lib/guard/guardfile/evaluator.rb +3 -3
- data/lib/guard/guardfile/generator.rb +4 -4
- data/lib/guard/notifier.rb +1 -1
- data/lib/guard/runner.rb +2 -2
- data/lib/guard/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22fe26bc775c6c1dcd06cb993a5b36357d7bdac496f9bee7042ced368f93c090
|
4
|
+
data.tar.gz: a3be74a8d33d2e1514b8dfc67d3794891966cb240de71f78965de51178c47ad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed1f15710d36a2fddc83045941236336781b951222d351d2bee3927410ac46fc828895f56f6a5bf6caa0e6dade4f28c05ca0406aefb87edae30aad5058fff220
|
7
|
+
data.tar.gz: 10dd2d5ced4531688aca194eaa0aed14ddd58c5cd6018e6602bf63f96f145bb19f7e221b96ffdb59a99fda8bcb7eb207fdcad08f100256ff184b8f2150b7f0f3
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
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
|
-
[](https://rubygems.org/gems/guard) [](https://travis-ci.org/guard/guard) [](https://rubygems.org/gems/guard) [](https://travis-ci.org/guard/guard) [](https://codeclimate.com/github/guard/guard) [](https://codeclimate.com/github/guard/guard) [](http://inch-ci.org/github/guard/guard) [](https://houndci.com)
|
8
8
|
|
9
9
|
<img src="http://f.cl.ly/items/0A0M3W2x3I1P450z341U/guard-Icon.png" alt="Guard Icon" align="right" />
|
10
10
|
Guard automates various tasks by running custom rules whenever file or directories are modified.
|
@@ -31,8 +31,8 @@ Before you file an issue, make sure you have read the _[known issues](#issues)_
|
|
31
31
|
|
32
32
|
* File system changes handled by our awesome [Listen](https://github.com/guard/listen) gem.
|
33
33
|
* Support for visual system notifications.
|
34
|
-
* Huge eco-system with [more than
|
35
|
-
* Tested against Ruby 2.
|
34
|
+
* Huge eco-system with [more than 300](https://rubygems.org/search?query=guard-) Guard plugins.
|
35
|
+
* Tested against the latest Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, JRuby & Rubinius. See [`.travis-ci.yml`](https://github.com/guard/guard/blob/master/.travis.yml) for the exact versions.
|
36
36
|
|
37
37
|
## Screencast
|
38
38
|
|
@@ -73,9 +73,7 @@ $ bundle exec guard
|
|
73
73
|
|
74
74
|
If you are on Mac OS X and have problems with either Guard not reacting to file
|
75
75
|
changes or Pry behaving strange, then you should [add proper Readline support
|
76
|
-
to Ruby on Mac
|
77
|
-
X](https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X).
|
78
|
-
|
76
|
+
to Ruby on macOS](https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X).
|
79
77
|
|
80
78
|
## Avoiding gem/dependency problems
|
81
79
|
|
@@ -159,9 +157,9 @@ See the [Contributing Guide](https://github.com/guard/guard/blob/master/CONTRIBU
|
|
159
157
|
|
160
158
|
### Core Team
|
161
159
|
|
162
|
-
* R.I.P. :broken_heart: [Michael Kessler](https://github.com/netzpirat)
|
160
|
+
* R.I.P. :broken_heart: [Michael Kessler](https://github.com/netzpirat).
|
163
161
|
* [Rémy Coutable](https://github.com/rymai).
|
164
|
-
* [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg), [thibaud.gg](
|
162
|
+
* [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](https://twitter.com/thibaudgg), [thibaud.gg](https://thibaud.gg/)).
|
165
163
|
|
166
164
|
### Contributors
|
167
165
|
|
data/lib/guard/commander.rb
CHANGED
data/lib/guard/dsl.rb
CHANGED
@@ -68,7 +68,7 @@ module Guard
|
|
68
68
|
# notification :ruby_gntp, host: '192.168.1.5'
|
69
69
|
#
|
70
70
|
# @param [Symbol, String] notifier the name of the notifier to use
|
71
|
-
# @param [Hash]
|
71
|
+
# @param [Hash] opts the notification library options
|
72
72
|
#
|
73
73
|
# @see Guard::Notifier for available notifier and its options.
|
74
74
|
#
|
@@ -366,7 +366,7 @@ module Guard
|
|
366
366
|
# @example Scope Guard to multiple plugins
|
367
367
|
# scope plugins: [:jasmine, :rspec]
|
368
368
|
#
|
369
|
-
# @param [Hash]
|
369
|
+
# @param [Hash] scope the scope for the groups and plugins
|
370
370
|
#
|
371
371
|
def scope(scope = {})
|
372
372
|
# TODO: use a Guardfile::Results class
|
@@ -60,7 +60,7 @@ module Guard
|
|
60
60
|
@contents = opts[:contents]
|
61
61
|
elsif opts[:guardfile]
|
62
62
|
@type = :custom
|
63
|
-
@path = Pathname(opts[:guardfile]) # may be updated by _read
|
63
|
+
@path = Pathname.new(opts[:guardfile]) # may be updated by _read
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -190,7 +190,7 @@ module Guard
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def _read(path)
|
193
|
-
full_path = Pathname(path).expand_path
|
193
|
+
full_path = Pathname.new(path.to_s).expand_path
|
194
194
|
[full_path, full_path.read]
|
195
195
|
rescue Errno::ENOENT
|
196
196
|
fail
|
@@ -202,7 +202,7 @@ module Guard
|
|
202
202
|
end
|
203
203
|
|
204
204
|
def _guardfile_contents
|
205
|
-
@user_config ||= Pathname("~/.guard.rb").expand_path.read
|
205
|
+
@user_config ||= Pathname.new("~/.guard.rb").expand_path.read
|
206
206
|
[@contents, @user_config].compact.join("\n")
|
207
207
|
rescue Errno::ENOENT
|
208
208
|
@contents || ""
|
@@ -32,11 +32,11 @@ module Guard
|
|
32
32
|
|
33
33
|
# The location of user defined templates
|
34
34
|
begin
|
35
|
-
HOME_TEMPLATES = Pathname("~/.guard/templates").expand_path
|
35
|
+
HOME_TEMPLATES = Pathname.new("~/.guard/templates").expand_path
|
36
36
|
rescue ArgumentError
|
37
37
|
# home isn't defined. Set to the root of the drive. Trust that there
|
38
38
|
# won't be user defined templates there
|
39
|
-
HOME_TEMPLATES = Pathname("/").expand_path
|
39
|
+
HOME_TEMPLATES = Pathname.new("/").expand_path
|
40
40
|
end
|
41
41
|
|
42
42
|
class Error < RuntimeError
|
@@ -63,7 +63,7 @@ module Guard
|
|
63
63
|
# @see Guard::CLI#init
|
64
64
|
#
|
65
65
|
def create_guardfile
|
66
|
-
path = Pathname("Guardfile").expand_path
|
66
|
+
path = Pathname.new("Guardfile").expand_path
|
67
67
|
if path.exist?
|
68
68
|
_ui(:error, "Guardfile already exists at #{path}")
|
69
69
|
abort
|
@@ -81,7 +81,7 @@ module Guard
|
|
81
81
|
# initialize
|
82
82
|
#
|
83
83
|
def initialize_template(plugin_name)
|
84
|
-
guardfile = Pathname("Guardfile")
|
84
|
+
guardfile = Pathname.new("Guardfile")
|
85
85
|
|
86
86
|
plugin_util = PluginUtil.new(plugin_name)
|
87
87
|
# TODO: change to "valid?" method
|
data/lib/guard/notifier.rb
CHANGED
data/lib/guard/runner.rb
CHANGED
@@ -11,7 +11,7 @@ module Guard
|
|
11
11
|
#
|
12
12
|
# @param [Symbol] task the task to run
|
13
13
|
#
|
14
|
-
# @param [Hash]
|
14
|
+
# @param [Hash] scope_hash either the Guard plugin or the group to run the task
|
15
15
|
# on
|
16
16
|
#
|
17
17
|
def run(task, scope_hash = {})
|
@@ -70,7 +70,7 @@ module Guard
|
|
70
70
|
# When the Group has `:halt_on_fail` disabled, we've to catch
|
71
71
|
# `:task_has_failed` here in order to avoid an uncaught throw error.
|
72
72
|
#
|
73
|
-
# @param [Guard::Plugin] guard the Guard to execute
|
73
|
+
# @param [Guard::Plugin] plugin guard the Guard to execute
|
74
74
|
# @param [Symbol] task the task to run
|
75
75
|
# @param [Array] args the arguments for the task
|
76
76
|
# @raise [:task_has_failed] when task has failed
|
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.15.
|
4
|
+
version: 2.15.1
|
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: 2019-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -234,8 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
|
238
|
-
rubygems_version: 2.7.6
|
237
|
+
rubygems_version: 3.0.3
|
239
238
|
signing_key:
|
240
239
|
specification_version: 4
|
241
240
|
summary: Guard keeps an eye on your file modifications
|