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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9122fa870862e18c0103c628db99549af4340dba
4
- data.tar.gz: 99fcbda32d76fee1dcce4b27790513a33ac70eaf
3
+ metadata.gz: 0a0d0f2e038d07191884632215dca28d91c85b6f
4
+ data.tar.gz: 0c5f1e7fc76928f8f1d270d816da68252db2b31c
5
5
  SHA512:
6
- metadata.gz: b4885038e3592718836d4324a2921f39b71a950ab6f4a8080f2e3fd3b4d5b0efa8b9c30efe4e15721334fc8ed52b001b4d529a9812d9f916227145a8a0cc16e7
7
- data.tar.gz: a2e4ace3e93e1a7981199597a5ca6a24a1eb34bb45e506ef1aec8970d57802966a55c63ac2f13f7ecfb0f1aad9f2645b9f03f1fa46961b03d593a5eccd693618
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
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.1.30"
2
+ VERSION = "0.1.31"
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.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis