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 +1 -1
- data/dumpable.gemspec +1 -1
- data/lib/dumpable/dumper.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/dumpable.gemspec
CHANGED
data/lib/dumpable/dumper.rb
CHANGED
@@ -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]
|
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.
|
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:
|
148
|
+
hash: 2068781723192637983
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|