inquisitive 4.0.1 → 4.0.2

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: 29f4741cd183b7dec38982c69c052fb110100dae
4
- data.tar.gz: 1817fdcfcf9abdb0c0c345881789097dcda517d6
3
+ metadata.gz: babe3b49c82c2dc0d03c33cad9d0c2709b0581c5
4
+ data.tar.gz: 3e42ea3a9d89c1ca93dbc91932eca837ebe22f4a
5
5
  SHA512:
6
- metadata.gz: 4c71a6dd16ddf4da130641cfa791fe5c53d84ae1a9b886aff048d5619aecf6279b69fc3e0bc8a9efb2293402a2d5cda341cdb1594b4682dc64cc5b6747723ca3
7
- data.tar.gz: b02442864df34a6a8eced15f51d5a7f0ca7a4988220efb6fe92e1acb178ce548fa5a5f3e7142d32c6452bd76f51193e167208633887a35ea6519a4c4408b449d
6
+ metadata.gz: e2396438e92f6b4642799f1910634258dd30af2977d7dc1773958dda30688e9562ff48a37ab2f50a3b2c1c3c93a94959016ad9742d0680c6cd0e370895b40754
7
+ data.tar.gz: 939b32bdbe26da643e5cf5a9ec2af60a9a864a0fc9a94984f906663097548756ae53419c59469b3debb964f3e713296e0b81373841c61e18aa0ebc4cd3192300
@@ -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.1'
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.'
@@ -38,6 +38,12 @@ module Inquisitive
38
38
  def to_str
39
39
  ""
40
40
  end
41
+ def to_ary
42
+ []
43
+ end
44
+ def to_hash
45
+ {}
46
+ end
41
47
 
42
48
  private
43
49
 
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inquisitive
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Keele