rage-rb 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11dd7f4039089ea1f06eb54c332851c1942f7dc646f48f20a648b9504681d61d
4
- data.tar.gz: ed28d28bcee87dbbb59dcc200540b7b7588d68b3ace8821c55a014005314974a
3
+ metadata.gz: 87a1aecc1f62917581dee82c9efe0d56cebc69046500eeaf7f2e73aa7f35f809
4
+ data.tar.gz: 6e890b8641f214b2cfbebc2fd56bc1f5a32f2f8c2281cbf8f62d3a607d05c4ad
5
5
  SHA512:
6
- metadata.gz: fa1d951dcd7a0cb63fbcef9801298266f4bf61f515977dd3c311e7ea563df9dfcc383db282386f997257d35d01695168880aa160437166105aa8e73ada028295
7
- data.tar.gz: 7c8e571b08e8987ffec6dd31799382ad0c9da35b42fb7aa0988b146f3efac6e8cd35391410f1e2339191a58dbec81ee8bdb4f78728070fc0d4123a4e2e54f4f0
6
+ metadata.gz: c659a925cd991c383714d48e803a93edec1703c5e99aacd73d7c4748be00e77ec8077f6c86ec31c13c8fab373c9ef22bc11fec647b0bc233abec710967a827f4
7
+ data.tar.gz: a0085405ad42e00730128e942b72abf9944f9344d2e9d5b178b393f8f019b517b430a0b3bf3ac7dd8b8e575392e4f79f7c0cc8531093be3d8100a549f13583f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.10.1] - 2024-09-17
4
+
5
+ ### Fixed
6
+
7
+ - Patch AR pool even if `Rake` is defined (#105).
8
+
3
9
  ## [1.10.0] - 2024-09-16
4
10
 
5
11
  ### Changed
@@ -94,6 +94,6 @@ if defined?(ActiveRecord) && !Rage.config.internal.rails_mode && (database_url |
94
94
  end
95
95
 
96
96
  # patch `ActiveRecord::ConnectionPool`
97
- if defined?(ActiveRecord) && !defined?(Rake) && Rage.config.internal.patch_ar_pool?
97
+ if defined?(ActiveRecord) && Rage.config.internal.patch_ar_pool?
98
98
  Rage.patch_active_record_connection_pool
99
99
  end
data/lib/rage/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rage
4
- VERSION = "1.10.0"
4
+ VERSION = "1.10.1"
5
5
  end
data/lib/rage-rb.rb CHANGED
@@ -63,7 +63,7 @@ module Rage
63
63
  patch = proc do
64
64
  is_connected = ActiveRecord::Base.connection_pool rescue false
65
65
  if is_connected
66
- puts "INFO: Patching ActiveRecord::ConnectionPool"
66
+ Iodine.on_state(:pre_start) { puts "INFO: Patching ActiveRecord::ConnectionPool" }
67
67
  Iodine.on_state(:on_start) do
68
68
  ActiveRecord::Base.connection_handler.connection_pool_list(:all).each do |pool|
69
69
  pool.extend(Rage::Ext::ActiveRecord::ConnectionPool)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-16 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor