polo 0.4.0 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 483557d0954078851b9347111a7a12f0b05c8e0f
4
- data.tar.gz: 2b8a51a7311f52430395643d5e0ec87ed5aecd3e
3
+ metadata.gz: 93d97d6214a9996ab4d60db51dac14a7514ccfae
4
+ data.tar.gz: a0937d10b02b9ea5121ed3527d8b7f4c628a602d
5
5
  SHA512:
6
- metadata.gz: 040ec1e967f3b2fd5d05f161da7d9690949c4e1aa0afe34d302c9fc35237b34ac54aaa6c3ff629191c1848c888588d58993dcd594fc7fe7a1f9a07f824025c21
7
- data.tar.gz: c4b15706f954e20f09f7a59048bf4d999cdd7b5000d5fcbcd0c22f2860ca2eb95a20592a46e11c27d543f2add93782d531d07d3fa43c7ea3d6efb80003b9a00d
6
+ metadata.gz: d1d44682ff8d768dbf124e2972d5783ab20a70b0e8efb88746aab542661b15d5ec20c3f7f9a95b4d82ec98330f260d589f21a230bac993d6910e32db9fb4e7e4
7
+ data.tar.gz: 2f8daca89230ddf32012e8489275048c1af86912dd22ae4c8299b5e725b381b6b27c06bd6a33775df0c7afc3b4a759135857ab676c2753707dd5292232bcf310
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.5
@@ -1,3 +1,12 @@
1
+ ## 0.4.1
2
+
3
+ ### Breaking Changes
4
+
5
+ - None
6
+
7
+ ### Fixed
8
+ - [#42](https://github.com/IFTTT/polo/pull/42) Escape columns in DUPLICATE KEY statements
9
+
1
10
  ## 0.4.0
2
11
 
3
12
  ### Breaking Changes
@@ -5,7 +5,7 @@ module Polo
5
5
  insert_and_record = inserts.zip(records)
6
6
  insert_and_record.map do |insert, record|
7
7
  values_syntax = record.attributes.keys.map do |key|
8
- "#{key} = VALUES(#{key})"
8
+ "`#{key}` = VALUES(`#{key}`)"
9
9
  end
10
10
 
11
11
  on_dup_syntax = "ON DUPLICATE KEY UPDATE #{values_syntax.join(', ')}"
@@ -1,3 +1,3 @@
1
1
  module Polo
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Netto Farah
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.4.6
149
+ rubygems_version: 2.4.5.1
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Bring life back to your development environment with samples from production