omgdav 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
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.0
1
+ GIT_VERSION = 0.0.1
data/GIT-VERSION-GEN CHANGED
@@ -2,7 +2,7 @@
2
2
  CONSTANT = "OMGDAV::VERSION"
3
3
  RVF = "lib/omgdav/version.rb"
4
4
  GVF = "GIT-VERSION-FILE"
5
- DEF_VER = "v0.0.0"
5
+ DEF_VER = "v0.0.1"
6
6
  vn = DEF_VER
7
7
 
8
8
  # First see if there is a version file (included in release tarballs),
data/LATEST CHANGED
@@ -1 +1,6 @@
1
- Currently unreleased
1
+ === omgdav 0.0.1 - fix sync / 2012-11-15 03:57 UTC
2
+
3
+ Repeated invocations of omgdav-sync unnecessarily dropped
4
+ collection information. Fortunately, this did not result
5
+ in data loss in the MogileFS domain.
6
+
data/NEWS CHANGED
@@ -1 +1,6 @@
1
- No news yet.
1
+ === omgdav 0.0.1 - fix sync / 2012-11-15 03:57 UTC
2
+
3
+ Repeated invocations of omgdav-sync unnecessarily dropped
4
+ collection information. Fortunately, this did not result
5
+ in data loss in the MogileFS domain.
6
+
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["INSERT INTO synctmp(id) SELECT id FROM paths"].insert
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
 
@@ -1,2 +1,2 @@
1
1
  # :enddoc:
2
- OMGDAV::VERSION = '0.0.0'
2
+ OMGDAV::VERSION = '0.0.1'
data/test/test_sync.rb CHANGED
@@ -45,5 +45,6 @@ class TestSync < MiniTest::Unit::TestCase
45
45
  keys.each { |key| @mogc.delete(key) }
46
46
  imp.sync
47
47
  assert_equal 0, @db[:paths].where(collection: false).count
48
+ refute_equal 0, @db[:paths].where(collection: true).count
48
49
  end
49
50
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: !binary |-
3
3
  b21nZGF2
4
4
  version: !ruby/object:Gem::Version
5
- version: 0.0.0
5
+ version: 0.0.1
6
6
  prerelease:
7
7
  platform: ruby
8
8
  authors: