book_finder_api 0.0.16 → 0.0.17

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.
@@ -34,6 +34,12 @@ class BookFinder
34
34
  book_authors << author.text()
35
35
  end
36
36
  result["Author"]=book_authors.join(",")
37
+ if result["Author"] ==""
38
+ title_div.search(".secondary-info a").each do |author|
39
+ book_authors << author.inner_html
40
+ end
41
+ result["Author"]=book_authors.join(",")
42
+ end
37
43
  #storing the resluts
38
44
  page.search(".fk-specs-type2 tr").each do |tr|
39
45
  fk_key=tr.search(".specs-key").text()
@@ -1,3 +1,3 @@
1
1
  module BookFinderApi
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
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.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-30 00:00:00.000000000 Z
12
+ date: 2013-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri