cb_nitride 0.1.23 → 0.1.24

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: d6b494e27adcf878a9145ac4e22333026bec9189
4
- data.tar.gz: cb2a3b2b03bc0d938d7ed2895901140807521ec1
3
+ metadata.gz: 5c332141afb2bb1acd5ec469cb08352cd1b30a64
4
+ data.tar.gz: 5455f2dd927e4867ff0165ca50a23fe84229df11
5
5
  SHA512:
6
- metadata.gz: 1707bad69271bef8b1540058d546642a37c02e14c9e708b2dfbd0a98a3b915edc827d88c8627e71a923c0ac015d7926b2b62fb75c8d815f161f73d811f6286cd
7
- data.tar.gz: 98ec263372161f6f5cc44bfa7ce6367a971890b51ffe320693436692668f24b64f968f5d8874f5c2f32f5fc16671f187f1e1dfb02e54f5ecbe0df341b40e508a
6
+ metadata.gz: 4cce864de00d661e0173c53607549d28ceab664a8e5799e0e0b8671c0c031b963130c48ed2167b5b8cb5a1c77d57b5c1802bc30d517be70174b67bea065eec78
7
+ data.tar.gz: dcfa3631af22b902334a6158d519e20e71c63787bf7eb0e447931056992a0e452a6d601784762960b368dd2309ca8562bde7d4d3e4093357ace8a6f6099ce926
@@ -21,7 +21,7 @@ module CbNitride
21
21
  def special_number
22
22
  @_special_number ||=
23
23
  match = clean_title.match(/#\S+/).to_s.gsub('#', '').strip
24
- if match.empty?
24
+ if match.empty? || match.nil?
25
25
  nil
26
26
  else
27
27
  match
@@ -31,7 +31,7 @@ module CbNitride
31
31
  def issue_number
32
32
  @_issue_number ||=
33
33
  match = clean_title.match(/#\d+/).to_s.gsub('#', '').strip
34
- if match.empty?
34
+ if match.nil? || match.empty?
35
35
  nil
36
36
  else
37
37
  match.to_i
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
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.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis