ar-multidb 0.6.0 → 0.7.0
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 +4 -4
- data/.github/workflows/prs.yml +6 -3
- data/CHANGELOG.md +4 -0
- data/ar-multidb.gemspec +3 -3
- data/gemfiles/activerecord-7.1.gemfile +7 -0
- data/lib/multidb/log_subscriber.rb +2 -2
- data/lib/multidb/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b7a06c5b9e515743e31eabe777ed7f3d56374ac1861b505266636fb30fb2a6
|
4
|
+
data.tar.gz: cfdbffebdbd4c940c08fb0260abfe3f5c25700be5a9cf562f4ad7dc370b93aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb45e7c3f610828ad5293ec478b5b0cfda8b17952d0f2a7772b3128e7c2515f396546a1f7a3014864ed489fa1a0da1e721c03cf50297c498051e0a7b3060218b
|
7
|
+
data.tar.gz: 68cce9fef6f957b8212c41bddaeca6fe0711a614cd84d8cb38e7419a572929e9e5119344b4602d6efc53deafed42fa0c9acda6122e16149ee68e3e1af4d0823c
|
data/.github/workflows/prs.yml
CHANGED
@@ -25,9 +25,12 @@ jobs:
|
|
25
25
|
- '6.0'
|
26
26
|
- '6.1'
|
27
27
|
- '7.0'
|
28
|
+
- '7.1'
|
28
29
|
exclude:
|
29
30
|
- ruby: '2.5'
|
30
31
|
activerecord: '7.0'
|
32
|
+
- ruby: '2.5'
|
33
|
+
activerecord: '7.1'
|
31
34
|
- ruby: '3.0'
|
32
35
|
activerecord: '5.1'
|
33
36
|
- ruby: '3.0'
|
@@ -35,7 +38,7 @@ jobs:
|
|
35
38
|
env:
|
36
39
|
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}.gemfile"
|
37
40
|
steps:
|
38
|
-
- uses: actions/checkout@
|
41
|
+
- uses: actions/checkout@v4
|
39
42
|
- name: Set up Ruby
|
40
43
|
uses: ruby/setup-ruby@v1
|
41
44
|
with:
|
@@ -49,7 +52,7 @@ jobs:
|
|
49
52
|
run: bundle exec rubocop
|
50
53
|
- name: Coveralls Parallel
|
51
54
|
if: "${{ !env.ACT }}"
|
52
|
-
uses: coverallsapp/github-action@
|
55
|
+
uses: coverallsapp/github-action@v2
|
53
56
|
with:
|
54
57
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
55
58
|
flag-name: run-${{ matrix.ruby }}-${{ matrix.activerecord }}
|
@@ -62,7 +65,7 @@ jobs:
|
|
62
65
|
steps:
|
63
66
|
- name: Coveralls Finished
|
64
67
|
if: "${{ !env.ACT }}"
|
65
|
-
uses: coverallsapp/github-action@
|
68
|
+
uses: coverallsapp/github-action@v2
|
66
69
|
with:
|
67
70
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
68
71
|
parallel-finished: true
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
|
6
6
|
|
7
|
+
## [0.7.0]
|
8
|
+
### Changed
|
9
|
+
- add AR 7.1 support
|
10
|
+
|
7
11
|
## [0.6.0]
|
8
12
|
### Changed
|
9
13
|
- dropped ruby 2.4 support
|
data/ar-multidb.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = Multidb::VERSION
|
9
9
|
s.authors = ['Alexander Staubo', 'Edward Rudd']
|
10
10
|
s.email = %w[alex@bengler.no urkle@outoforder.cc]
|
11
|
-
s.homepage = ''
|
11
|
+
s.homepage = 'https://github.com/OutOfOrder/multidb'
|
12
12
|
s.summary = s.description = 'Multidb is an ActiveRecord extension for switching between multiple database connections, such as primary/replica setups.'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.metadata['rubygems_mfa_required'] = 'true'
|
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.required_ruby_version = '>= 2.5.0'
|
22
22
|
|
23
|
-
s.add_runtime_dependency 'activerecord', '>= 5.1', '< 7.
|
24
|
-
s.add_runtime_dependency 'activesupport', '>= 5.1', '< 7.
|
23
|
+
s.add_runtime_dependency 'activerecord', '>= 5.1', '< 7.2'
|
24
|
+
s.add_runtime_dependency 'activesupport', '>= 5.1', '< 7.2'
|
25
25
|
|
26
26
|
s.add_development_dependency 'rake', '~> 13.0'
|
27
27
|
s.add_development_dependency 'rspec', '~> 3.8'
|
@@ -8,11 +8,11 @@ module Multidb
|
|
8
8
|
super
|
9
9
|
end
|
10
10
|
|
11
|
-
def debug(msg)
|
11
|
+
def debug(msg = nil)
|
12
12
|
name = Multidb.balancer.current_connection_name
|
13
13
|
if name
|
14
14
|
db = color("[DB: #{name}]", ActiveSupport::LogSubscriber::GREEN, true)
|
15
|
-
super(db + msg)
|
15
|
+
super(db + msg.to_s)
|
16
16
|
else
|
17
17
|
super
|
18
18
|
end
|
data/lib/multidb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar-multidb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Staubo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '5.1'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '7.
|
23
|
+
version: '7.2'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '5.1'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '7.
|
33
|
+
version: '7.2'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activesupport
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '5.1'
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '7.
|
43
|
+
version: '7.2'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
version: '5.1'
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '7.
|
53
|
+
version: '7.2'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: rake
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- gemfiles/activerecord-6.0.gemfile
|
174
174
|
- gemfiles/activerecord-6.1.gemfile
|
175
175
|
- gemfiles/activerecord-7.0.gemfile
|
176
|
+
- gemfiles/activerecord-7.1.gemfile
|
176
177
|
- lib/ar-multidb.rb
|
177
178
|
- lib/multidb.rb
|
178
179
|
- lib/multidb/balancer.rb
|
@@ -190,7 +191,7 @@ files:
|
|
190
191
|
- spec/spec_helper.rb
|
191
192
|
- spec/support/have_database_matcher.rb
|
192
193
|
- spec/support/helpers.rb
|
193
|
-
homepage:
|
194
|
+
homepage: https://github.com/OutOfOrder/multidb
|
194
195
|
licenses:
|
195
196
|
- MIT
|
196
197
|
metadata:
|