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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6793ac68cd5b5e6e8c9123b2e1f503c752130130
4
- data.tar.gz: 3a1c93dd61c069aaedb1c8c164675f940b50a5d8
3
+ metadata.gz: 947e5d4a40ae350a53bd3fad90116c69bb0b4ce7
4
+ data.tar.gz: ca73e140db5a1411605ddb4b79a8856947ae2d04
5
5
  SHA512:
6
- metadata.gz: 99f3ce587beb2c3f36c438b2de08f2a9aa25664ac31be30bdcffa642e090923a7fbf21f821f78d82881efd456474e13a8ab08cfac7f8fe0c1acd49783254f9fc
7
- data.tar.gz: f0fe0304c3bb52f2d296f5f9abb8c0bcc4d7188a65bf3e14b114d976ea50034bc5b0d0389eedf12292c79ef983e45201b20755e99646dcfcb703d3c53e049bdc
6
+ metadata.gz: 9b58d7f6b72dfa3951a5385ba770d28c9ef8800f7500b338c931dad26bb4faa1dfc4d6313145e39c03af5fe35907c8a024e4e89650aeaddf9d92cde0d5319be0
7
+ data.tar.gz: 8a6744b263a2265b4f44b53356ae45e5f34e5ed3aa77df9b69b60418a3c0cccad21ba0cdb0420b5546f3eef6c95d52b8d8c68008abcaf4fc2199773944dd9a09
@@ -28,5 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "pry-nav"
29
29
 
30
30
  spec.add_runtime_dependency 'aws-sdk', '~> 1.0'
31
+ spec.add_runtime_dependency 'alephant-logger'
31
32
  spec.add_runtime_dependency 'jsonpath'
32
33
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Sequencer
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  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.2
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-12 00:00:00.000000000 Z
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