eventus 0.6.2 → 0.6.3

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: 8e0276560ef72b952db629d2e1033cf02e34db0e
4
- data.tar.gz: 9e67bbfe647c24ffb6be6cfd5aa165557125f0a8
3
+ metadata.gz: a2eb238a2448707b87bbc256a1f87c6cae9280b4
4
+ data.tar.gz: 7171e7950dc50c447fe683ad18d7bcce93656e4b
5
5
  SHA512:
6
- metadata.gz: fb727713301513d243ba721a391e673b38ccd7376d29fad43107fbfbe5d23ffa717abf61214e7392f1d7349786c288caaf814ec829b6b2f85468901eedbbcc94
7
- data.tar.gz: 30c93f3a565db27953b2a5f88e0f399569d4cb2f79ce6c055f77fe58daf97ef4996e8cf5a83af9031a39218210356329b8109aa53a7e44ced914932e8f9cdf4e
6
+ metadata.gz: 0bd26a10715da2f060a18f931f2bda098a378aa7f294bbabed44f94ff8835b89998b5dee83adec765c695f613b8e4d52afffffa31820bb0f964866615df9b46a
7
+ data.tar.gz: 33a6d64c6ac01dd91a59d172d3c63f6149e3232d8208920b6ffb65170f609e30c732221681113cb42d088d2e91a2dc2b6c5845da625a4303fc7ed71835a9818e
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem 'kyotocabinet-ruby', :platforms => [:ruby]
@@ -19,6 +19,7 @@ module Eventus
19
19
  end
20
20
  @dataset.multi_insert(events)
21
21
  end
22
+ events
22
23
  rescue ::Sequel::UniqueConstraintViolation
23
24
  raise Eventus::ConcurrencyError
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Eventus
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -22,6 +22,14 @@ describe Eventus::Persistence::Sequel do
22
22
  result['body'].should == event['body']
23
23
  end
24
24
 
25
+ it "should return events" do
26
+ id = uuid.generate :compact
27
+ o = {'a' => 'super', 'complex' => ['object', 'with', {'nested' => ['members', 'galore', 1]}]}
28
+ commit = create_commit(id, 1, o)
29
+ events = persistence.commit(commit)
30
+ events.should == commit
31
+ end
32
+
25
33
  it "should return no events when key not found" do
26
34
  result = persistence.load "my_id"
27
35
  result.should be_empty
@@ -1,8 +1,7 @@
1
+ ENV['TEST_MODE'] = 'true'
1
2
  require 'delegate'
2
3
  require 'rubygems'
3
4
  require 'bundler/setup'
4
-
5
- $:.unshift File.expand_path('../../lib', __FILE__)
6
5
  require 'eventus'
7
6
 
8
7
  Bundler.require :development
@@ -17,7 +16,6 @@ Eventus::Persistence::Sequel.migrate!(db)
17
16
 
18
17
 
19
18
  RSpec.configure do |config|
20
- config.backtrace_exclusion_patterns = []
21
19
  config.mock_with :rspec
22
20
  end
23
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Staten