file-digests 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/file-digests +5 -0
- data/bin/file-digests-test +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45b22cde5df528d2e0226edf3c366efe4542f85dd44ebb4a37a4ad152f9c0df
|
4
|
+
data.tar.gz: 72c0d4967640581402f37922345bb17589e695edc32f0ea29ba12575ef3e8c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ab0b4eff29366f017a77941b664520cb74253602a1a32ca1e3606f525ce9b285ff4dd58b9dd6810f00e1b53c4e18bab66736bd8a9bd0a8866b9285cca11b06
|
7
|
+
data.tar.gz: 43e3b80ba1816c1dd716406d015e57f5b8deecf4830917619a07a03a52b981728278dcf7a8295957704105d80b15a8fe38439067c47fd815eb6637d806086a05
|
data/bin/file-digests
CHANGED
@@ -43,6 +43,11 @@ class DigestDatabase
|
|
43
43
|
@db.execute "CREATE UNIQUE INDEX digests_filename ON digests(filename)"
|
44
44
|
end
|
45
45
|
|
46
|
+
@db.execute 'PRAGMA journal_mode = "WAL"'
|
47
|
+
@db.execute 'PRAGMA synchronous = "NORMAL"'
|
48
|
+
@db.execute 'PRAGMA locking_mode = "EXCLUSIVE"'
|
49
|
+
@db.execute 'PRAGMA cache_size = "5000"'
|
50
|
+
|
46
51
|
@db.results_as_hash = true
|
47
52
|
@missing_files = Hash[@db.prepare("SELECT filename, digest FROM digests").execute!]
|
48
53
|
@new_files = {}
|
data/bin/file-digests-test
CHANGED
@@ -43,6 +43,11 @@ class DigestDatabase
|
|
43
43
|
@db.execute "CREATE UNIQUE INDEX digests_filename ON digests(filename)"
|
44
44
|
end
|
45
45
|
|
46
|
+
@db.execute 'PRAGMA journal_mode = "WAL"'
|
47
|
+
@db.execute 'PRAGMA synchronous = "NORMAL"'
|
48
|
+
@db.execute 'PRAGMA locking_mode = "EXCLUSIVE"'
|
49
|
+
@db.execute 'PRAGMA cache_size = "5000"'
|
50
|
+
|
46
51
|
@db.results_as_hash = true
|
47
52
|
@missing_files = Hash[@db.prepare("SELECT filename, digest FROM digests").execute!]
|
48
53
|
@new_files = {}
|