crown 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/VERSION +1 -1
- data/lib/crown.rb +1 -1
- data/lib/crown/amazon.rb +2 -2
- metadata +3 -3
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/crown.rb
CHANGED
data/lib/crown/amazon.rb
CHANGED
@@ -63,7 +63,7 @@ module Crown
|
|
63
63
|
|
64
64
|
parser = URI.parse(uri.strip)
|
65
65
|
path = parser.path
|
66
|
-
path += parser.query if (parser.query != nil)
|
66
|
+
path += '?' + parser.query if (parser.query != nil)
|
67
67
|
|
68
68
|
session = Net::HTTP.new(parser.host, parser.port, @proxy_host, @proxy_port)
|
69
69
|
response = Crown::HTTP.get(session, path)
|
@@ -82,7 +82,7 @@ module Crown
|
|
82
82
|
|
83
83
|
if (parser.host.match(/^(?:www\.)?amazon\.(?:com|ca|co\.uk|de|co\.jp|jp|fr|cn)$/) != nil)
|
84
84
|
asin = get_asin(parser.path, parser.query)
|
85
|
-
result.push(asin) if (asin != nil)
|
85
|
+
result.push(asin) if (asin != nil && !result.include?(asin))
|
86
86
|
end
|
87
87
|
}
|
88
88
|
|
metadata
CHANGED