totter 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/totter/transport/http.rb +5 -2
- data/lib/totter/version.rb +1 -1
- metadata +2 -2
@@ -88,8 +88,11 @@ module Totter
|
|
88
88
|
return Hashie::Mash.new(object) if object.is_a? Hash
|
89
89
|
|
90
90
|
# Array
|
91
|
-
|
92
|
-
|
91
|
+
begin
|
92
|
+
return object.map { |h| Hashie::Mash.new(h) } if object.is_a? Array
|
93
|
+
rescue
|
94
|
+
# sometimes, for things like string arrays, we'll end up with an error
|
95
|
+
end
|
93
96
|
# Fallback incase it's not a hash or array
|
94
97
|
object
|
95
98
|
end
|
data/lib/totter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: totter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-02-
|
14
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: multi_json
|