eventus 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/eventus/persistence/sequel.rb +1 -0
- data/lib/eventus/version.rb +1 -1
- data/spec/persistence/sequel_spec.rb +8 -0
- data/spec/spec_helper.rb +1 -3
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a2eb238a2448707b87bbc256a1f87c6cae9280b4
         | 
| 4 | 
            +
              data.tar.gz: 7171e7950dc50c447fe683ad18d7bcce93656e4b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0bd26a10715da2f060a18f931f2bda098a378aa7f294bbabed44f94ff8835b89998b5dee83adec765c695f613b8e4d52afffffa31820bb0f964866615df9b46a
         | 
| 7 | 
            +
              data.tar.gz: 33a6d64c6ac01dd91a59d172d3c63f6149e3232d8208920b6ffb65170f609e30c732221681113cb42d088d2e91a2dc2b6c5845da625a4303fc7ed71835a9818e
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/lib/eventus/version.rb
    CHANGED
    
    
| @@ -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
         | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | @@ -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 |  |