alephant-sequencer 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/sequencer/sequencer.rb +1 -1
- data/lib/alephant/sequencer/version.rb +1 -1
- data/spec/sequencer_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7466abcf04d261c43c5530f34afd0175c147a632
|
4
|
+
data.tar.gz: b4d75acc04a87e90a3ea5b4e38710ae71b54a18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdac309998678c0f708e1916637b695a668a2640e7d02da705b12b99e8c8a25fd6817bc5e359d7da6ba0b63455f25ef6217db73ffd16d2ac085cb78921810f26
|
7
|
+
data.tar.gz: dc6ea117ba80d4eefb51278b632bc331248f68f482e679321bea31ef2983a6981899c7b4dbfcbe65572ac68ce1313f1001e879dfcf2a1da44703fb1df66c2ba7
|
data/spec/sequencer_spec.rb
CHANGED
@@ -40,7 +40,7 @@ describe Alephant::Sequencer do
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
-
describe "#
|
43
|
+
describe "#validate(msg, &block)" do
|
44
44
|
let(:message) do
|
45
45
|
m = double()
|
46
46
|
m.stub(:body)
|
@@ -71,7 +71,7 @@ describe Alephant::Sequencer do
|
|
71
71
|
|
72
72
|
it "should call the passed block with msg" do
|
73
73
|
subject = Alephant::Sequencer::Sequencer.new(sequence_table, ident, jsonpath)
|
74
|
-
subject.
|
74
|
+
subject.validate(message, &a_proc)
|
75
75
|
end
|
76
76
|
|
77
77
|
context "last_seen_id is nil" do
|
@@ -93,7 +93,7 @@ describe Alephant::Sequencer do
|
|
93
93
|
.with(message, nil)
|
94
94
|
|
95
95
|
subject = Alephant::Sequencer::Sequencer.new(sequence_table, ident, jsonpath)
|
96
|
-
subject.
|
96
|
+
subject.validate(message, &a_proc)
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
@@ -115,7 +115,7 @@ describe Alephant::Sequencer do
|
|
115
115
|
.should_not_receive(:set_last_seen)
|
116
116
|
|
117
117
|
subject = Alephant::Sequencer::Sequencer.new(sequence_table, ident, jsonpath)
|
118
|
-
subject.
|
118
|
+
subject.validate(message, &a_proc)
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -138,7 +138,7 @@ describe Alephant::Sequencer do
|
|
138
138
|
.should_not_receive(:set_last_seen)
|
139
139
|
|
140
140
|
subject = Alephant::Sequencer::Sequencer.new(sequence_table, ident, jsonpath)
|
141
|
-
subject.
|
141
|
+
subject.validate(message, &a_proc)
|
142
142
|
end
|
143
143
|
|
144
144
|
context "keep_all is false" do
|
@@ -150,7 +150,7 @@ describe Alephant::Sequencer do
|
|
150
150
|
jsonpath,
|
151
151
|
keep_all
|
152
152
|
)
|
153
|
-
subject.
|
153
|
+
subject.validate(message, &an_uncalled_proc)
|
154
154
|
end
|
155
155
|
end
|
156
156
|
end
|
@@ -174,7 +174,7 @@ describe Alephant::Sequencer do
|
|
174
174
|
.with(message, stubbed_last_seen)
|
175
175
|
|
176
176
|
subject = Alephant::Sequencer::Sequencer.new(sequence_table, ident, jsonpath)
|
177
|
-
subject.
|
177
|
+
subject.validate(message, &a_proc)
|
178
178
|
end
|
179
179
|
end
|
180
180
|
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.
|
4
|
+
version: 1.0.0
|
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-11-
|
11
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|