alephant-sequencer 0.2.0 → 0.3.0

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: 0d63fd87b204cb85599cefff8afdb383fb73d44f
4
- data.tar.gz: 941c6807d5ae508a7877c3dc8bdd5271426294d3
3
+ metadata.gz: 78834eb5da71bd4ecf953db6376f2f29155d48a8
4
+ data.tar.gz: 02200274a6b1b437cb45b1bef7b9d7fd6b54feb2
5
5
  SHA512:
6
- metadata.gz: 201995cd61b5593347f13f124a308c639a970a1c8eb0078d2bd6a0377ea045c75220f44ae9570342f8ec027d00fcb5f70e1b026672f68d94f9179b758ca9fa33
7
- data.tar.gz: 35d0c7bee1dc6dc99beaef458e7ca5473fd90ce18b0c08bb97135ff0e2eba46e1e415fc7e3f13e16ff0192c2ee94173affe2063c94453bc9e821c42dfb58ba8e
6
+ metadata.gz: 8a2c2b4d457d07117af1f35acd520fe7113c76db8d25c15928534eb62165c5752f605faac944d4cfd1066e92fe17d66cdfb77281d17022789fd9009908bdc6a5
7
+ data.tar.gz: a84e55d1c4991cc8c8042be5d7ae9f25e68165b57b000f7a6005da828ee05392ca23f30f4424a53dff7a70163efc4bcaf96897741da55f74878d95240cf4db9d
data/.gitignore CHANGED
@@ -7,4 +7,4 @@ Gemfile.lock
7
7
  /pkg
8
8
  /tmp
9
9
  /components
10
-
10
+ *.swp
data/Rakefile CHANGED
@@ -1,9 +1,6 @@
1
1
  $:.unshift File.join(File.dirname(__FILE__), 'lib')
2
2
 
3
- require 'rspec/core/rake_task'
4
3
  require 'bundler/gem_tasks'
5
- require 'alephant/sequencer'
6
-
7
- RSpec::Core::RakeTask.new(:spec)
4
+ require 'rake/rspec'
8
5
 
9
6
  task :default => :spec
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.5"
21
21
  spec.add_development_dependency "rake"
22
22
  spec.add_development_dependency "rspec"
23
+ spec.add_development_dependency "rake-rspec"
23
24
  spec.add_development_dependency "rspec-nc"
24
25
  spec.add_development_dependency "guard"
25
26
  spec.add_development_dependency "guard-rspec"
@@ -57,8 +57,8 @@ module Alephant
57
57
  )
58
58
  end
59
59
 
60
- def get_last_seen
61
- @sequence_table.sequence_for(ident)
60
+ def get_last_seen(key = ident)
61
+ @sequence_table.sequence_for(key)
62
62
  end
63
63
 
64
64
  def self.sequence_id_from(msg, path)
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Sequencer
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -249,7 +249,7 @@ describe Alephant::Sequencer do
249
249
  let(:id_value) { 2 }
250
250
 
251
251
  it "is true" do
252
- expect(subject.sequential?(data)).to be_true
252
+ expect(subject.sequential?(data)).to be
253
253
  end
254
254
  end
255
255
 
@@ -257,7 +257,7 @@ describe Alephant::Sequencer do
257
257
  let(:id_value) { 0 }
258
258
 
259
259
  it "is false" do
260
- expect(subject.sequential?(data)).to be_false
260
+ expect(subject.sequential?(data)).to be false
261
261
  end
262
262
  end
263
263
  end
@@ -271,7 +271,7 @@ describe Alephant::Sequencer do
271
271
  let(:id_value) { 2 }
272
272
 
273
273
  it "is true" do
274
- expect(subject.sequential?(data)).to be_true
274
+ expect(subject.sequential?(data)).to be
275
275
  end
276
276
  end
277
277
 
@@ -279,7 +279,7 @@ describe Alephant::Sequencer do
279
279
  let(:id_value) { 0 }
280
280
 
281
281
  it "is false" do
282
- expect(subject.sequential?(data)).to be_false
282
+ expect(subject.sequential?(data)).to be false
283
283
  end
284
284
  end
285
285
  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.2.0
4
+ version: 0.3.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-06-11 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec-nc
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -211,7 +225,6 @@ files:
211
225
  - lib/alephant/sequencer/sequence_table.rb
212
226
  - lib/alephant/sequencer/sequencer.rb
213
227
  - lib/alephant/sequencer/version.rb
214
- - spec/.sequencer_spec.rb.swp
215
228
  - spec/sequencer_spec.rb
216
229
  - spec/spec_helper.rb
217
230
  homepage: ''
@@ -234,11 +247,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
247
  version: '0'
235
248
  requirements: []
236
249
  rubyforge_project:
237
- rubygems_version: 2.2.2
250
+ rubygems_version: 2.0.14
238
251
  signing_key:
239
252
  specification_version: 4
240
253
  summary: Adds sequencing functionality to Alephant.
241
254
  test_files:
242
- - spec/.sequencer_spec.rb.swp
243
255
  - spec/sequencer_spec.rb
244
256
  - spec/spec_helper.rb
Binary file