acts_as_partitioned 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/acts/partitioned/factory.rb +0 -2
- data/lib/active_record/acts/partitioned/key.rb +0 -2
- data/lib/active_record/acts/partitioned/structure.rb +0 -1
- data/lib/acts_as_partitioned/version.rb +1 -1
- metadata +2 -3
- data/lib/active_record/acts/partitioned/.key.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1bae583a1de9cdd9aa29174d904daf250dab8c7
|
4
|
+
data.tar.gz: 20180a2a8220e8a7adcebb6b1ee8363c73d10cb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc359a0c01ead73ebdacae4712417c940ebfe09c6b18a46a02b5488ba1de64481cf68d6f859638734f8c7f6ad9f54eeb564bbd341c470c20bf85ee0bbf2ab0d
|
7
|
+
data.tar.gz: 4ad92be099bd471702af8f30eec35de23bf936533d953410dc7efc3b8089243db216fbd96a82f3b1087be32433a7c11eaef5b0f83cb72741e22914ce9dfbdc78
|
@@ -88,7 +88,6 @@ module ActiveRecord
|
|
88
88
|
hash = _hash.symbolize_keys
|
89
89
|
conditions = {}
|
90
90
|
@keys.each do |key|
|
91
|
-
puts "key = #{key.inspect}"
|
92
91
|
value = hash[key.column.to_sym]
|
93
92
|
raise "No value provided for #{key.column}" unless value
|
94
93
|
case key.type
|
@@ -100,7 +99,6 @@ module ActiveRecord
|
|
100
99
|
conditions[:"#{key.column}_exclusive"] = value.exclude_end?
|
101
100
|
end
|
102
101
|
end
|
103
|
-
puts "conditions = #{conditions.inspect}"
|
104
102
|
partition_class.find_by(conditions)
|
105
103
|
end
|
106
104
|
|
@@ -4,7 +4,6 @@ module ActiveRecord
|
|
4
4
|
class Structure < ActiveRecord::Migration
|
5
5
|
def self.init_partition_catalog(model, keys, options = {})
|
6
6
|
create_table("#{model.table_name}_partitions", :force => options[:force]) do |t|
|
7
|
-
puts "keys are '#{keys.inspect}'"
|
8
7
|
keys.each do |key|
|
9
8
|
case key.type
|
10
9
|
when :discrete
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_partitioned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Draper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- acts_as_partitioned.gemspec
|
54
54
|
- lib/active_record/acts/partitioned.rb
|
55
|
-
- lib/active_record/acts/partitioned/.key.rb.swp
|
56
55
|
- lib/active_record/acts/partitioned/cache/partition_cache.rb
|
57
56
|
- lib/active_record/acts/partitioned/cache/partition_cache_entry.rb
|
58
57
|
- lib/active_record/acts/partitioned/cache/partition_cache_entry_factory.rb
|
Binary file
|