caze 0.0.3 → 0.0.4

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: 57f420be075d3ee1de9347c5635e710ff4efd795
4
- data.tar.gz: e2de97c3f2916ecdf8711c947ee651692a532c58
3
+ metadata.gz: 9fa3f1d633d3f5be1fef1c11ea978737c81cc9df
4
+ data.tar.gz: 6604b18e4f354bdf51f46ed63e3f06b26cc27c38
5
5
  SHA512:
6
- metadata.gz: 8320bc671bc0d8608ae61539c21cbd04a67f925747d541682ceb27b9843937a5d6ef4118b21c9f73f71317d5cfd566712a2ac54cd0cbec7bcf16202f026a2d0b
7
- data.tar.gz: dbde77a1170fb8689e8d7f17f67eaeb89b4e4359efc538b6ea8ea2514e240d1ade7dee316adbf15cd0437def582e4ad2a90c505c7007246d7005965cbee8226f
6
+ metadata.gz: e47427f4198ca41f680b97dc3243b8c64ef04f3c76b9747bc888db83fda45eec6839440990b9e9586de267b6a29fb9ae73bf09aa98faed0ac0554b1895db82fc
7
+ data.tar.gz: 14e9aba9004594e10ef9c8a73e66c60ffbbac50506172a7cbb73ca85cfc4fce91ec2e66126e3553ad189c7caffb452b24eeca43cf944ccf53d0b2f1070458cfa
@@ -19,7 +19,7 @@ module Caze
19
19
 
20
20
  raise NoTransactionMethodError, "This action should be executed inside a transaction. But no transaction handler was configured." unless handler
21
21
 
22
- handler.transaction { use_case_object.send(method_name) }
22
+ handler.transaction { use_case_class.send(use_case_name, *args) }
23
23
  else
24
24
  use_case_class.send(use_case_name, *args)
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Caze
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -13,6 +13,7 @@ describe Caze do
13
13
  include Caze
14
14
 
15
15
  export :the_answer
16
+ export :the_answer, as: :the_transactional_answer
16
17
 
17
18
  def the_answer
18
19
  42
@@ -66,7 +67,7 @@ describe Caze do
66
67
  end
67
68
 
68
69
  it 'uses the transaction handler' do
69
- expect(transaction_handler).to receive(:transaction)
70
+ expect(transaction_handler).to receive(:transaction).and_yield
70
71
  app.the_transactional_answer
71
72
  end
72
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Sampaio
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-16 00:00:00.000000000 Z
12
+ date: 2015-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler