amazon_dp 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@
3
3
  # Author: kimoto
4
4
  require 'amazon_dp'
5
5
 
6
- page_info = AmazonDP.get("B00A3EXJP6")
6
+ #page_info = AmazonDP.get("B00A3EXJP6")
7
+ AmazonDP.logger = Logger.new(STDERR)
8
+ page_info = AmazonDP.get("AAAA")
7
9
  p page_info
8
10
 
@@ -6,5 +6,9 @@ module AmazonDP
6
6
  f.adult_auth
7
7
  Parser.new.parse_html f.fetch(url_or_asin)
8
8
  end
9
+ def self.logger=(logger)
10
+ Fetcher.logger = logger
11
+ Parser.logger = logger
12
+ end
9
13
  end
10
14
 
@@ -1,3 +1,3 @@
1
1
  module AmazonDP
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_dp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: