cb_nitride 0.1.30 → 0.1.31
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/hasher_methods.rb +3 -0
- 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: 0a0d0f2e038d07191884632215dca28d91c85b6f
|
4
|
+
data.tar.gz: 0c5f1e7fc76928f8f1d270d816da68252db2b31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dac6d8989fc1497145ce403ecbca314f2fa05575a3a7332ab7d9ad64506ce495ba69714f3bebce103754cba0c8ecd153684431d095937a48a055c9a3870f1a8b
|
7
|
+
data.tar.gz: 3672612f4147ec6f5274b52b5b0a3c3f3fb4ab11b66ee6c949c2b008fdeb9866e6dbe88f37ff2dc64f47d3de6035e31cfdf4372e61acc955609e3450222fb15e
|
@@ -15,6 +15,7 @@ module CbNitride
|
|
15
15
|
image_container = item_page.css(image_class)
|
16
16
|
if image_container.nil? || image_container.empty?
|
17
17
|
error_array << "No Image"
|
18
|
+
return nil
|
18
19
|
else
|
19
20
|
base_url + item_page.css(image_class).first.attributes["href"].value
|
20
21
|
end
|
@@ -23,6 +24,7 @@ module CbNitride
|
|
23
24
|
def clean_price_float(price)
|
24
25
|
if price.nil?
|
25
26
|
error_array << "No price"
|
27
|
+
return nil
|
26
28
|
else
|
27
29
|
price.match(/\d+[.]\d+/).to_s.to_f
|
28
30
|
end
|
@@ -31,6 +33,7 @@ module CbNitride
|
|
31
33
|
def clean_date_string(date)
|
32
34
|
if date.nil? || date.empty?
|
33
35
|
error_array << "No Release Date"
|
36
|
+
return nil
|
34
37
|
else
|
35
38
|
Date.strptime(date.match(/\d+[\/]\d+[\/]\d+/).to_s, "%m/%d/%Y")
|
36
39
|
end
|
data/lib/cb_nitride/version.rb
CHANGED