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 CHANGED
@@ -1 +1 @@
1
- 0.5.7
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
- keys = hash.keys.map{|i| i.to_i if i.respond_to?(:to_i)}.sort
62
- keys == hash.keys.size.times.to_a
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "logical_model"
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dwayne Macgowan"]
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.7
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: 364483183
375
+ hash: 77340669
376
376
  required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  none: false
378
378
  requirements: