active_shard 0.2.1 → 0.2.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.
@@ -17,12 +17,17 @@ module ActiveShard
17
17
  :quote_table_name,
18
18
  :quote_value,
19
19
  :disconnect!,
20
+ :sanitize_limit,
20
21
  :quote, :to => :target
21
22
 
22
23
  def initialize( target )
23
24
  @target = target
24
25
  end
25
26
 
27
+ def cache
28
+ yield
29
+ end
30
+
26
31
  def method_missing( sym, *args, &block )
27
32
  raise ::ActiveShard::NoActiveShardError
28
33
  end
@@ -47,9 +47,9 @@ module ActiveShard
47
47
  shards.each_pair do |shard, spec|
48
48
  ( definitions[ environment.to_sym ] ||= [] ) << self.new( shard.to_sym,
49
49
  spec.merge( :schema => schema.to_sym ) )
50
- end
51
- end
52
- end
50
+ end unless shards.nil?
51
+ end unless schemas.nil?
52
+ end unless hash.nil?
53
53
 
54
54
  definitions
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveShard
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: active_shard
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brasten Sager
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-09-02 00:00:00 Z
14
+ date: 2011-09-13 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport