cb_nitride 0.1.31 → 0.1.32

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: 0a0d0f2e038d07191884632215dca28d91c85b6f
4
- data.tar.gz: 0c5f1e7fc76928f8f1d270d816da68252db2b31c
3
+ metadata.gz: f2da73b94a5cfc8a5f52ccfd8fcfb5262de8a305
4
+ data.tar.gz: 035458a14fa84b27acad39c5c4e2f0394990f92d
5
5
  SHA512:
6
- metadata.gz: dac6d8989fc1497145ce403ecbca314f2fa05575a3a7332ab7d9ad64506ce495ba69714f3bebce103754cba0c8ecd153684431d095937a48a055c9a3870f1a8b
7
- data.tar.gz: 3672612f4147ec6f5274b52b5b0a3c3f3fb4ab11b66ee6c949c2b008fdeb9866e6dbe88f37ff2dc64f47d3de6035e31cfdf4372e61acc955609e3450222fb15e
6
+ metadata.gz: 32a27ef9211ab230e44dfeca6f12cef9cd9549cfc645b307d9d73b672c7512b24342b7fe3da197e9c58a2ea3d539ada245bcc48c3fd38a633194bdecc055b6c6
7
+ data.tar.gz: 8a62e147cfe0e99691801a20f4bb6ad312904db42137d0ddf2fdd313ece54da0adad730e7f8504e9f8327022b4b29da131ec885b4ac6025d0f3d7485625adfb5
@@ -0,0 +1,14 @@
1
+ module CbNitride
2
+ class NullItem
3
+ attr_reader :diamond_number
4
+
5
+ def initialize(diamond_number)
6
+ @diamond_number = diamond_number
7
+ end
8
+
9
+ def nil?
10
+ true
11
+ end
12
+
13
+ end
14
+ end
@@ -21,7 +21,7 @@ module CbNitride
21
21
  if item.valid_diamond_number?
22
22
  item.spawn_item
23
23
  else
24
- return nil
24
+ return NullItem.new(diamond_number)
25
25
  end
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb_nitride
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis
@@ -103,6 +103,7 @@ files:
103
103
  - lib/cb_nitride/exceptions.rb
104
104
  - lib/cb_nitride/hasher_methods.rb
105
105
  - lib/cb_nitride/module_methods.rb
106
+ - lib/cb_nitride/null_item.rb
106
107
  - lib/cb_nitride/private_hasher.rb
107
108
  - lib/cb_nitride/public_hasher.rb
108
109
  - lib/cb_nitride/title_formatter.rb