acts_as_partitioned 0.0.2 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff28314db1efa3069fbdb9097112672045cd2b2a
4
- data.tar.gz: 3a7dcebc0758cc66aeedd53711e502f934c94d15
3
+ metadata.gz: e1bae583a1de9cdd9aa29174d904daf250dab8c7
4
+ data.tar.gz: 20180a2a8220e8a7adcebb6b1ee8363c73d10cb4
5
5
  SHA512:
6
- metadata.gz: 59b8231df8d42e6e7f86020afc2da307282c3b918fd7126a2b7c5f495a91d66e2e81c5b5ee9a81b5528d84e8f1887433c15cbde4e25b146b289ecf3029bf8dfb
7
- data.tar.gz: ed96751cc941bda70c2b766c25f21da0f6cd7fa81dbc1be6263725c9052c3408c0fb0580dd26321856aba92471391ba5da79a0a6d7dc77fa24ccf07c4baced21
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
 
@@ -58,8 +58,6 @@ module ActiveRecord
58
58
  case value
59
59
  when Date,Time,Timestamp
60
60
  value.strftime("%Y%m%d%H%M")
61
- when String
62
- handle_partition_value(value.to_time) rescue value
63
61
  else value
64
62
  end
65
63
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ActsAsPartitioned
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
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.2
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 00:00:00.000000000 Z
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