ar-multidb 0.6.0 → 0.7.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: 2d3b5f1dd51f93a8d3b055b6ff23598d9087d10714d4714ceed834681c10b0f0
4
- data.tar.gz: 8d2bd4809db6dd21fcad38e5153323ffac7f9d25d4b1cb78d655c27b8a37b43c
3
+ metadata.gz: 43b7a06c5b9e515743e31eabe777ed7f3d56374ac1861b505266636fb30fb2a6
4
+ data.tar.gz: cfdbffebdbd4c940c08fb0260abfe3f5c25700be5a9cf562f4ad7dc370b93aee
5
5
  SHA512:
6
- metadata.gz: 42c9edb156dcc3d5aa1900164386022512af54a0085d9a9c6a13a7d275fbf55857c06c924b280eeca53a2c157979fcde560018b69506d1acbae84178ec940faa
7
- data.tar.gz: fbf05f4cd6eaf8ebd357fbeac7f66ba49ae20b6680ea078c6ccf3d6182977b9c78ec7f3170e80e03551997088c0c224107e0d768c3590b089d13225c15a86672
6
+ metadata.gz: cb45e7c3f610828ad5293ec478b5b0cfda8b17952d0f2a7772b3128e7c2515f396546a1f7a3014864ed489fa1a0da1e721c03cf50297c498051e0a7b3060218b
7
+ data.tar.gz: 68cce9fef6f957b8212c41bddaeca6fe0711a614cd84d8cb38e7419a572929e9e5119344b4602d6efc53deafed42fa0c9acda6122e16149ee68e3e1af4d0823c
@@ -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@v2
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@master
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@master
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.1'
24
- s.add_runtime_dependency 'activesupport', '>= 5.1', '< 7.1'
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'
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'activerecord', '~> 7.1.0'
6
+
7
+ gemspec path: '..'
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Multidb
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
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.6.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: 2022-05-06 00:00:00.000000000 Z
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.1'
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.1'
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.1'
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.1'
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: