guard 2.16.2 → 2.20.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: 787baab35992b3608d89a5d4a064d300a9a636ef9432510126347989fc1568b9
4
- data.tar.gz: 7fda9a3ecd35de97a472292a7021b53644e473333588985cd40435e9a048662f
3
+ metadata.gz: f3bd2e9b1989d7aba62bec74b42373a94df4ca45182c5b37b72215803c0ee449
4
+ data.tar.gz: 859862d8e890996a40b12ee2c4a65a6e3eacf9d750a57d125b8c6812e8b6ca40
5
5
  SHA512:
6
- metadata.gz: f94c5f80ed6f67bb9ff71e058406101ac52aca3661b00e1b82981abef890e4d15dcae871d41e883299614d1eece60b322c1265c9f007573375771bc0049353f3
7
- data.tar.gz: e3748fdf116614e2063091a86728d37ee85ee871a50cbd64628c8c5189756d91e4fd0018e1966d3ef72e6ffbcad99043e19e901459eb5bd3631b564d6c73d47c
6
+ metadata.gz: 34e5b5c5c56500baa621a0f3be4614b71149fd943d4842dc760fd6b18597b4f28598e4a88c43f0ffa7d427ebb72fe5e71e936d0e3b15017ca6c5f6219b847d89
7
+ data.tar.gz: cc3a85fedd1fe313faee185b9e2f1fc594173291077bacf7f1f565279225cce9789a0cbfda07ac1bfa23a6187faeac20cb9cd8e1f75517e70aa6c44981558782
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Guard
2
2
 
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.9 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.**
3
+ **IMPORTANT: Please upgrade to Ruby >= 2.4 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
+
5
+ - [Ruby 2.1 is officially outdated and unsupported!](https://www.ruby-lang.org/en/news/2016/03/30/ruby-2-1-9-released/)
6
+ - [Ruby 2.2 is officially outdated and unsupported!](https://www.ruby-lang.org/en/news/2018/06/20/support-of-ruby-2-2-has-ended/)
7
+ - [Ruby 2.3 is officially outdated and unsupported!](https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/)
4
8
 
5
9
  :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
10
 
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)
11
+ [![Gem Version](https://img.shields.io/gem/v/guard.svg?style=flat)](https://rubygems.org/gems/guard) [![Build Status](https://app.travis-ci.com/guard/guard.svg?branch=master)](https://app.travis-ci.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) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
8
12
 
9
13
  <img src="http://f.cl.ly/items/0A0M3W2x3I1P450z341U/guard-Icon.png" alt="Guard Icon" align="right" />
10
14
  Guard automates various tasks by running custom rules whenever file or directories are modified.
@@ -32,7 +36,7 @@ Before you file an issue, make sure you have read the _[known issues](#issues)_
32
36
  * File system changes handled by our awesome [Listen](https://github.com/guard/listen) gem.
33
37
  * Support for visual system notifications.
34
38
  * 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.
39
+ * Tested against the latest Ruby 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
40
 
37
41
  ## Screencast
38
42
 
@@ -6,7 +6,6 @@ require "guard/notifier"
6
6
  require "guard"
7
7
 
8
8
  require "set"
9
- require "ostruct"
10
9
 
11
10
  module Guard
12
11
  # The DslDescriber evaluates the Guardfile and creates an internal structure
@@ -40,11 +40,21 @@ module Guard
40
40
  class PryWrapper < Base
41
41
  # The default Ruby script to configure Guard Pry if the option `:guard_rc`
42
42
  # is not defined.
43
- GUARD_RC = "~/.guardrc"
43
+
44
+ GUARD_RC = if ENV["XDG_CONFIG_HOME"] && File.exist?(ENV["XDG_CONFIG_HOME"] + "/guard/guardrc")
45
+ ENV["XDG_CONFIG_HOME"] + "/guard/guardrc"
46
+ else
47
+ "~/.guardrc"
48
+ end
44
49
 
45
50
  # The default Guard Pry history file if the option `:history_file` is not
46
51
  # defined.
47
- HISTORY_FILE = "~/.guard_history"
52
+
53
+ HISTORY_FILE = if ENV["XDG_DATA_HOME"] && File.exist?(ENV["XDG_DATA_HOME"] + "/guard/history")
54
+ ENV["XDG_DATA_HOME"] + "/guard/history"
55
+ else
56
+ "~/.guard_history"
57
+ end
48
58
 
49
59
  # List of shortcuts for each interactor command
50
60
  SHORTCUTS = {
@@ -59,7 +59,7 @@ module Guard
59
59
  klass.new(options.delete(:watchers), options)
60
60
  else
61
61
  begin
62
- klass.new(options)
62
+ klass.new(**options)
63
63
  rescue ArgumentError => e
64
64
  fail "Failed to call #{klass}.new(options): #{e}"
65
65
  end
data/lib/guard/runner.rb CHANGED
@@ -15,7 +15,7 @@ module Guard
15
15
  # on
16
16
  #
17
17
  def run(task, scope_hash = {})
18
- Lumberjack.unit_of_work do
18
+ Lumberjack.context do
19
19
  items = Guard.state.scope.grouped_plugins(scope_hash || {})
20
20
  items.each do |_group, plugins|
21
21
  _run_group_plugins(plugins) do |plugin|
data/lib/guard/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- VERSION = "2.16.2"
2
+ VERSION = "2.20.1"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.2
4
+ version: 2.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2026-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: thor
14
+ name: formatador
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.1
19
+ version: 0.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.18.1
26
+ version: 0.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: listen
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -45,19 +45,19 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '4.0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: pry
48
+ name: logger
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.9.12
53
+ version: '1.6'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.9.12
60
+ version: '1.6'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: lumberjack
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -79,33 +79,47 @@ dependencies:
79
79
  - !ruby/object:Gem::Version
80
80
  version: '2.0'
81
81
  - !ruby/object:Gem::Dependency
82
- name: formatador
82
+ name: nenv
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ">="
85
+ - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 0.2.4
87
+ version: '0.1'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 0.2.4
94
+ version: '0.1'
95
95
  - !ruby/object:Gem::Dependency
96
- name: nenv
96
+ name: notiffany
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0.1'
101
+ version: '0.0'
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '0.1'
108
+ version: '0.0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: pry
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 0.13.0
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.13.0
109
123
  - !ruby/object:Gem::Dependency
110
124
  name: shellany
111
125
  requirement: !ruby/object:Gem::Requirement
@@ -121,19 +135,19 @@ dependencies:
121
135
  - !ruby/object:Gem::Version
122
136
  version: '0.0'
123
137
  - !ruby/object:Gem::Dependency
124
- name: notiffany
138
+ name: thor
125
139
  requirement: !ruby/object:Gem::Requirement
126
140
  requirements:
127
- - - "~>"
141
+ - - ">="
128
142
  - !ruby/object:Gem::Version
129
- version: '0.0'
143
+ version: 0.18.1
130
144
  type: :runtime
131
145
  prerelease: false
132
146
  version_requirements: !ruby/object:Gem::Requirement
133
147
  requirements:
134
- - - "~>"
148
+ - - ">="
135
149
  - !ruby/object:Gem::Version
136
- version: '0.0'
150
+ version: 0.18.1
137
151
  description: Guard is a command line tool to easily handle events on file system modifications.
138
152
  email:
139
153
  - thibaud@thibaud.gg
@@ -215,11 +229,12 @@ files:
215
229
  - lib/tasks/releaser.rb
216
230
  - man/guard.1
217
231
  - man/guard.1.html
218
- homepage: http://guardgem.org
232
+ homepage: https://guard.github.io/guard/
219
233
  licenses:
220
234
  - MIT
221
- metadata: {}
222
- post_install_message:
235
+ metadata:
236
+ changelog_uri: https://github.com/guard/guard/releases
237
+ post_install_message:
223
238
  rdoc_options: []
224
239
  require_paths:
225
240
  - lib
@@ -234,8 +249,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
249
  - !ruby/object:Gem::Version
235
250
  version: '0'
236
251
  requirements: []
237
- rubygems_version: 3.0.3
238
- signing_key:
252
+ rubygems_version: 3.4.19
253
+ signing_key:
239
254
  specification_version: 4
240
255
  summary: Guard keeps an eye on your file modifications
241
256
  test_files: []