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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d3499725d20725a5a0e1259e9e3f74694798f4a43e503f67f28bd218553bbe8
4
- data.tar.gz: a20150e135df2bef124397c8532d85b20a5ea6d7b78259763465175c512c637e
3
+ metadata.gz: 22fe26bc775c6c1dcd06cb993a5b36357d7bdac496f9bee7042ced368f93c090
4
+ data.tar.gz: a3be74a8d33d2e1514b8dfc67d3794891966cb240de71f78965de51178c47ad3
5
5
  SHA512:
6
- metadata.gz: adcd66a415123303070578f425ea3aab1ccbbd1d0fad175054232d08da2dfa8365eb12e558cc6b1bf83874d29bb467a75cd636b3a8e5330f8e1dc6d408728988
7
- data.tar.gz: 9138af75c456be233f5df7b92acedb73ca8c257ade2020a2a1eedb0b2ac1b8e7b42922a94f7169cff4084f5b1d8fdf56942086a6978a3263af8840a85f678ea5
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
- [![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)
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) [![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) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](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 220](https://rubygems.org/search?query=guard-) Guard plugins.
35
- * Tested against Ruby 2.2.9, 2.3.6, 2.4.3, 2.5.0, JRuby & Rubinius.
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 OS
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) ([flinkfinger.com](http://www.flinkfinger.com)).
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](http://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
 
@@ -47,8 +47,9 @@ module Guard
47
47
  exitcode = e.status
48
48
  end
49
49
 
50
- stop
51
50
  exitcode
51
+ ensure
52
+ stop
52
53
  end
53
54
 
54
55
  def stop
@@ -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] options the notification library options
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] scopes the scope for the groups and plugins
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
@@ -16,7 +16,7 @@ module Guard
16
16
  end
17
17
 
18
18
  def self.disconnect
19
- @notifier.disconnect
19
+ @notifier && @notifier.disconnect
20
20
  @notifier = nil
21
21
  end
22
22
 
@@ -11,7 +11,7 @@ module Guard
11
11
  #
12
12
  # @param [Symbol] task the task to run
13
13
  #
14
- # @param [Hash] scopes either the Guard plugin or the group to run the task
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
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- VERSION = "2.15.0"
2
+ VERSION = "2.15.1"
3
3
  end
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.0
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: 2018-11-14 00:00:00.000000000 Z
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
- rubyforge_project:
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