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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8985623b8393ab4ebd95f41d25492f7840be3ac4
4
- data.tar.gz: 4c0f2c03d1c38622b7414384837bad081b047243
3
+ metadata.gz: 20c090d611f779fd82ffdb9ed5b68ce1c48f8a4e
4
+ data.tar.gz: 727a1ec449b286afe560dc5be5f672346782af6c
5
5
  SHA512:
6
- metadata.gz: 54a1d999505ab34e199ef7390a3be4f69845eef0aaafdb7ad817311fa2eaa4b793b720f14bf01453292b19e972f75f014909c74b36b8c307ddb6488d9f1cd499
7
- data.tar.gz: 638e0b118f9b890528a9dea44aa7080c7f1e91b65922458f08a558aa7d76bda01aeb96572abd55d5341baefad75cd66f7855857f1b2e6c015ff4e49e834b2d0c
6
+ metadata.gz: 78c828f82e3a334f3314372afa8aaa1292ee570cde145e22043896eee642d6e289a3b97ef5f40dd4ccc8ae70271fa4858d41b5c4a208b3e3d0f9153caa61a550
7
+ data.tar.gz: 392181832924264e677efed9655eb6e1057232cd4594cf66af6fe019784917801d4b5bab356e5662b2c66d480629820b418acab2cb1671319c2694a94385745a
@@ -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(
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Sequencer
3
- VERSION = "3.0.1"
3
+ VERSION = "3.0.2"
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: 3.0.1
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-03-16 00:00:00.000000000 Z
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: