sandthorn 0.10.0 → 0.10.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: e447ae84df794de89797c576b53a8e958bf5836f
4
- data.tar.gz: 175d7f6a64b7ec05ae870e1cf838be1d6ff90ce6
3
+ metadata.gz: 8da522171034d5b78f122a32eceb842c31d6560e
4
+ data.tar.gz: 542c3f4f16d3de3accd25a1e6622c13e1767e19c
5
5
  SHA512:
6
- metadata.gz: 77c020e0af49d6ecc03314e879c22b76e361659648e6163dde7b090b897250b163ce7aeaaa440714eeba6ebd619b0e64b3ca20aafd501184ca9e795bd6c90476
7
- data.tar.gz: 1cd42f78aa82b503676e22d469cd373edd6cda4f819716c7b0787392c8dfe9404aa950b201ec4aab036c2c6c852c298ebc3097891e59b0895e0923b1b8bab693
6
+ metadata.gz: c6ee4bcbe5f627e546a4ca898b55dfa5850c5c57040ce19ac22f1cb170c5542f1eda0f0beb45fe57a7653411cea761ae54bc046574c5e550dbe246506933e7c9
7
+ data.tar.gz: b7b871ad5cd91da583939ad9d4ffbfc6475093d6ff5a48904c22c2abe1cdf21d81f7d42292dd78082cb524ef04cfae31d1c9d0014376ee7b045479f628002199
@@ -211,7 +211,7 @@ module Sandthorn
211
211
  @aggregate_id = aggregate_id
212
212
  end
213
213
 
214
- def commit_with_event_name(event_name, *args)
214
+ def commit_with_event_name(event_name, args)
215
215
  aggregate_attribute_deltas = get_delta
216
216
 
217
217
  increase_current_aggregate_version!
@@ -1,3 +1,3 @@
1
1
  module Sandthorn
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'sandthorn/event_inspector'
2
3
 
3
4
  module Sandthorn
4
5
  class EventsSpec
@@ -51,7 +52,7 @@ module Sandthorn
51
52
  end
52
53
 
53
54
  it "should store the args to the event" do
54
- expect(subject.aggregate_events[1][:event_args][:method_args][0][0]).to eql("new name")
55
+ expect(subject.aggregate_events[1][:event_args][:method_args][0]).to eql("new name")
55
56
  end
56
57
  end
57
58
 
@@ -66,7 +67,7 @@ module Sandthorn
66
67
  end
67
68
 
68
69
  it "should store the args to the event" do
69
- expect(subject.aggregate_events[1][:event_args][:method_args][0]).to eql([1,2])
70
+ expect(subject.aggregate_events[1][:event_args][:method_args]).to eql([1,2])
70
71
  end
71
72
  end
72
73
 
@@ -81,7 +82,7 @@ module Sandthorn
81
82
  end
82
83
 
83
84
  it "should store the args to the event" do
84
- expect(subject.aggregate_events[1][:event_args][:method_args][0][0]).to eql("hej")
85
+ expect(subject.aggregate_events[1][:event_args][:method_args][0]).to eql("hej")
85
86
  end
86
87
  end
87
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sandthorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Krantz