posix-fileutils 0.1.16 → 0.1.17
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/lib/posix-fileutils/fileutils.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDMyZjc5NWI0NjFjMjdmMTNjM2FhYjkzZGEwYjI5ZTUxNzFkOTY1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjQyYWU1ZDY1MTZhNDI5ZTA0YWI3ZjkyYmJlOWU2ZWQ0ZWJmNGI2MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Njc1MTkzZWFiOGQ3MjdkOTUyM2NmOWE4YjAwNWNlOTg3MzY3NDE0Y2MxMDQz
|
10
|
+
NzA0YzBkODViMzRhMDg1ZGQ4NzlmMWYwYjA2NzlmODVmMTUzMWI1OTVlNTZl
|
11
|
+
ZmUyZWI0NzI2MGE4NTEwYjEzMmE5ZTY0MjhlMDA2YmJiNjQxYTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWJlZTc3YTU2ZWQ0YWI5MzMzZTdmMjM2NjQzYmNmZDcxMjA1MjNmZjlhZGVl
|
14
|
+
Yzg4YjEzNDU3YmZlZmQxMTk0ZDlhYzllOWY2MDFlZjdhMzAzNDc2M2QzNWM4
|
15
|
+
NmY1Nzk5YmZkMDdmMDg4MDUzYTBhYTAyNGFhOWQyZDI3YTg1NTc=
|
@@ -289,29 +289,29 @@ module Fs
|
|
289
289
|
rellist1 = list1.map do |e| Pathname.new(e).relative_path_from file1 end
|
290
290
|
rellist2 = list2.map do |e| Pathname.new(e).relative_path_from file2 end
|
291
291
|
|
292
|
-
return
|
292
|
+
return true unless rellist1.to_set == rellist2.to_set
|
293
293
|
|
294
294
|
list1.each do |file|
|
295
295
|
file = Pathname.new file
|
296
296
|
ofile = file2 + file.relative_path_from(file1)
|
297
297
|
|
298
298
|
if file.directory?
|
299
|
-
return
|
299
|
+
return true if Dir["#{file.to_s}/{*,.*}"] == Dir["#{ofile.to_s}/{*,.*}"]
|
300
300
|
|
301
301
|
next
|
302
302
|
end
|
303
303
|
|
304
|
-
return
|
305
|
-
return
|
306
|
-
return
|
304
|
+
return true unless ofile.exist?
|
305
|
+
return true if ofile.directory?
|
306
|
+
return true unless Digest::SHA256.file(file) == Digest::SHA256.file(ofile)
|
307
307
|
end
|
308
308
|
|
309
|
-
return
|
309
|
+
return false
|
310
310
|
end
|
311
311
|
|
312
|
-
return
|
312
|
+
return true unless Digest::SHA256.file(file1) == Digest::SHA256.file(file2)
|
313
313
|
|
314
|
-
|
314
|
+
false
|
315
315
|
end
|
316
316
|
|
317
317
|
end # module Fs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posix-fileutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A. Levenkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: FileUtils library
|
14
14
|
email: artem@levenkov.org
|