kvom 6.8.0.210.ed204b0 → 6.8.0.322.c003f11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kvom/adapter/document.rb +1 -2
  2. metadata +8 -8
@@ -16,8 +16,7 @@ class Document
16
16
  end
17
17
 
18
18
  def update_revision
19
- revision_count = @persisted_revision ? @persisted_revision[17..-1].to_i : 0
20
- attributes["@rev"] = "%s-%d" % [SecureRandom.hex(8), revision_count + 1]
19
+ attributes["@rev"] = SecureRandom.hex(8)
21
20
  yield
22
21
  @persisted_revision = attributes["@rev"]
23
22
  end
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kvom
3
3
  version: !ruby/object:Gem::Version
4
- hash: -268426508
4
+ hash: -392048824
5
5
  prerelease: 10
6
6
  segments:
7
7
  - 6
8
8
  - 8
9
9
  - 0
10
- - 210
11
- - ed
12
- - 204
13
- - b
14
- - 0
15
- version: 6.8.0.210.ed204b0
10
+ - 322
11
+ - c
12
+ - 3
13
+ - f
14
+ - 11
15
+ version: 6.8.0.322.c003f11
16
16
  platform: ruby
17
17
  authors:
18
18
  - Kristian Hanekamp, Infopark AG
@@ -20,7 +20,7 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2012-11-06 00:00:00 +01:00
23
+ date: 2012-11-14 00:00:00 +01:00
24
24
  default_executable:
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency