dumpable 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/dumpable.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dumpable"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Hunter"]
@@ -67,7 +67,7 @@ module Dumpable
67
67
  return nil unless cloned_attributes["id"].present?
68
68
  cloned_attributes["id"] += @id_padding
69
69
  key_values = cloned_attributes.collect{ |key,value| [key, dump_value_string(value)] }
70
- keys = key_values.collect{ |item| item[0].to_s }.join(", ")
70
+ keys = key_values.collect{ |item| "`#{item[0]}`" }.join(", ")
71
71
  values = key_values.collect{ |item| item[1].to_s }.join(", ")
72
72
 
73
73
  "INSERT INTO #{object.class.table_name} (#{ keys }) VALUES (#{ values });"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumpable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 3217337326136374916
148
+ hash: 2068781723192637983
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements: