cb_nitride 0.0.11 → 0.0.12
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 +6 -1
- data/lib/cb_nitride/version.rb +1 -1
- data/lib/cb_nitride.rb +3 -3
- 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: 3edd87b689777f2a1199b31017885998415f9db6
|
4
|
+
data.tar.gz: 005e8ee645753507ec4e225242b424e7c62abf81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e269b364747300d566dc80076c58e56982b64cd0f67d88af871dcba265deac36964d12e883dee91581087e96ab5abf43d295ffe0bceb3f32afd0c0cca4c485
|
7
|
+
data.tar.gz: 8b40c7c9824a2362defb30c9cffd91e4524e7eba7729909eec7b072f236add0e784c5959943f24cdfb105e1815ef141d7e5be1a9324aff40899777870ef455b1
|
@@ -12,7 +12,12 @@ module CbNitride
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def get_image_url(base_url, image_class)
|
15
|
-
|
15
|
+
image_container = item_page.css(image_class)
|
16
|
+
if image_container.empty?
|
17
|
+
errors_array << "No Image"
|
18
|
+
else
|
19
|
+
(base_url + item_page.css(image_class)).children[1].attributes["src"].value
|
20
|
+
end
|
16
21
|
end
|
17
22
|
|
18
23
|
def clean_price_float(price)
|
data/lib/cb_nitride/version.rb
CHANGED
data/lib/cb_nitride.rb
CHANGED
@@ -13,10 +13,10 @@ require "cb_nitride/diamond_number_generator"
|
|
13
13
|
|
14
14
|
module CbNitride
|
15
15
|
def self.item(diamond_number, options = {})
|
16
|
-
|
17
|
-
|
16
|
+
if qualified?
|
17
|
+
PrivateHasher.item(diamond_number, options[:agent] || DiamondLogin.agent)
|
18
18
|
else
|
19
|
-
|
19
|
+
PublicHasher.item(diamond_number)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|