upsert 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 1.1.1 / 2012-12-03
2
+
3
+ * Bug fixes
4
+
5
+ * Removed inadvertent dependency on ActiveSupport - thanks @thbar! https://github.com/seamusabshere/upsert/issues/10
6
+
1
7
  1.1.0 / 2012-11-26
2
8
 
3
9
  * Enhancements
@@ -3,7 +3,7 @@ require 'zlib'
3
3
  class Upsert
4
4
  # @private
5
5
  class MergeFunction
6
- MAX_NAME_LENGTH = 63
6
+ MAX_NAME_LENGTH = 62
7
7
 
8
8
  class << self
9
9
  def execute(controller, row)
@@ -23,7 +23,7 @@ class Upsert
23
23
  if parts.length > MAX_NAME_LENGTH
24
24
  # maybe i should md5 instead
25
25
  crc32 = Zlib.crc32(parts).to_s
26
- [ parts.first(MAX_NAME_LENGTH-11), crc32 ].join
26
+ [ parts[0..MAX_NAME_LENGTH-10], crc32 ].join
27
27
  else
28
28
  parts
29
29
  end
@@ -2,8 +2,6 @@ class Upsert
2
2
  class MergeFunction
3
3
  # @private
4
4
  module Mysql
5
- MAX_NAME_LENGTH = 63
6
-
7
5
  def self.included(klass)
8
6
  klass.extend ClassMethods
9
7
  end
@@ -2,8 +2,6 @@ class Upsert
2
2
  class MergeFunction
3
3
  # @private
4
4
  module Postgresql
5
- MAX_NAME_LENGTH = 63
6
-
7
5
  def self.included(klass)
8
6
  klass.extend ClassMethods
9
7
  end
@@ -1,3 +1,3 @@
1
1
  class Upsert
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upsert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-core