google_book 0.3.14 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google_book/version.rb +1 -1
- data/spec/book_item_spec.rb +6 -28
- metadata +2 -2
data/lib/google_book/version.rb
CHANGED
data/spec/book_item_spec.rb
CHANGED
@@ -29,51 +29,29 @@ describe "book_item" do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
describe "authors" do
|
33
|
-
it "should return perfect authors name" do
|
34
|
-
@book_items.first.authors.should =~ ["Daniel Keyes"]
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
32
|
describe "preview_link" do
|
39
33
|
it "should return perfect preview link" do
|
40
|
-
@book_items.first.preview_link.should == "http://books.google.com/books?id=
|
34
|
+
@book_items.first.preview_link.should == "http://books.google.com/books?id=P6xj0ICxLngC&pg=PT305&dq=Flowers+inauthor&hl=&cd=1&source=gbs_api"
|
41
35
|
end
|
42
36
|
end
|
43
37
|
|
44
38
|
describe "info_link" do
|
45
39
|
it "should return perfect info link" do
|
46
|
-
@book_items.first.info_link.should == "http://books.google.com/books?id=
|
40
|
+
@book_items.first.info_link.should == "http://books.google.com/books?id=P6xj0ICxLngC&dq=Flowers+inauthor&hl=&source=gbs_api"
|
47
41
|
end
|
48
42
|
end
|
49
43
|
|
50
44
|
describe "version" do
|
51
45
|
it "should return perfect version" do
|
52
|
-
@book_items.first.version.should == "0.
|
53
|
-
|
46
|
+
@book_items.first.version.should == "preview-1.0.0"
|
47
|
+
end
|
54
48
|
end
|
55
49
|
|
56
50
|
describe "google_checkout_link" do
|
57
51
|
it "should return perfect google checkout link" do
|
58
|
-
@book_items.first.google_checkout_link.should == "https://play.google.com/store/books/details?id=
|
52
|
+
@book_items.first.google_checkout_link.should == "https://play.google.com/store/books/details?id=P6xj0ICxLngC&rdid=book-P6xj0ICxLngC&rdot=1&source=gbs_atb"
|
59
53
|
end
|
60
54
|
end
|
55
|
+
end
|
61
56
|
|
62
|
-
describe "rating" do
|
63
|
-
it "should return the rating of the book" do
|
64
|
-
@book_items.first.rating.should == 4.0
|
65
|
-
end
|
66
|
-
end
|
67
57
|
|
68
|
-
describe "publisher" do
|
69
|
-
it "should return right publisher name" do
|
70
|
-
@book_items.first.publisher.should == "Houghton Mifflin Harcourt"
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
describe "publish_date" do
|
75
|
-
it "should return the perfect published date" do
|
76
|
-
@book_items.first.publish_date.should == "2007-12-01"
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_book
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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:
|
12
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: rdasarminus@gmail.com
|