crown 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/ChangeLog +4 -0
  2. data/VERSION +1 -1
  3. data/lib/crown.rb +1 -1
  4. data/lib/crown/amazon.rb +2 -2
  5. metadata +3 -3
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.9 / 2011-04-04
2
+
3
+ * bugfix.
4
+
1
5
  == 0.0.8 / 2011-04-03
2
6
 
3
7
  * add check digit for ISBN-10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -47,5 +47,5 @@ require 'crown/backtype'
47
47
  require 'crown/facebook'
48
48
 
49
49
  module Crown
50
- VERSION = '0.0.8'
50
+ VERSION = '0.0.9'
51
51
  end
@@ -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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crown
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - clown