build-files 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rspec +1 -1
- data/.travis.yml +12 -13
- data/Gemfile +0 -3
- data/Rakefile +1 -3
- data/build-files.gemspec +4 -5
- data/lib/build/files.rb +1 -0
- data/lib/build/files/composite.rb +99 -0
- data/lib/build/files/difference.rb +65 -0
- data/lib/build/files/handle.rb +59 -0
- data/lib/build/files/list.rb +4 -74
- data/lib/build/files/monitor.rb +18 -206
- data/lib/build/files/monitor/fsevent.rb +55 -0
- data/lib/build/files/monitor/inotify.rb +53 -0
- data/lib/build/files/monitor/polling.rb +145 -0
- data/lib/build/files/path.rb +14 -3
- data/lib/build/files/version.rb +1 -1
- data/spec/build/files/monitor_spec.rb +53 -63
- data/spec/build/files/path_spec.rb +172 -168
- data/spec/build/files/state_spec.rb +1 -1
- data/spec/spec_helper.rb +11 -0
- metadata +29 -9
- data/.simplecov +0 -9
@@ -71,7 +71,7 @@ module Build::Files::StateSpec
|
|
71
71
|
@temporary_files.delete
|
72
72
|
end
|
73
73
|
|
74
|
-
let(:empty) {Build::Files::State.new(Build::Files::
|
74
|
+
let(:empty) {Build::Files::State.new(Build::Files::List::NONE)}
|
75
75
|
|
76
76
|
it "should be clean with empty inputs or outputs" do
|
77
77
|
expect(Build::Files::State.dirty?(empty, @new_files)).to be false
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: covered
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
|
-
- - "
|
31
|
+
- - ">="
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
33
|
+
version: '0'
|
20
34
|
type: :development
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
|
-
- - "
|
38
|
+
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,17 +74,22 @@ extensions: []
|
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
62
76
|
- ".rspec"
|
63
|
-
- ".simplecov"
|
64
77
|
- ".travis.yml"
|
65
78
|
- Gemfile
|
66
79
|
- README.md
|
67
80
|
- Rakefile
|
68
81
|
- build-files.gemspec
|
69
82
|
- lib/build/files.rb
|
83
|
+
- lib/build/files/composite.rb
|
84
|
+
- lib/build/files/difference.rb
|
70
85
|
- lib/build/files/directory.rb
|
71
86
|
- lib/build/files/glob.rb
|
87
|
+
- lib/build/files/handle.rb
|
72
88
|
- lib/build/files/list.rb
|
73
89
|
- lib/build/files/monitor.rb
|
90
|
+
- lib/build/files/monitor/fsevent.rb
|
91
|
+
- lib/build/files/monitor/inotify.rb
|
92
|
+
- lib/build/files/monitor/polling.rb
|
74
93
|
- lib/build/files/path.rb
|
75
94
|
- lib/build/files/paths.rb
|
76
95
|
- lib/build/files/state.rb
|
@@ -85,6 +104,7 @@ files:
|
|
85
104
|
- spec/build/files/path_spec.rb
|
86
105
|
- spec/build/files/state_spec.rb
|
87
106
|
- spec/build/files/system_spec.rb
|
107
|
+
- spec/spec_helper.rb
|
88
108
|
homepage: ''
|
89
109
|
licenses:
|
90
110
|
- MIT
|
@@ -104,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
124
|
- !ruby/object:Gem::Version
|
105
125
|
version: '0'
|
106
126
|
requirements: []
|
107
|
-
|
108
|
-
rubygems_version: 2.6.12
|
127
|
+
rubygems_version: 3.0.2
|
109
128
|
signing_key:
|
110
129
|
specification_version: 4
|
111
130
|
summary: Build::Files is a set of idiomatic classes for dealing with paths and monitoring
|
@@ -120,3 +139,4 @@ test_files:
|
|
120
139
|
- spec/build/files/path_spec.rb
|
121
140
|
- spec/build/files/state_spec.rb
|
122
141
|
- spec/build/files/system_spec.rb
|
142
|
+
- spec/spec_helper.rb
|