tako 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 251999f9587d91e10a4124565e939a832f1a07da
4
- data.tar.gz: 4161bbab1056d2c22a2984fd4b4429f73f51f4da
3
+ metadata.gz: 4ca39127099a564246ad5d09d5a62bd56aa2c3ce
4
+ data.tar.gz: d4352705f48a0652b53e17d858f7de38450ae5b7
5
5
  SHA512:
6
- metadata.gz: 80506c988bd63b6b3a437c16998a79bccd22126e6b667e5f2fd917d097f44488ba52f1a615aea3c86f0d811275a00c9bb53e42d5dd807ebf2495f57393243f54
7
- data.tar.gz: 5473bc23a5dcfaf1d96bb437c4d3b7796fce09e816b2226a02406a0bed008859b86b48e0df1f14417a5a4a577261ace70daa58874414e556a6c046d297ef8dc8
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 implementing sharding features with less ActiveRecord-dependent; catching up Rails version up.
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
@@ -1,3 +1,3 @@
1
1
  module Tako
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-10-21 00:00:00.000000000 Z
11
+ date: 2016-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord