container 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e109ffe065283c8d6753670448d1bead7a9e641f
4
- data.tar.gz: 34639bc46c3f8d1f356bbb5e9d0f7e125f6220b0
3
+ metadata.gz: 45d84293e39dfe86c486d890b48ed9d7ef44bf51
4
+ data.tar.gz: 1646d2ad850d63e71f664cfe7e2e521615131d0f
5
5
  SHA512:
6
- metadata.gz: f209a30550e51fd0cbfb669c45324d8f02f87d32345d373ab375e66091caf71921d3452d2fb611d9190edb1228f224c842f63cb4484d6cedb7a2a5ebd73755b8
7
- data.tar.gz: 4a4de71691b15e68aad6c5e97f52c0b54730c5a3aec737faee53de6e9c2062a87bd7c72d6d2afd2ce4ac01392d39dca90577505d3614a843a80e76f719a01e28
6
+ metadata.gz: ff1c7088cb7d02c317a31a6d9c055dfd8b8146f17377da6f96e14f1c207273b354bc48652c5fd5e2f3c0123c56a0b7eb718c38343ec4576fc03f20f34cc20d2c
7
+ data.tar.gz: c58151925c1a972ca282e756e834c2cfbe4e6b0f0ef6bbcd98eaec085fad890eac5c14ed9011b0be84eb71eb40f666c6b5a71a58ac9814151e394755125cc1c6
@@ -1,3 +1,3 @@
1
1
  class Container
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/container.rb CHANGED
@@ -31,7 +31,7 @@ class Container
31
31
  if key.is_a?(Numeric)
32
32
  @array[key] || NullObject.new
33
33
  else
34
- @hash[key]
34
+ @hash[key] || NullObject.new
35
35
  end
36
36
  end
37
37
 
@@ -71,7 +71,7 @@ class Container
71
71
  @hash[hash_key] = arguments.first
72
72
  else
73
73
  if @hash.keys.include?(hash_key)
74
- @hash[hash_key]
74
+ @hash[hash_key] || NullObject.new
75
75
  else
76
76
  NullObject.new
77
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Arvin Lat