learn-open 1.2.24 → 1.2.26

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
  SHA256:
3
- metadata.gz: 67fccb747bac0cf62f58197c1cd75484c11400a0991d5394df3e170c0b9a0a5a
4
- data.tar.gz: 6faec1661139c9db811a5070e264686cdf096de0c91c67d8c62daf5c3d87f937
3
+ metadata.gz: a5051e016deae305afb850fb1e2a9e0bc8cec075b99a061bf474eab8b91be57a
4
+ data.tar.gz: 7442920700a29f28b714220e6ad46975f3149af89851930630b9fa36abca1549
5
5
  SHA512:
6
- metadata.gz: 5932f773b03e040cefb6d84d30053f727d09d4f6216e827bccf5b2c76800027c0df43b5e13beddab30e703b16c78764f2d82db2f8e38808f27ae0b7bf6759d93
7
- data.tar.gz: fc25dcb129f6f6bde0e3d909e38f95c12bef6ff8a0f3c6dda965b60afde1b3debff469a86f032640ecd8ec140327328ab49d71d9e656f7ead6a4cd724116240e
6
+ metadata.gz: 437805ba9ef05fffb211425b034c9d99097e17e28b4bfb8b85fb134555805488ded5002a05926628f358232cf1e211d720720ddca31a183ca7e5b946b7a8e619
7
+ data.tar.gz: 431ac6bb126c11041caa15e7a663d0283439c7ad6db4ca69e241ebf847e7b40454e178fb94c929fc441799c9e4e2f8483382037a02e128a676750a01606f6186
@@ -12,7 +12,7 @@ module LearnOpen
12
12
  end
13
13
 
14
14
  def self.watch_dir(dir, action)
15
- spawn("while inotifywait -qre create,delete,move,close_write #{dir}; do #{action}; done")
15
+ spawn("while inotifywait -qre create,delete,move,close_write --exclude \"#{excluded_dirs}\" #{dir}; do #{action}; done")
16
16
  end
17
17
 
18
18
  def self.spawn(command, block: false)
@@ -31,6 +31,12 @@ module LearnOpen
31
31
  def self.change_context_directory(dir)
32
32
  Dir.chdir(dir)
33
33
  end
34
+
35
+ private
36
+
37
+ def self.excluded_dirs
38
+ "(node_modules/|\.git/|\.swp?x?$|~$|4913$)"
39
+ end
34
40
  end
35
41
  end
36
42
  end
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.2.24'
2
+ VERSION = '1.2.26'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-open
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.24
4
+ version: 1.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler