omgdav 0.0.0 → 0.0.1
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.
- data/ChangeLog +19 -0
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/LATEST +6 -1
- data/NEWS +6 -1
- data/lib/omgdav/sync.rb +2 -1
- data/lib/omgdav/version.rb +1 -1
- data/test/test_sync.rb +1 -0
- metadata +1 -1
data/ChangeLog
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
ChangeLog from http://bogomips.org/omgdav.git
|
2
2
|
|
3
|
+
commit 27c5c31227924c84d7d1fef63bf6cfddc243d59b
|
4
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
5
|
+
Date: Thu Nov 15 03:55:43 2012 +0000
|
6
|
+
|
7
|
+
omgdav 0.0.1 - fix sync
|
8
|
+
|
9
|
+
Repeated invocations of omgdav-sync unnecessarily dropped
|
10
|
+
collection information. Fortunately, this did not result
|
11
|
+
in data loss in the MogileFS domain.
|
12
|
+
|
13
|
+
commit 364bbf909d1b16d00382d9d84ec510baf87ce9e6
|
14
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
15
|
+
Date: Thu Nov 15 03:54:40 2012 +0000
|
16
|
+
|
17
|
+
ensure sync is idempotent for collections
|
18
|
+
|
19
|
+
Collections must be preserved in our database between
|
20
|
+
different runs of omgdav-sync.
|
21
|
+
|
3
22
|
commit 678249295f8d03b85073f157a6e91318942c439e
|
4
23
|
Author: Eric Wong <normalperson@yhbt.net>
|
5
24
|
Date: Thu Nov 15 01:37:52 2012 +0000
|
data/GIT-VERSION-FILE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
GIT_VERSION = 0.0.
|
1
|
+
GIT_VERSION = 0.0.1
|
data/GIT-VERSION-GEN
CHANGED
data/LATEST
CHANGED
data/NEWS
CHANGED
data/lib/omgdav/sync.rb
CHANGED
@@ -58,7 +58,8 @@ class OMGDAV::Sync # :nodoc:
|
|
58
58
|
|
59
59
|
# snapshot all existing path ids into synctmp table
|
60
60
|
synctmp.delete
|
61
|
-
@db[
|
61
|
+
path_ids = @db[:paths].select(:id).where(collection: false)
|
62
|
+
@db["INSERT INTO synctmp(id) #{path_ids.sql}"].insert
|
62
63
|
|
63
64
|
pd = synctmp.where(id: :$i).prepare(:delete, :delete_by_id, id: :$i)
|
64
65
|
|
data/lib/omgdav/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# :enddoc:
|
2
|
-
OMGDAV::VERSION = '0.0.
|
2
|
+
OMGDAV::VERSION = '0.0.1'
|
data/test/test_sync.rb
CHANGED