smacks-savon 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/savon/response.rb +1 -1
  2. metadata +1 -1
@@ -153,7 +153,7 @@ module Savon
153
153
  # case a matching public method and a key from the Hash could be found.
154
154
  def shadow_core_methods
155
155
  @@core_methods_to_shadow.each do |method|
156
- if self.public_methods.include?(method.to_s) && value_from_hash(method)
156
+ if self.public_methods.include?(method.to_s) && @hash.kind_of?(Hash) && value_from_hash(method)
157
157
  self.class.send(:define_method, method) { value_from_hash(method) }
158
158
  end
159
159
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smacks-savon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington