tako 0.4.0 → 0.4.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 +4 -4
- data/README.md +1 -1
- data/lib/tako/query_chain.rb +2 -4
- data/lib/tako/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 222fb3253451467657eca89270aebb914ec6f785
|
|
4
|
+
data.tar.gz: e179cba50eb567197df108f95542aa12853387b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3fdaf0af06a880e65332602acfd74f12f48aa82d669145490243466da570605cd48bfa30e43eaa9af4b912209ce4855fc1274537f153d28cbe96809469f9d7a
|
|
7
|
+
data.tar.gz: e93938904ae85da36db4b00d7d612a9e98d1a830bc709b490b46d361c4b5f47119c8f428d31109805848985c66d444c329837defab18d151dd629f1ce44f83ca
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Tako
|
|
2
|
-
[](https://travis-ci.org/the40san/tako)
|
|
3
3
|
|
|
4
4
|
Tako provides Database-Sharding features for ActiveRecord.
|
|
5
5
|
Respecting [Octopus](https://github.com/thiagopradi/octopus)
|
data/lib/tako/query_chain.rb
CHANGED
|
@@ -8,12 +8,10 @@ module Tako
|
|
|
8
8
|
@base_object = base_object
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
def method_missing(method, *args)
|
|
11
|
+
def method_missing(method, *args, &block)
|
|
12
12
|
@proxy.with_shard do
|
|
13
13
|
result = if block_given?
|
|
14
|
-
base_object.send(method, *args)
|
|
15
|
-
yield
|
|
16
|
-
end
|
|
14
|
+
base_object.send(method, *args, &block)
|
|
17
15
|
else
|
|
18
16
|
base_object.send(method, *args)
|
|
19
17
|
end
|
data/lib/tako/version.rb
CHANGED