guard-shell 0.7.0 → 0.7.1

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
2
  SHA1:
3
- metadata.gz: 18d01f124549d3cbe03b0d93af9cfbfd087d688b
4
- data.tar.gz: 54a4e4fe11d7194f588a16d22a3a211fb29b8656
3
+ metadata.gz: e314740e2fee49dc3988b6bbd1fe9a84dce4a4c7
4
+ data.tar.gz: 84cb546851808ac1958f508f4af305a634e3d3dd
5
5
  SHA512:
6
- metadata.gz: f19aa62b963fbdd5b0ec89f64b2234c448a79a9670b34f690ad772bff49cef5c9a6cd2e5b96eb344e14e122443f8f6c2be2fc1b1d022afb9d7663e8686942b4f
7
- data.tar.gz: 00e1c31a0a5f5f3b74afd86b45edc92ca971b4b41fd1ecfee6d86839dab90c108da8e686f43e7077cc51313dae9e1dbc12c4c686d001ce992044a3b247d391f1
6
+ metadata.gz: 674b34acc461018bc765b61cab3ff8247552d7042b51c7522c0940fbc860cf7a81d2a37c7703d8f8180a51ecf7a9933ae655d93213a4e1f0e7767141554eed3a
7
+ data.tar.gz: 5922b8dbfb358de7cad3f9f29bbfd1c67bc55997678c9167d7c7cf9ba2bccd777eec86b3cdfd620e617d2be28c5b74bfd5d35aca32907a3fb37317c7425107a9
@@ -1,5 +1,4 @@
1
- require 'guard'
2
- require 'guard/plugin'
1
+ require 'guard/compat/plugin'
3
2
  require 'guard/shell/version'
4
3
 
5
4
  module Guard
@@ -16,12 +15,12 @@ module Guard
16
15
 
17
16
  # Call #run_on_change for all files which match this guard.
18
17
  def run_all
19
- run_on_modifications(Watcher.match_files(self, Dir.glob('{,**/}*{,.*}').uniq))
18
+ run_on_modifications(Compat.matching_files(self, Dir.glob('{,**/}*{,.*}')))
20
19
  end
21
20
 
22
21
  # Print the result of the command(s), if there are results to be printed.
23
22
  def run_on_modifications(res)
24
- puts res if res
23
+ $stdout.puts res if res
25
24
  end
26
25
 
27
26
  end
@@ -29,7 +28,7 @@ module Guard
29
28
  class Dsl
30
29
  # Easy method to display a notification
31
30
  def n(msg, title='', image=nil)
32
- Notifier.notify(msg, :title => title, :image => image)
31
+ Compat::UI.notify(msg, :title => title, :image => image)
33
32
  end
34
33
 
35
34
  # Eager prints the result for stdout and stderr as it would be written when
@@ -41,14 +40,14 @@ module Guard
41
40
  begin
42
41
  PTY.spawn command do |r, w, pid|
43
42
  begin
44
- puts
43
+ $stdout.puts
45
44
  r.each {|line| print line }
46
45
  rescue Errno::EIO
47
46
  # the process has finished
48
47
  end
49
48
  end
50
49
  rescue PTY::ChildExited
51
- puts "The child process exited!"
50
+ $stdout.puts "The child process exited!"
52
51
  end
53
52
  end
54
53
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module ShellVersion
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hawxwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard-compat
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  description: |2
28
42
  Guard::Shell automatically runs shell commands when watched files are
29
43
  modified.