cb_nitride 0.0.12 → 0.0.14

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: 3edd87b689777f2a1199b31017885998415f9db6
4
- data.tar.gz: 005e8ee645753507ec4e225242b424e7c62abf81
3
+ metadata.gz: ac882d40f87f5e4c69ea8507d8e61fd9ce86f2aa
4
+ data.tar.gz: 6d22e602e8777945ae4936f85c7e1ba06c7096fe
5
5
  SHA512:
6
- metadata.gz: 31e269b364747300d566dc80076c58e56982b64cd0f67d88af871dcba265deac36964d12e883dee91581087e96ab5abf43d295ffe0bceb3f32afd0c0cca4c485
7
- data.tar.gz: 8b40c7c9824a2362defb30c9cffd91e4524e7eba7729909eec7b072f236add0e784c5959943f24cdfb105e1815ef141d7e5be1a9324aff40899777870ef455b1
6
+ metadata.gz: e1731756985094a6030278d08a3198905f32eef378d59e2000a7a0fcc4d44654aa4cc6661ed46b98b87636e8b5a4187c4339ba0621b4d8f8c91b4625425e1140
7
+ data.tar.gz: 3140965107e017c245013827d0852a7e4839753b744409069a9a46752ee0339c1ce55333b33cf16a3980272c10c52b9e7e237c319a5ab3aee1545a2c7e60ff97
@@ -14,9 +14,9 @@ module CbNitride
14
14
  def get_image_url(base_url, image_class)
15
15
  image_container = item_page.css(image_class)
16
16
  if image_container.empty?
17
- errors_array << "No Image"
17
+ error_array << "No Image"
18
18
  else
19
- (base_url + item_page.css(image_class)).children[1].attributes["src"].value
19
+ base_url + item_page.css(image_class).children[1].attributes["src"].value
20
20
  end
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module CbNitride
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.14"
3
3
  end
data/lib/cb_nitride.rb CHANGED
@@ -34,7 +34,8 @@ module CbNitride
34
34
  diamond_item = item (diamond_number)
35
35
  end
36
36
  if diamond_item.nil?
37
- binding.pry
37
+ puts 'Invalid diamond item'
38
+ next
38
39
  else
39
40
  puts "Recorded #{diamond_item.title} (#{diamond_number})"
40
41
  diamond_item
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.0.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis