activerecord-turntable 2.3.0 → 2.3.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
  SHA1:
3
- metadata.gz: 0183e069709e21d8fd4f93be3b443e9dab8ae88c
4
- data.tar.gz: c2f793eebeaa9d49278d09892eef7060fddcd757
3
+ metadata.gz: c9925e8594c361459fef18234ff7b4e15d712f5c
4
+ data.tar.gz: a8d958172d8917882fc7755956e8199179338fb7
5
5
  SHA512:
6
- metadata.gz: 3e2305795803f74373a78c8bae47f24054b8abc358d54e49b106f09993b262e96ea8081d37268db7e7c38b5c56a4701720b1c2a3d09669bc5655d38cf20e6b22
7
- data.tar.gz: c17da81b6c308cb370183d96edfff8b39a9f4431f9af6e76b3e2778c80f414c6cdab1172db34ff0e7e62899bb64619961f658915a24f7988bb2d4cb4151639af
6
+ metadata.gz: d7689b939906852fd6218d0ce4168c3f55fcb10c817abbf07d910f32d3b7596cc9e3fa328061658b8396c2c624629679fa826791b97e409bede0f8533d176769
7
+ data.tar.gz: 5b9efb2e4302bdac577741f69d6290a4fd0facc30920d9c179efb0625741e07abc04f505b0ab6586405012cba0a3b0a266bfe0df3dc145ce4428c35c602640c9
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ rvm:
4
4
  - 2.0.0
5
5
  - 2.1
6
6
  - 2.2
7
+ - 2.3.0
7
8
  - ruby-head
8
9
  gemfile:
9
10
  - gemfiles/rails4_0.gemfile
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## activerecord-turntable 2.3.1 ##
2
+
3
+ ### Improvement
4
+
5
+ * ConnectionProxy uses a method_missing, so it should adapt respond_to? (thx, misoobu)
6
+
1
7
  ## activerecord-turntable 2.3.0 ##
2
8
 
3
9
  ### Features
data/README.md CHANGED
@@ -47,7 +47,7 @@ Shard is a database which is horizontal partitioned.
47
47
 
48
48
  ### Cluster
49
49
 
50
- Cluster of shards. i.e) set of userdb1, userdb2, userdb3
50
+ Cluster of shards. i.e) set of userdb1, userdb2, userdb3.
51
51
  Shards in the same cluster should have the same schema structure.
52
52
 
53
53
  ### Master
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'activerecord', "~> 4.0.0"
4
- gem 'activesupport', "~> 4.0.0"
3
+ gem "activerecord", "~> 4.0.0"
4
+ gem "activesupport", "~> 4.0.0"
5
+ gem "mysql2", "~> 0.3.20"
5
6
 
6
- gemspec :path => '../'
7
+ gemspec :path => "../"
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'activerecord', "~> 4.1.0"
4
- gem 'activesupport', "~> 4.1.0"
3
+ gem "activerecord", "~> 4.1.0"
4
+ gem "activesupport", "~> 4.1.0"
5
+ gem "mysql2", "~> 0.3.20"
5
6
 
6
- gemspec :path => '../'
7
+ gemspec :path => "../"
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'activerecord', "~> 4.2.0"
4
- gem 'activesupport', "~> 4.2.0"
3
+ gem "activerecord", "~> 4.2.0"
4
+ gem "activesupport", "~> 4.2.0"
5
+ gem "mysql2", "~> 0.3.20"
5
6
 
6
- gemspec :path => '../'
7
+ gemspec :path => "../"
@@ -68,6 +68,10 @@ module ActiveRecord::Turntable
68
68
  end
69
69
  end
70
70
 
71
+ def respond_to_missing?(method, include_private = false)
72
+ connection.send(:respond_to?, method, include_private)
73
+ end
74
+
71
75
  def to_sql(arel, binds = [])
72
76
  master.connection.to_sql(arel, binds)
73
77
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Turntable
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-turntable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gussan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-28 00:00:00.000000000 Z
12
+ date: 2016-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -471,7 +471,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
471
471
  version: '0'
472
472
  requirements: []
473
473
  rubyforge_project: activerecord-turntable
474
- rubygems_version: 2.4.5
474
+ rubygems_version: 2.5.1
475
475
  signing_key:
476
476
  specification_version: 4
477
477
  summary: ActiveRecord sharding extension