guard-webpack 0.0.1 → 0.0.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
2
  SHA1:
3
- metadata.gz: e984321951acdcfcdeb46bf89d3d563ccde10912
4
- data.tar.gz: 705d86d89f5cbc14630b18397215f207d20b691f
3
+ metadata.gz: 4a4a9dc38f4b5e0f4ae340f2bf01c2f40600d096
4
+ data.tar.gz: e5d4065c06faa6ffbe6daf6aa9494ce7676eb6f7
5
5
  SHA512:
6
- metadata.gz: 539e551293774a9818b95acbfb81d9d2793d517a76188a1513ebad5081e35e6173f5b5d5450754a743b7f71f450703e3cdf776061900960edf5168310b346e94
7
- data.tar.gz: a6665998071dd72c0218c167b8c2ff1731a2093e9b7986030b41c03fc58bbbcec9dda9119e22abeebf3a22140561815b875ca4ccafeec49ab8939291c6745293
6
+ metadata.gz: 355a4338c74e28bcbd35acad4196379105790815f5d1b4d0ffb9e4a2c3c770a2254cb373451b3fbfbd7b0e16c2e9d50879a358cee9ce9b872fa448e6169bf325
7
+ data.tar.gz: bf35deede585e99961808223e8e43539fcb2f2cf56f0cea52c2968988064b91d6ca35e2838206db7a1843a1b4175db8eecfa970b5cdfca19aec31aba6d2018a2
@@ -53,10 +53,13 @@ module Guard
53
53
 
54
54
  def run_webpack
55
55
  begin
56
- system("#{webpack_bin} --watch #{option_flags}")
56
+ pid = fork{ exec("#{webpack_bin} --watch #{option_flags}") }
57
+ Process.wait(pid)
57
58
  rescue
58
59
  # TODO: Be more discerning.
59
60
  ::Guard::UI.error "Webpack unable to start (are you sure it's installed?)"
61
+ ensure
62
+ Process.kill('TERM',pid)
60
63
  end
61
64
  end
62
65
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module WebpackVersion
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-webpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gisi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard