guard-shell 0.7.1 → 0.7.2

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
- SHA1:
3
- metadata.gz: e314740e2fee49dc3988b6bbd1fe9a84dce4a4c7
4
- data.tar.gz: 84cb546851808ac1958f508f4af305a634e3d3dd
2
+ SHA256:
3
+ metadata.gz: e735b1798973a3582dd5c5febffb35cee8e34e5db7d7bf8948a22c52e2f5178d
4
+ data.tar.gz: a1dbcdf4cba42fa84431ecc0288802defc9be681e554a30595bb8b5bd1e25943
5
5
  SHA512:
6
- metadata.gz: 674b34acc461018bc765b61cab3ff8247552d7042b51c7522c0940fbc860cf7a81d2a37c7703d8f8180a51ecf7a9933ae655d93213a4e1f0e7767141554eed3a
7
- data.tar.gz: 5922b8dbfb358de7cad3f9f29bbfd1c67bc55997678c9167d7c7cf9ba2bccd777eec86b3cdfd620e617d2be28c5b74bfd5d35aca32907a3fb37317c7425107a9
6
+ metadata.gz: 05f604999127bb123d3de83d89c1df58cb1fe772ce76511a8d7146303f2069790328ad6c97d1427135c7f5ffa2edb5f882525f622822f936e45556a695db709d
7
+ data.tar.gz: 746079eb0532d05199ddaf60a3a7d590b58add8e76e85ce09079df670367937de06fb31a4807a1c6e2a427345b7e7eb7a7b9772dbb17e2f6a87c3a159104e7c6
data/lib/guard/shell.rb CHANGED
@@ -15,7 +15,11 @@ module Guard
15
15
 
16
16
  # Call #run_on_change for all files which match this guard.
17
17
  def run_all
18
- run_on_modifications(Compat.matching_files(self, Dir.glob('{,**/}*{,.*}')))
18
+ available_watchers.each do |watcher|
19
+ output = watcher.call_action([])
20
+
21
+ run_on_modifications(output)
22
+ end
19
23
  end
20
24
 
21
25
  # Print the result of the command(s), if there are results to be printed.
@@ -23,6 +27,10 @@ module Guard
23
27
  $stdout.puts res if res
24
28
  end
25
29
 
30
+ def available_watchers
31
+ watchers
32
+ end
33
+
26
34
  end
27
35
 
28
36
  class Dsl
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module ShellVersion
3
- VERSION = '0.7.1'
3
+ VERSION = '0.7.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hawxwell
8
- autorequire:
8
+ - Codruț Constantin Gușoi
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
12
+ date: 2021-04-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: guard
@@ -41,21 +42,21 @@ dependencies:
41
42
  description: |2
42
43
  Guard::Shell automatically runs shell commands when watched files are
43
44
  modified.
44
- email: m@hawx.me
45
+ email: mail+rubygems@codrut.pro
45
46
  executables: []
46
47
  extensions: []
47
48
  extra_rdoc_files: []
48
49
  files:
49
- - Readme.md
50
50
  - LICENSE
51
+ - Readme.md
52
+ - lib/guard/shell.rb
51
53
  - lib/guard/shell/templates/Guardfile
52
54
  - lib/guard/shell/version.rb
53
- - lib/guard/shell.rb
54
- homepage: http://github.com/hawx/guard-shell
55
+ homepage: http://github.com/sdwolfz/guard-shell
55
56
  licenses:
56
57
  - MIT
57
58
  metadata: {}
58
- post_install_message:
59
+ post_install_message:
59
60
  rdoc_options: []
60
61
  require_paths:
61
62
  - lib
@@ -70,10 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  - !ruby/object:Gem::Version
71
72
  version: '0'
72
73
  requirements: []
73
- rubyforge_project:
74
- rubygems_version: 2.0.14
75
- signing_key:
74
+ rubygems_version: 3.2.15
75
+ signing_key:
76
76
  specification_version: 4
77
77
  summary: Guard gem for running shell commands
78
78
  test_files: []
79
- has_rdoc: