ar-multidb 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/LICENSE +1 -1
- data/ar-multidb.gemspec +2 -1
- data/lib/multidb/version.rb +1 -1
- data/spec/balancer_spec.rb +4 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcc496d5d9335e9f71ad121e3ae6eaa4be56a0fc0d28b95b8ec9316b52f6d99
|
4
|
+
data.tar.gz: ce582565fa33aacb84c073f870034a2fb04d6a629f0c311d0d95d8548a31e817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b023104b3d3f4a50c5db4aa1ffb0a68bcef8af7eca53be1e2c05e7d9eb65213cf8cb25f82cec3dbb4ffe11844fd20da09642f32912580906b929a6d505e2f3c
|
7
|
+
data.tar.gz: 75a697a0f62a8c7219a721d5a0b2390d94521f5c7b48676c17ff8bee958632c8d1f3abf96e2950b69c4a489cb8348136a853f6f2f02522f8b358f6a3aaacdec8
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ 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.5.1]
|
8
|
+
### Fixed
|
9
|
+
- corrected licenses
|
10
|
+
### Changed
|
11
|
+
- updated to newer rubocop
|
12
|
+
|
7
13
|
## [0.5.0]
|
8
14
|
### Changed
|
9
15
|
- added rails 6 support
|
data/LICENSE
CHANGED
data/ar-multidb.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ['alex@bengler.no', 'urkle@outoforder.cc']
|
11
11
|
s.homepage = ''
|
12
12
|
s.summary = s.description = 'Multidb is an ActiveRecord extension for switching between multiple database connections, such as primary/replica setups.'
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
15
|
s.files = `git ls-files`.split("\n")
|
15
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -23,6 +24,6 @@ Gem::Specification.new do |s|
|
|
23
24
|
|
24
25
|
s.add_development_dependency 'rake', '~> 12.0'
|
25
26
|
s.add_development_dependency 'rspec', '~> 3.8'
|
26
|
-
s.add_development_dependency 'rubocop', '~>
|
27
|
+
s.add_development_dependency 'rubocop', '~> 1.12.1'
|
27
28
|
s.add_development_dependency 'sqlite3', '~> 1.3'
|
28
29
|
end
|
data/lib/multidb/version.rb
CHANGED
data/spec/balancer_spec.rb
CHANGED
@@ -96,11 +96,13 @@ describe 'Multidb.balancer' do
|
|
96
96
|
end
|
97
97
|
|
98
98
|
it 'returns results instead of relation' do
|
99
|
-
|
99
|
+
foobar_class = Class.new(ActiveRecord::Base) do
|
100
|
+
self.table_name = 'foo_bars'
|
101
|
+
end
|
100
102
|
res = Multidb.use(:replica1) do
|
101
103
|
ActiveRecord::Migration.verbose = false
|
102
104
|
ActiveRecord::Schema.define(version: 1) { create_table :foo_bars }
|
103
|
-
|
105
|
+
foobar_class.where(id: 42)
|
104
106
|
end
|
105
107
|
res.should eq []
|
106
108
|
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.5.
|
4
|
+
version: 0.5.1
|
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: 2021-
|
12
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -85,14 +85,14 @@ dependencies:
|
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 1.12.1
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 1.12.1
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: sqlite3
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,7 +140,8 @@ files:
|
|
140
140
|
- spec/helpers.rb
|
141
141
|
- spec/spec_helper.rb
|
142
142
|
homepage: ''
|
143
|
-
licenses:
|
143
|
+
licenses:
|
144
|
+
- MIT
|
144
145
|
metadata: {}
|
145
146
|
post_install_message:
|
146
147
|
rdoc_options: []
|