tako 0.3.1 → 0.3.2
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/README.md +3 -2
- data/lib/tako/railties/databases.rake +5 -0
- data/lib/tako/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ca39127099a564246ad5d09d5a62bd56aa2c3ce
|
|
4
|
+
data.tar.gz: d4352705f48a0652b53e17d858f7de38450ae5b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41c6d58a96b436782fb1514bb0230ff85e724fcbac396cb4eb2af293551a3c786e43b7d093dbd533b5d56b127efd27c1b335c8bea5b839a50a70890a18bcbe1e
|
|
7
|
+
data.tar.gz: 11eafb366857e3ea10bfb61d9b9a1c9f7e7d277fa42ccfbf2829919045aa77cbc7d98c92c43d6f46fc67f1ccc99471e4d4434b0abc1663772e31265fb7961f5d
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Tako provides Database-Sharding features for ActiveRecord.
|
|
|
5
5
|
Respecting [Octopus](https://github.com/thiagopradi/octopus)
|
|
6
6
|
|
|
7
7
|
# Motivation
|
|
8
|
-
The main goal of Tako is
|
|
8
|
+
The main goal of Tako is implementing sharding features with less ActiveRecord-dependent; catching up Rails version up.
|
|
9
9
|
And also, Tako supports migration from Octopus because it is no longer maintained.
|
|
10
10
|
|
|
11
11
|
|
|
@@ -33,7 +33,7 @@ Or install it yourself as:
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
## How to use Tako?
|
|
36
|
-
First, you need to create a config file, `shards.yml`, inside your config/ directory.
|
|
36
|
+
First, you need to create a [config file](https://github.com/the40san/tako/wiki/Config), `shards.yml`, inside your config/ directory.
|
|
37
37
|
Also you can override config file path with environment variable.
|
|
38
38
|
|
|
39
39
|
### Syntax
|
|
@@ -105,6 +105,7 @@ end
|
|
|
105
105
|
## TODO
|
|
106
106
|
|
|
107
107
|
* Make more independent of ActiveRecord implementation.
|
|
108
|
+
* Use `prepend` instead of alias_method chain when other gem could handle that.
|
|
108
109
|
|
|
109
110
|
## Development
|
|
110
111
|
|
|
@@ -46,6 +46,11 @@ namespace :db do
|
|
|
46
46
|
ActiveRecord::SchemaMigration.create!(:version => proxy.version.to_s)
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
|
+
|
|
50
|
+
if defined?(ActiveRecord::InternalMetadata)
|
|
51
|
+
ActiveRecord::InternalMetadata.create_table
|
|
52
|
+
ActiveRecord::InternalMetadata[:environment] = ActiveRecord::Migrator.current_environment
|
|
53
|
+
end
|
|
49
54
|
end
|
|
50
55
|
end
|
|
51
56
|
|
data/lib/tako/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tako
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masashi AKISUE
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|