fortytwo 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef420af91ffca023e757643f48c8e771d4ba450b
4
- data.tar.gz: 7dbee2110a58c69d12a868eebd27076e22e9cad0
3
+ metadata.gz: ea66e83dcd6402f67dd91c9a8c34bbd1cd87f689
4
+ data.tar.gz: 646bb4989b21d67f11124e85af06885bff07f432
5
5
  SHA512:
6
- metadata.gz: a3636e5be03897bd002995d57394e1528943fa60ebd9db0b69b6437afc389bdbf7f22580932b838e9c0e08a10bfef7eb659dfac7fedcd1af9867ae17fb63ca54
7
- data.tar.gz: ef72e2ff4858c245d6f17b62bf677e88354ac79ceff81deab444d4987c15d04d912441b8fb5cebaa321e733327dfce6c5e9aa10cf355c28b7af857c9b49d9efc
6
+ metadata.gz: 2aacba2ac1ce3a80eb51d9d9625053ef0781ec2459fa5c06f3f2f801994ed716013d07195955145956890a0c40007b6c05db3b9e3673e717ed27177cb4962974
7
+ data.tar.gz: 8efe61a35b9bcc4d3143e7cd5d427197b1adb4bfb9fbc31712ba659ec83b0e7ea611341af420125be746aff94f70a634d0a043f547ffb7ca81070ad7349b3ce2
@@ -3,9 +3,10 @@ module FortyTwo
3
3
  class Base
4
4
  def initialize(json)
5
5
  return if json.nil?
6
+ return instance_variable_set("@user_sessions", json) if json.is_a?(Array)
6
7
 
7
8
  json.each do |key, value|
8
- key = key.chomp('?') if !key.is_a?(Hash) || key.end_with?('?')
9
+ key = key.chomp('?') if key.end_with?('?')
9
10
  instance_variable_set("@#{key}", value)
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module FortyTwo
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortytwo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Fernandez