book_finder_api 0.0.9 → 0.0.10

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.
@@ -1,3 +1,3 @@
1
1
  module BookFinderApi
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -14,6 +14,7 @@ class BookFinder
14
14
  search_url="http://www.flipkart.com/search/a/all?query=#{isbn}"
15
15
  result=Hash.new
16
16
  agent =Mechanize.new
17
+ agent.redirect_ok
17
18
  page = agent.get(search_url)
18
19
  page.search(".fk-specs-type2 tr").each do |tr|
19
20
  fk_key=tr.search(".specs-key").text()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: book_finder_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: