lib/itrp/client.rb in itrp-client-1.0.4 vs lib/itrp/client.rb in itrp-client-1.0.5

- old
+ new

@@ -237,10 +237,12 @@ when :DateTime then value.new_offset(0).iso8601 when :Date then value.strftime("%Y-%m-%d") when :Time then value.strftime("%H:%M") # do not convert arrays in put/post requests as squashing arrays is only used in filtering when :Array then escape ? value.map{ |v| typecast(v, escape) }.join(',') : value - else value.to_s + # TODO: temporary for special constructions to update contact details, see Request #1444166 + when :Hash then escape ? value.to_s : value + else value.to_json end end # Send a request to ITRP and wrap the HTTP Response in an Itrp::Response # Guaranteed to return a Response, thought it may be +empty?+