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 +4 -4
- data/lib/caze.rb +1 -1
- data/lib/caze/version.rb +1 -1
- data/spec/caze_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fa3f1d633d3f5be1fef1c11ea978737c81cc9df
|
4
|
+
data.tar.gz: 6604b18e4f354bdf51f46ed63e3f06b26cc27c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e47427f4198ca41f680b97dc3243b8c64ef04f3c76b9747bc888db83fda45eec6839440990b9e9586de267b6a29fb9ae73bf09aa98faed0ac0554b1895db82fc
|
7
|
+
data.tar.gz: 14e9aba9004594e10ef9c8a73e66c60ffbbac50506172a7cbb73ca85cfc4fce91ec2e66126e3553ad189c7caffb452b24eeca43cf944ccf53d0b2f1070458cfa
|
data/lib/caze.rb
CHANGED
@@ -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 {
|
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
|
data/lib/caze/version.rb
CHANGED
data/spec/caze_spec.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|