alephant-sequencer 1.2.0 → 1.2.1

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: 890c8ad225896f900a20b2675e3cb2be38eaecea
4
- data.tar.gz: 79a09f2ca1fcb4c131af52f1c4351402477cd5eb
3
+ metadata.gz: b1a267e8d94ce4d43d160846e54b99ad865f844c
4
+ data.tar.gz: 9a1c6a77b1b2e359f77b72cdd57c34066554d97f
5
5
  SHA512:
6
- metadata.gz: 1814662846466e72dfea78479adc8bb4dacf5a0c09526572181532008790d54dc8ddb46a4e174d8e126aa58a9b9699e399ae455400e1cae9b5c22a10b5a92e59
7
- data.tar.gz: 6f18cd7b216d7edf26d38d2d2cba9c3ab70ec61034ab84e14d8ac746b094d641c74345619876886e9e8c0b456ff22a64bcfb2591e97cbc7da5ce0afcfa50bb0c
6
+ metadata.gz: 6ebd0457245227ca8a52bd47a6017296b33ead9c433dec5ab68e0851dbe50e2be9daf34fe7421107807ab700ac114aa08206405f7b1ce4d2699a59dae99fa29e
7
+ data.tar.gz: 0804c473641742f9220193824475e0e71eb78a8751e5cfc1413ba1242a4f5314e44ae0ee71adc8b8a3db64d1460696e7bec0741f907051c06a195b2649d37b81
@@ -68,7 +68,10 @@ module Alephant
68
68
 
69
69
  logger.info("SequenceTable#update_sequence_id: with new value #{value} for #{ident} success!")
70
70
  rescue AWS::DynamoDB::Errors::ConditionalCheckFailedException
71
- logger.metric(:name => "SequencerFailedConditionalChecks", :unit => "Count", :value => 1)
71
+ logger.metric(
72
+ "SequencerFailedConditionalChecks",
73
+ metric_opts
74
+ )
72
75
  logger.warn("SequenceTable#update_sequence_id: (Value to put: #{value}, existing: #{current_sequence}) #{ident} outdated!")
73
76
  end
74
77
  end
@@ -81,6 +84,16 @@ module Alephant
81
84
 
82
85
  private
83
86
 
87
+ def metric_opts
88
+ {
89
+ :dimensions => {
90
+ :module => "Alephant",
91
+ :class => "Sequencer",
92
+ :function => "update_sequence_id"
93
+ }
94
+ }
95
+ end
96
+
84
97
  def item_payload(ident)
85
98
  {
86
99
  :table_name => table_name,
@@ -34,7 +34,10 @@ module Alephant
34
34
  if sequential
35
35
  set_last_seen(msg, last_seen_id)
36
36
  else
37
- logger.metric(:name => "SequencerNonSequentialMessageCount", :unit => "Count", :value => 1)
37
+ logger.metric(
38
+ "SequencerNonSequentialMessageCount",
39
+ metric_opts
40
+ )
38
41
  logger.info("Sequencer#sequence nonsequential message for #{ident} (last_seen_id: #{last_seen_id})")
39
42
  end
40
43
  end
@@ -65,6 +68,16 @@ module Alephant
65
68
  def self.sequence_id_from(msg, path)
66
69
  JsonPath.on(msg.body, path).first.to_i
67
70
  end
71
+
72
+ def metric_opts
73
+ {
74
+ :dimensions => {
75
+ :module => "Alephant",
76
+ :class => "Sequencer",
77
+ :function => "validate"
78
+ }
79
+ }
80
+ end
68
81
  end
69
82
  end
70
83
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Sequencer
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,211 +1,211 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-sequencer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
14
20
  requirement: !ruby/object:Gem::Requirement
15
21
  requirements:
16
22
  - - ~>
17
23
  - !ruby/object:Gem::Version
18
24
  version: '1.5'
19
- name: bundler
20
25
  prerelease: false
21
26
  type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - ~>
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: '1.5'
27
- - !ruby/object:Gem::Dependency
33
+ version: '0'
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
36
  - - '>='
31
37
  - !ruby/object:Gem::Version
32
38
  version: '0'
33
- name: rake
34
39
  prerelease: false
35
40
  type: :development
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
45
  - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
50
  - - '>='
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
47
- name: rspec
48
53
  prerelease: false
49
54
  type: :development
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-rspec
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
59
  - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
62
  requirement: !ruby/object:Gem::Requirement
57
63
  requirements:
58
64
  - - '>='
59
65
  - !ruby/object:Gem::Version
60
66
  version: '0'
61
- name: rake-rspec
62
67
  prerelease: false
63
68
  type: :development
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-nc
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
73
  - - '>='
67
74
  - !ruby/object:Gem::Version
68
75
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
76
  requirement: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - '>='
73
79
  - !ruby/object:Gem::Version
74
80
  version: '0'
75
- name: rspec-nc
76
81
  prerelease: false
77
82
  type: :development
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
87
  - - '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
90
  requirement: !ruby/object:Gem::Requirement
85
91
  requirements:
86
92
  - - '>='
87
93
  - !ruby/object:Gem::Version
88
94
  version: '0'
89
- name: guard
90
95
  prerelease: false
91
96
  type: :development
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rspec
92
99
  version_requirements: !ruby/object:Gem::Requirement
93
100
  requirements:
94
101
  - - '>='
95
102
  - !ruby/object:Gem::Version
96
103
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
104
  requirement: !ruby/object:Gem::Requirement
99
105
  requirements:
100
106
  - - '>='
101
107
  - !ruby/object:Gem::Version
102
108
  version: '0'
103
- name: guard-rspec
104
109
  prerelease: false
105
110
  type: :development
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
106
113
  version_requirements: !ruby/object:Gem::Requirement
107
114
  requirements:
108
115
  - - '>='
109
116
  - !ruby/object:Gem::Version
110
117
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
118
  requirement: !ruby/object:Gem::Requirement
113
119
  requirements:
114
120
  - - '>='
115
121
  - !ruby/object:Gem::Version
116
122
  version: '0'
117
- name: pry
118
123
  prerelease: false
119
124
  type: :development
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-remote
120
127
  version_requirements: !ruby/object:Gem::Requirement
121
128
  requirements:
122
129
  - - '>='
123
130
  - !ruby/object:Gem::Version
124
131
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
132
  requirement: !ruby/object:Gem::Requirement
127
133
  requirements:
128
134
  - - '>='
129
135
  - !ruby/object:Gem::Version
130
136
  version: '0'
131
- name: pry-remote
132
137
  prerelease: false
133
138
  type: :development
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-nav
134
141
  version_requirements: !ruby/object:Gem::Requirement
135
142
  requirements:
136
143
  - - '>='
137
144
  - !ruby/object:Gem::Version
138
145
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
146
  requirement: !ruby/object:Gem::Requirement
141
147
  requirements:
142
148
  - - '>='
143
149
  - !ruby/object:Gem::Version
144
150
  version: '0'
145
- name: pry-nav
146
151
  prerelease: false
147
152
  type: :development
153
+ - !ruby/object:Gem::Dependency
154
+ name: aws-sdk
148
155
  version_requirements: !ruby/object:Gem::Requirement
149
156
  requirements:
150
- - - '>='
157
+ - - ~>
151
158
  - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
159
+ version: '1.0'
154
160
  requirement: !ruby/object:Gem::Requirement
155
161
  requirements:
156
162
  - - ~>
157
163
  - !ruby/object:Gem::Version
158
164
  version: '1.0'
159
- name: aws-sdk
160
165
  prerelease: false
161
166
  type: :runtime
167
+ - !ruby/object:Gem::Dependency
168
+ name: alephant-logger
162
169
  version_requirements: !ruby/object:Gem::Requirement
163
170
  requirements:
164
- - - ~>
171
+ - - '>='
165
172
  - !ruby/object:Gem::Version
166
- version: '1.0'
167
- - !ruby/object:Gem::Dependency
173
+ version: '0'
168
174
  requirement: !ruby/object:Gem::Requirement
169
175
  requirements:
170
176
  - - '>='
171
177
  - !ruby/object:Gem::Version
172
178
  version: '0'
173
- name: alephant-logger
174
179
  prerelease: false
175
180
  type: :runtime
181
+ - !ruby/object:Gem::Dependency
182
+ name: alephant-support
176
183
  version_requirements: !ruby/object:Gem::Requirement
177
184
  requirements:
178
185
  - - '>='
179
186
  - !ruby/object:Gem::Version
180
187
  version: '0'
181
- - !ruby/object:Gem::Dependency
182
188
  requirement: !ruby/object:Gem::Requirement
183
189
  requirements:
184
190
  - - '>='
185
191
  - !ruby/object:Gem::Version
186
192
  version: '0'
187
- name: alephant-support
188
193
  prerelease: false
189
194
  type: :runtime
195
+ - !ruby/object:Gem::Dependency
196
+ name: jsonpath
190
197
  version_requirements: !ruby/object:Gem::Requirement
191
198
  requirements:
192
199
  - - '>='
193
200
  - !ruby/object:Gem::Version
194
201
  version: '0'
195
- - !ruby/object:Gem::Dependency
196
202
  requirement: !ruby/object:Gem::Requirement
197
203
  requirements:
198
204
  - - '>='
199
205
  - !ruby/object:Gem::Version
200
206
  version: '0'
201
- name: jsonpath
202
207
  prerelease: false
203
208
  type: :runtime
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '>='
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
209
  description:
210
210
  email:
211
211
  - kenoir@gmail.com