inquisitive 4.0.1 → 4.0.2
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 +4 -4
- data/inquisitive.gemspec +1 -1
- data/lib/inquisitive/nil_class.rb +6 -0
- data/test/shared/nil_object_tests.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: babe3b49c82c2dc0d03c33cad9d0c2709b0581c5
|
4
|
+
data.tar.gz: 3e42ea3a9d89c1ca93dbc91932eca837ebe22f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2396438e92f6b4642799f1910634258dd30af2977d7dc1773958dda30688e9562ff48a37ab2f50a3b2c1c3c93a94959016ad9742d0680c6cd0e370895b40754
|
7
|
+
data.tar.gz: 939b32bdbe26da643e5cf5a9ec2af60a9a864a0fc9a94984f906663097548756ae53419c59469b3debb964f3e713296e0b81373841c61e18aa0ebc4cd3192300
|
data/inquisitive.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'inquisitive'
|
7
|
-
spec.version = '4.0.
|
7
|
+
spec.version = '4.0.2'
|
8
8
|
spec.authors = ['Chris Keele']
|
9
9
|
spec.email = ['dev@chriskeele.com']
|
10
10
|
spec.summary = 'Predicate methods for those curious about their datastructures.'
|
@@ -69,5 +69,11 @@ module NilObjectTests
|
|
69
69
|
def test_nil_coercable_to_empty_string
|
70
70
|
assert_equal nil_object.to_str, ""
|
71
71
|
end
|
72
|
+
def test_nil_coercable_to_empty_array
|
73
|
+
assert_equal nil_object.to_ary, []
|
74
|
+
end
|
75
|
+
def test_nil_coercable_to_empty_hash
|
76
|
+
assert_equal nil_object.to_hash, {}
|
77
|
+
end
|
72
78
|
|
73
79
|
end
|