alephant-sequencer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/alephant-sequencer.gemspec +1 -0
- data/lib/alephant/sequencer/sequencer.rb +4 -0
- data/lib/alephant/sequencer/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 947e5d4a40ae350a53bd3fad90116c69bb0b4ce7
|
4
|
+
data.tar.gz: ca73e140db5a1411605ddb4b79a8856947ae2d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b58d7f6b72dfa3951a5385ba770d28c9ef8800f7500b338c931dad26bb4faa1dfc4d6313145e39c03af5fe35907c8a024e4e89650aeaddf9d92cde0d5319be0
|
7
|
+
data.tar.gz: 8a6744b263a2265b4f44b53356ae45e5f34e5ed3aa77df9b69b60418a3c0cccad21ba0cdb0420b5546f3eef6c95d52b8d8c68008abcaf4fc2199773944dd9a09
|
data/alephant-sequencer.gemspec
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'jsonpath'
|
2
|
+
require 'alephant/logger'
|
2
3
|
|
3
4
|
module Alephant
|
4
5
|
module Sequencer
|
5
6
|
class Sequencer
|
7
|
+
include ::Alephant::Logger
|
6
8
|
attr_reader :ident, :jsonpath
|
7
9
|
|
8
10
|
def initialize(sequence_table, id, sequence_path = nil)
|
@@ -19,11 +21,13 @@ module Alephant
|
|
19
21
|
end
|
20
22
|
|
21
23
|
def delete!
|
24
|
+
logger.info("Sequencer.delete!: #{ident}")
|
22
25
|
@sequence_table.delete_item!(ident)
|
23
26
|
end
|
24
27
|
|
25
28
|
def set_last_seen(data)
|
26
29
|
last_seen_id = sequence_id_from(data)
|
30
|
+
logger.info("Sequencer.set_last_seen: #{last_seen_id}")
|
27
31
|
|
28
32
|
@sequence_table.set_sequence_for(ident, last_seen_id)
|
29
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-sequencer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Kenny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
version: '1.0'
|
151
151
|
prerelease: false
|
152
152
|
type: :runtime
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: alephant-logger
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
prerelease: false
|
166
|
+
type: :runtime
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: jsonpath
|
155
169
|
version_requirements: !ruby/object:Gem::Requirement
|