sandthorn 0.10.1 → 0.10.2

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: 8da522171034d5b78f122a32eceb842c31d6560e
4
- data.tar.gz: 542c3f4f16d3de3accd25a1e6622c13e1767e19c
3
+ metadata.gz: 4666c49404c1a108066a0144e81923b36e234466
4
+ data.tar.gz: 648da2f2f66afa2458a47de3e29c4f0223b5c84f
5
5
  SHA512:
6
- metadata.gz: c6ee4bcbe5f627e546a4ca898b55dfa5850c5c57040ce19ac22f1cb170c5542f1eda0f0beb45fe57a7653411cea761ae54bc046574c5e550dbe246506933e7c9
7
- data.tar.gz: b7b871ad5cd91da583939ad9d4ffbfc6475093d6ff5a48904c22c2abe1cdf21d81f7d42292dd78082cb524ef04cfae31d1c9d0014376ee7b045479f628002199
6
+ metadata.gz: f706cb2aecabdce41cc4a975c1f7e3fca114956bb7280bca3a6aa96eae62df166a854bfecb48f3ba779724ad51b5af13c64285a5299105d7b1cf7c1bacdc426f
7
+ data.tar.gz: 928e4ca497a3a401b77e538bb0dfba0290c9f0897c6bf8de01c0e62ec4726365a05754eb5be7e6ea047c88bda6148c1a066ab69ff7707530ac8c430ce2504476
@@ -135,7 +135,7 @@ module Sandthorn
135
135
  event_names.each do |name|
136
136
  define_method(name) do |*args, &block|
137
137
  block.call() if block
138
- commit_with_event_name(name, args)
138
+ commit_with_event_name(name.to_s, args)
139
139
  end
140
140
  private name.to_s
141
141
  end
@@ -1,3 +1,3 @@
1
1
  module Sandthorn
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
@@ -54,6 +54,10 @@ module Sandthorn
54
54
  it "should store the args to the event" do
55
55
  expect(subject.aggregate_events[1][:event_args][:method_args][0]).to eql("new name")
56
56
  end
57
+
58
+ it "should store the event_name" do
59
+ expect(subject.aggregate_events[1][:event_name]).to eql("name_changed")
60
+ end
57
61
  end
58
62
 
59
63
  describe ".some_other" do
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.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Krantz
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-25 00:00:00.000000000 Z
13
+ date: 2016-01-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler