upsert 2.0.0 → 2.0.1

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 2.0.1 / 2013-07-24
2
+
3
+ * Bug fixes
4
+
5
+ * Rookie mistake - gsub!'ed an input arg, sorry. Blew up on a frozen string, thank goodness.
6
+
1
7
  2.0.0 / 2013-07-24
2
8
 
3
9
  * Breaking changes
@@ -7,7 +7,7 @@ class Upsert
7
7
  when Array
8
8
  # pg array escaping lifted from https://github.com/tlconnor/activerecord-postgres-array/blob/master/lib/activerecord-postgres-array/array.rb
9
9
  '{' + v.map do |vv|
10
- vv = vv.to_s
10
+ vv = vv.to_s.dup
11
11
  vv.gsub! /\\/, '\&\&'
12
12
  vv.gsub! /'/, "''"
13
13
  vv.gsub! /"/, '\"'
@@ -1,3 +1,3 @@
1
1
  class Upsert
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.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: 2.0.0
4
+ version: 2.0.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: 2013-07-24 00:00:00.000000000 Z
12
+ date: 2013-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-core