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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 211ef81c6242f5424dbd0574b717bcd70d8f8cb4a7130198189d778491288000
4
- data.tar.gz: 884334c8cd11d7a1715260f958304e08af23b6d7ce1129d88454b2acf979669f
3
+ metadata.gz: ffcc496d5d9335e9f71ad121e3ae6eaa4be56a0fc0d28b95b8ec9316b52f6d99
4
+ data.tar.gz: ce582565fa33aacb84c073f870034a2fb04d6a629f0c311d0d95d8548a31e817
5
5
  SHA512:
6
- metadata.gz: 9f7f7bb26d97fe1ec7a835e6a3ddc9e360e3d444b69c3a0b49c4001b0d06887f8f62ee88bdfc15e336e967fc913bc4e040c761788560c46b4291990edcf7fcc3
7
- data.tar.gz: 0d29556db56b3686666fe3378cb7fa7e2b5a3b8cca4798be7412af4dc93b685275e09118d187768168efc72a4f983170bd2a84d5f26a0b6f79c19d618431995c
6
+ metadata.gz: 1b023104b3d3f4a50c5db4aa1ffb0a68bcef8af7eca53be1e2c05e7d9eb65213cf8cb25f82cec3dbb4ffe11844fd20da09642f32912580906b929a6d505e2f3c
7
+ data.tar.gz: 75a697a0f62a8c7219a721d5a0b2390d94521f5c7b48676c17ff8bee958632c8d1f3abf96e2950b69c4a489cb8348136a853f6f2f02522f8b358f6a3aaacdec8
data/.rubocop.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 2.4
3
+ SuggestExtensions: false
4
+ NewCops: disable
3
5
  Exclude:
4
6
  - '**/vendor/**/*'
5
7
 
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 [name of plugin creator]
1
+ Copyright (c) 2011 Alexander Staubo
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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', '~> 0.88.0'
27
+ s.add_development_dependency 'rubocop', '~> 1.12.1'
27
28
  s.add_development_dependency 'sqlite3', '~> 1.3'
28
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Multidb
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
@@ -96,11 +96,13 @@ describe 'Multidb.balancer' do
96
96
  end
97
97
 
98
98
  it 'returns results instead of relation' do
99
- class FooBar < ActiveRecord::Base; end
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
- FooBar.where(id: 42)
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.0
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-06-08 00:00:00.000000000 Z
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: 0.88.0
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: 0.88.0
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: []