alephant-sequencer 3.0.1 → 3.0.2
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 +3 -0
- data/lib/alephant/sequencer/sequence_table.rb +4 -2
- 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: 20c090d611f779fd82ffdb9ed5b68ce1c48f8a4e
|
4
|
+
data.tar.gz: 727a1ec449b286afe560dc5be5f672346782af6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78c828f82e3a334f3314372afa8aaa1292ee570cde145e22043896eee642d6e289a3b97ef5f40dd4ccc8ae70271fa4858d41b5c4a208b3e3d0f9153caa61a550
|
7
|
+
data.tar.gz: 392181832924264e677efed9655eb6e1057232cd4594cf66af6fe019784917801d4b5bab356e5662b2c66d480629820b418acab2cb1671319c2694a94385745a
|
data/alephant-sequencer.gemspec
CHANGED
@@ -24,6 +24,9 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rspec-nc"
|
25
25
|
spec.add_development_dependency "guard"
|
26
26
|
spec.add_development_dependency "guard-rspec"
|
27
|
+
# listen added as newer version breaks bundle update
|
28
|
+
# due to requiring ruby_dep or ruby > 2.2
|
29
|
+
spec.add_development_dependency "listen", "< 3.1.0"
|
27
30
|
spec.add_development_dependency "pry"
|
28
31
|
spec.add_development_dependency "pry-remote"
|
29
32
|
spec.add_development_dependency "pry-nav"
|
@@ -37,10 +37,9 @@ module Alephant
|
|
37
37
|
|
38
38
|
def update_sequence_id(ident, value, last_seen_check = nil)
|
39
39
|
begin
|
40
|
-
|
41
40
|
current_sequence = last_seen_check.nil? ? sequence_for(ident) : last_seen_check
|
42
|
-
@mutex.synchronize do
|
43
41
|
|
42
|
+
dynamo_response = @mutex.synchronize do
|
44
43
|
client.put_item({
|
45
44
|
:table_name => table_name,
|
46
45
|
:item => {
|
@@ -73,6 +72,9 @@ module Alephant
|
|
73
72
|
"value" => value,
|
74
73
|
"method" => "#{self.class}#update_sequence_id"
|
75
74
|
)
|
75
|
+
|
76
|
+
dynamo_response
|
77
|
+
|
76
78
|
rescue AWS::DynamoDB::Errors::ConditionalCheckFailedException
|
77
79
|
logger.metric "SequencerFailedConditionalChecks"
|
78
80
|
logger.error(
|
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: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC News
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - <
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 3.1.0
|
117
|
+
name: listen
|
118
|
+
prerelease: false
|
119
|
+
type: :development
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - <
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.1.0
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
requirement: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|