tako 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 35e7110f9ba9f2ebd33c07036b4dc366b1341e59
4
- data.tar.gz: 1b79b49722ba608aff2f3a1d5c737b5cb50a1eef
3
+ metadata.gz: 222fb3253451467657eca89270aebb914ec6f785
4
+ data.tar.gz: e179cba50eb567197df108f95542aa12853387b1
5
5
  SHA512:
6
- metadata.gz: 96a5f2c3f545f976d261f54cf53575655d3daa9bfd7c52004bd3e106432264d3f231b2c933de84d202e04d717b3c9dc3db960466cc7b374d3cf7fcb2b03014a7
7
- data.tar.gz: 1dcd48453db7c01125c93794abb54815ed8e883ba4dbd179a527651707b570fe15675b5a782a93a6edf1babaeeabb582d0d5097bd27e1c4af2ce738380c6f58a
6
+ metadata.gz: a3fdaf0af06a880e65332602acfd74f12f48aa82d669145490243466da570605cd48bfa30e43eaa9af4b912209ce4855fc1274537f153d28cbe96809469f9d7a
7
+ data.tar.gz: e93938904ae85da36db4b00d7d612a9e98d1a830bc709b490b46d361c4b5f47119c8f428d31109805848985c66d444c329837defab18d151dd629f1ce44f83ca
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Tako
2
- [![CircleCI](https://circleci.com/gh/the40san/tako/tree/master.svg?style=svg)](https://circleci.com/gh/the40san/tako/tree/master)
2
+ [![Build Status](https://travis-ci.org/the40san/tako.svg?branch=master)](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)
@@ -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) do
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
@@ -1,3 +1,3 @@
1
1
  module Tako
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi AKISUE