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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cf5813f23b963898bbdd4f55d35b2f0699428c657413ee6f18d56713ffcf659
4
- data.tar.gz: 48a04a7a60bf1819222728acf33c8bf0a73149d9b9d83b2ea04bc70a2182ec04
3
+ metadata.gz: b2c26504cf64e66471237d5e225ec9a764c97a7d0a7e4fe70506b707402fb758
4
+ data.tar.gz: 1a4e0f6d7713d2d3c2c3f8b4a0651c3a42aeb60bdc0057a92ebae516c7bf8cab
5
5
  SHA512:
6
- metadata.gz: b182f94aa37d25756606fe9384a5ea98963279f8a58f84a66a7660fd21a3076b46f6965d56e26d5bc75357431f9bec2dfabb639bd198b0d00529d2567dd21628
7
- data.tar.gz: 814dbec1866a2845d869489d82051feb017e4c850460fef1af69f13d31cf6c40fb66dbddec52529e84dfd292acce8bf73bb4479f9f8e2fca42c586c9dd12b2a2
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 :in_transaction
39
+ attr_accessor :granite_in_transaction
40
40
 
41
41
  def transaction(&block)
42
- if in_transaction
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.in_transaction = true
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.in_transaction = false
57
+ self.granite_in_transaction = false
58
58
  end
59
59
  end
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module Granite
2
- VERSION = '0.15.0'.freeze
2
+ VERSION = '0.15.4'.freeze
3
3
  end
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.0
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: 2022-11-22 00:00:00.000000000 Z
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.2.33
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