logical_model 0.5.7 → 0.5.8
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.
- data/VERSION +1 -1
- data/lib/typhoeus_fix/array_decoder.rb +6 -2
- data/logical_model.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.8
|
|
@@ -58,8 +58,12 @@ module TyphoeusFix
|
|
|
58
58
|
# @return [Boolean] True if its a encoded Array, else false.
|
|
59
59
|
def encoded?(hash)
|
|
60
60
|
return false if hash.empty?
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
if hash.keys.size > 1
|
|
62
|
+
keys = hash.keys.map{|i| i.to_i if i.respond_to?(:to_i)}.sort
|
|
63
|
+
keys == hash.keys.size.times.to_a
|
|
64
|
+
else
|
|
65
|
+
hash.keys.first =~ /0/
|
|
66
|
+
end
|
|
63
67
|
end
|
|
64
68
|
|
|
65
69
|
# If the Hash is an array encoded by typhoeus an array is returned
|
data/logical_model.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logical_model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -372,7 +372,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
372
372
|
version: '0'
|
|
373
373
|
segments:
|
|
374
374
|
- 0
|
|
375
|
-
hash:
|
|
375
|
+
hash: 77340669
|
|
376
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
377
|
none: false
|
|
378
378
|
requirements:
|