rego 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/bin/rego +30 -13
- data/lib/rego.rb +1 -1
- data/rego.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTc1YmRhYzE0NTFjN2Y2Y2JkMzA0MTNmYTcwODI0MGE5NmM3MWU3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzNhYjQ0YTkxMWYzNjk2NjkwMTAwNjVhYzQ4ZDcwZmJhMmIxODVjOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWE4YThlYTU3ZDNkMDYxMzg1NjMyM2U5OGUxNjY2MGZhZjgwMzUzM2UxMmFi
|
10
|
+
OWU3ZTUwZjBmZmZjYzgxNjI3OTJhNDE0MTIyN2E0ZWNiYTJmY2M2OTIwNmQ1
|
11
|
+
ZGRkODljZWU2ZWNkMzI4NzliZjBjYThjNzkyYTdkYWVhNWRiYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDU4OTAwNGRhOWM5NTI3OWU0ZWU4MzdjZDFjZDE4MWE4ZDcwMDRhM2ZiYzgw
|
14
|
+
ZDhiNzIyYzc4MTBkYzUzN2VlZTAzNzE1NWFhOTBmZDk1NThlMjFlZjQ2Zjc5
|
15
|
+
OTAyMjAwODgxYmM2NjEwM2Q0ZDc3MjFkOTNmNmRkZjU0Yzc2MjU=
|
data/bin/rego
CHANGED
@@ -81,7 +81,20 @@ Main {
|
|
81
81
|
@command = false
|
82
82
|
end
|
83
83
|
|
84
|
-
@paths.map!
|
84
|
+
@paths.map! do |path|
|
85
|
+
if test(?d, path)
|
86
|
+
globbed =
|
87
|
+
Dir.glob(
|
88
|
+
File.join(path, '**/**'),
|
89
|
+
File::FNM_DOTMATCH
|
90
|
+
).delete_if{|path| %w[ .. ].include?(File.basename(path))}
|
91
|
+
|
92
|
+
[path, globbed]
|
93
|
+
else
|
94
|
+
path
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
85
98
|
@paths.flatten!
|
86
99
|
@paths.compact!
|
87
100
|
@paths.uniq!
|
@@ -122,7 +135,7 @@ Main {
|
|
122
135
|
|
123
136
|
stats = {}
|
124
137
|
|
125
|
-
@files.each do |file|
|
138
|
+
(@directories + @files).each do |file|
|
126
139
|
begin
|
127
140
|
stats[file] = File.stat(file)
|
128
141
|
rescue
|
@@ -198,20 +211,24 @@ Main {
|
|
198
211
|
next
|
199
212
|
end
|
200
213
|
|
201
|
-
|
202
|
-
|
203
|
-
|
214
|
+
ignore = false # TODO
|
215
|
+
|
216
|
+
unless ignore
|
217
|
+
@initial_directories.each do |directory|
|
218
|
+
if path =~ /^#{ Regexp.escape(directory) }\b/
|
219
|
+
watching[path] = true
|
220
|
+
end
|
204
221
|
end
|
205
|
-
end
|
206
222
|
|
207
|
-
|
208
|
-
|
209
|
-
|
223
|
+
if watching[path]
|
224
|
+
before = stats[path]
|
225
|
+
after = File.stat(path)
|
210
226
|
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
227
|
+
if before.nil? or after.mtime > before.mtime
|
228
|
+
stats[path] = after
|
229
|
+
@started_at ||= Time.now.to_f
|
230
|
+
q.push(path)
|
231
|
+
end
|
215
232
|
end
|
216
233
|
end
|
217
234
|
end
|
data/lib/rego.rb
CHANGED
data/rego.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rego
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: main
|