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 +4 -4
- data/lib/cb_nitride/title_formatter.rb +2 -2
- data/lib/cb_nitride/version.rb +1 -1
- 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: 5c332141afb2bb1acd5ec469cb08352cd1b30a64
|
4
|
+
data.tar.gz: 5455f2dd927e4867ff0165ca50a23fe84229df11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/cb_nitride/version.rb
CHANGED