Skip to content

Commit a49a6e9

Browse files
committed
fixed symbol/string issue
1 parent ddc1749 commit a49a6e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/qbxml/hash.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,12 @@ def self.typecast(schema, xpath, value)
128128

129129
def self.deep_convert(hash, opts = {}, &block)
130130
hash.inject(self.new) do |h, (k,v)|
131+
k = k.to_s
131132
ignored = IGNORED_KEYS.include?(k)
132133
if ignored
133134
h[k] = v
134135
else
135-
key = block_given? ? yield(k.to_s) : k
136+
key = block_given? ? yield(k) : k
136137
h[key] = \
137138
case v
138139
when Hash

lib/qbxml/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class Qbxml
2-
VERSION = "0.1.4"
2+
VERSION = "0.1.5"
33
end

0 commit comments

Comments
 (0)