granite 0.15.0 → 0.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/granite/action/transaction.rb +4 -4
- data/lib/granite/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2c26504cf64e66471237d5e225ec9a764c97a7d0a7e4fe70506b707402fb758
|
4
|
+
data.tar.gz: 1a4e0f6d7713d2d3c2c3f8b4a0651c3a42aeb60bdc0057a92ebae516c7bf8cab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4385e90e1084b85136a23a6b441ce2f22ec709658ac70c4459bf178ec8de9145666886fececfcbb18d846e8edb28260f2c43313fd2f2e209a37fa22035074046
|
7
|
+
data.tar.gz: 59b8b496841fbc135f11ccba324bc45036a85f808f3340b045ef5b92aa3cd72cfc43bd0e5c8e68740c866a6b4102dfbff6ba4ea078baee0ad214eef169f9b9c4
|
@@ -36,10 +36,10 @@ module Granite
|
|
36
36
|
|
37
37
|
private
|
38
38
|
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :granite_in_transaction
|
40
40
|
|
41
41
|
def transaction(&block)
|
42
|
-
if
|
42
|
+
if granite_in_transaction
|
43
43
|
yield
|
44
44
|
else
|
45
45
|
run_in_transaction(&block)
|
@@ -47,14 +47,14 @@ module Granite
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def run_in_transaction
|
50
|
-
self.
|
50
|
+
self.granite_in_transaction = true
|
51
51
|
|
52
52
|
TransactionManager.transaction do
|
53
53
|
TransactionManager.after_commit(self)
|
54
54
|
yield
|
55
55
|
end
|
56
56
|
ensure
|
57
|
-
self.
|
57
|
+
self.granite_in_transaction = false
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
data/lib/granite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: granite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toptal Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -415,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
415
415
|
- !ruby/object:Gem::Version
|
416
416
|
version: '0'
|
417
417
|
requirements: []
|
418
|
-
rubygems_version: 3.
|
418
|
+
rubygems_version: 3.1.6
|
419
419
|
signing_key:
|
420
420
|
specification_version: 4
|
421
421
|
summary: Another business actions architecture for Rails apps
|