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 +4 -4
- data/lib/learn_open/adapters/system_adapter.rb +7 -1
- data/lib/learn_open/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5051e016deae305afb850fb1e2a9e0bc8cec075b99a061bf474eab8b91be57a
|
4
|
+
data.tar.gz: 7442920700a29f28b714220e6ad46975f3149af89851930630b9fa36abca1549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/learn_open/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|