fibered_mysql2 0.1.2 → 0.1.3

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: 03d7285011a1fd36ca7d030a233bdeb46900e44c512161abd0241c653b5cabd4
4
- data.tar.gz: 5ec6253f493c773a11207664df054dab32f5cfaf996fbb4706bb76d89cd04b1c
3
+ metadata.gz: 225cf0ef6cb3df66126005bfc6a4371440ab608b29ea963844eb06e73cd7d246
4
+ data.tar.gz: b23527416fae27ac715336a587b91e34915b12458ff7847a5ddfd1e67dd583fa
5
5
  SHA512:
6
- metadata.gz: 890bb36f3cbd96021d0afa0d3ce06b1d02765afc8be3d7335d5b6234ec6b6e11b58a24b4b499d0332a2a01c778757dd5c880af6291e7f535a740e2da9be2ef62
7
- data.tar.gz: 0cc5c22298ca1bd4c6c443738b6aa1c306d412894141660f1ce49e4dc592474c172c014073b0a6e088506d3422c8983b21b00a9bd8bd018fd75a1b0904f33782
6
+ metadata.gz: 5dd796506d874c6cce296873e6f378d72d116a0491ef6d408cbd58366702573c11a525228ba7fe7801cae9808ea6a04dca1323f9eed1425222f9dcfb9ff0832d
7
+ data.tar.gz: 75edd0d65c74021b038c8668bce101e5b3baeecea48da3e237ff99e26d3a74dca7bb73337b909c22c43159669ed268252614c156a57b1ed77077f3fd8817f222
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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.1.3] - 2021-06-17
8
+ ### Fixed
9
+ - When checking that @owner is a Fiber, allow nil.
10
+
7
11
  ## [0.1.2] - 2021-06-16
8
12
  ### Fixed
9
13
  - Added checking to be certain that @owner is never overwritten with a non-Fiber by another mixin.
@@ -23,6 +27,7 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
23
27
  - Added TravisCI unit test pipeline.
24
28
  - Added coverage reports via Coveralls.
25
29
 
30
+ [0.1.3]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.2..v0.1.3
26
31
  [0.1.2]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.1..v0.1.2
27
32
  [0.1.1]: https://github.com/Invoca/fibered_mysql2/compare/v0.1.0..v0.1.1
28
33
  [0.1.0]: https://github.com/Invoca/fibered_mysql2/tree/v0.1.0
data/Gemfile CHANGED
@@ -12,5 +12,6 @@ gem 'mimemagic', '~> 0.3', git: 'git@github.com:Invoca/mimemagic',
12
12
  gem 'mysql2', '0.4.5'
13
13
  gem 'pry', '~> 0.13'
14
14
  gem 'pry-byebug', '~> 3.9'
15
+ gem 'rails', '< 6.1'
15
16
  gem 'rake', '~> 10.0'
16
17
  gem 'rspec', '~> 3.0'
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- fibered_mysql2 (0.1.2)
11
+ fibered_mysql2 (0.1.3)
12
12
  em-synchrony (~> 1.0)
13
13
  rails (>= 4.2, < 7)
14
14
 
@@ -198,6 +198,7 @@ DEPENDENCIES
198
198
  mysql2 (= 0.4.5)
199
199
  pry (~> 0.13)
200
200
  pry-byebug (~> 3.9)
201
+ rails (< 6.1)
201
202
  rake (~> 10.0)
202
203
  rspec (~> 3.0)
203
204
 
@@ -65,7 +65,8 @@ module FiberedMysql2
65
65
  private
66
66
 
67
67
  def owner_fiber
68
- @owner.is_a?(Fiber) or raise "@owner must be a Fiber! Found #{@owner.inspect}"
68
+ @owner.nil? || @owner.is_a?(Fiber) or
69
+ raise "@owner must be a Fiber! Found #{@owner.inspect}"
69
70
  @owner
70
71
  end
71
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FiberedMysql2
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em-synchrony