fibered_mysql2 0.2.0.jeb.1 → 0.2.0

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: f5a0be4a68409bcf17463e91e3da6de8b018a431f1c71b41c84d67e84d55cc0e
4
- data.tar.gz: 6516de3e5623c12a0261032da60ce0051a99452a989cc5830ce71e3d6621c42c
3
+ metadata.gz: b96c3d593486e68e9bcb79ba3ece18c5bde2a4847cf6007b3711595a72491147
4
+ data.tar.gz: 57d3a719e17231f2582694a1590e8e6d43567bb75797ddc17b2591fe9e285ab0
5
5
  SHA512:
6
- metadata.gz: 6e8cf5e983a443d230960f3f5b34c067e988ac164a17ac2dd9937b578e0db023e0642c759e011abf49b92297f84658d1c77ff1f59a7b5060e42b54c9dfa3b45f
7
- data.tar.gz: b3aff276ae0357bfe88b99c7d67f0fb244ef1cc3682fb799ecbeab2a7430a39f8ae51c7a4a3ea9f0d252a71cc04eaab8e5617ee3cc2e2e294a3c896b496ff4af
6
+ metadata.gz: 7ec023e83475110f906ae85d79ffbe369014cfe33d71797ba09c3c3666f9af25353cac11d5f6ec6e7f5484f911b4b2310bcb44ff37d0510fe15c2e8d3d65daa7
7
+ data.tar.gz: 461cccb73f19c36f9a019a04955c492ef572a63540b6f0a849f02c9c1c640d996ed02cbf43150b195168710333d08b17b0e584d934e8811e6de10c1ba84cd92f
data/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
5
  Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [0.2.0] - Unreleased
7
+ ## [0.2.0] - 2023-01-12
8
8
  ### Added
9
9
  - Added support for Rails 6+ by adding knowledge of lazy transactions to the adapter.
10
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fibered_mysql2 (0.2.0.jeb.1)
4
+ fibered_mysql2 (0.2.0)
5
5
  em-synchrony (~> 1.0)
6
6
  rails (>= 5.2, < 7)
7
7
 
@@ -48,6 +48,9 @@ module EM::Synchrony
48
48
  end
49
49
  end
50
50
 
51
+ # Overriding the ActiveRecord::TransactionManager#materialize_transactions method to use
52
+ # fiber safe the _current_stack instead of the @stack instance variable. when marterializing
53
+ # transactions.
51
54
  def materialize_transactions
52
55
  return if @materializing_transactions
53
56
  return unless @has_unmaterialized_transactions
@@ -63,6 +66,9 @@ module EM::Synchrony
63
66
  end
64
67
  end
65
68
 
69
+ # Overriding the ActiveRecord::TransactionManager#commit_transaction method to use
70
+ # fiber safe the _current_stack instead of the @stack instance variable. when marterializing
71
+ # transactions.
66
72
  def commit_transaction
67
73
  @connection.lock.synchronize do
68
74
  transaction = _current_stack.last
@@ -78,9 +84,12 @@ module EM::Synchrony
78
84
  end
79
85
  end
80
86
 
87
+ # Overriding the ActiveRecord::TransactionManager#rollback_transaction method to use
88
+ # fiber safe the _current_stack instead of the @stack instance variable. when marterializing
89
+ # transactions.
81
90
  def rollback_transaction(transaction = nil)
82
91
  @connection.lock.synchronize do
83
- transaction ||= @_current_stack.pop
92
+ transaction ||= _current_stack.pop
84
93
  transaction.rollback
85
94
  transaction.rollback_records
86
95
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FiberedMysql2
4
- VERSION = "0.2.0.jeb.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fibered_mysql2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.jeb.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em-synchrony
@@ -89,9 +89,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">"
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.3.1
94
+ version: '0'
95
95
  requirements: []
96
96
  rubygems_version: 3.1.6
97
97
  signing_key: