usa_today_books 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +38 -0
- data/Rakefile +7 -0
- data/lib/usa_today_books.rb +22 -0
- data/lib/usa_today_books/best_sellers.rb +94 -0
- data/lib/usa_today_books/version.rb +3 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/usa_today_books/best_sellers_spec.rb +70 -0
- data/spec/vcr_cassettes/booklists.yml +59 -0
- data/spec/vcr_cassettes/categories.yml +32 -0
- data/spec/vcr_cassettes/dates.yml +94 -0
- data/spec/vcr_cassettes/titles.yml +63 -0
- data/spec/vcr_cassettes/titles_with_isbn.yml +32 -0
- data/spec/vcr_setup.rb +8 -0
- data/usa_today_books.gemspec +27 -0
- metadata +173 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.usatoday.com:80/open/bestsellers/books/titles?api_key=foobar&author=JK%20Rowling&encoding=json
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
p3p:
|
14
|
+
- CP="CAO CUR ADM DEVa TAIi PSAa PSDa CONi OUR OTRi IND PHY ONL UNI COM NAV DEM", POLICYREF="URI"
|
15
|
+
x-aspnet-version:
|
16
|
+
- 2.0.50727
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
date:
|
20
|
+
- Tue, 02 Aug 2011 18:55:50 GMT
|
21
|
+
server:
|
22
|
+
- Microsoft-IIS/7.5
|
23
|
+
x-mashery-responder:
|
24
|
+
- proxyworker-i-f6699e9b.mashery.com
|
25
|
+
content-length:
|
26
|
+
- "221"
|
27
|
+
accept-ranges:
|
28
|
+
- bytes
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
body: "{\"APIParameters\":{\"ISBN\":\"\",\"Year\":\"\",\"Month\":\"\",\"Date\":\"\",\"MinYear\":\"\",\"MaxYear\":\"\",\"Title\":\"\",\"Author\":\"JK Rowling\",\"Category\":\"\",\"Class\":\"\",\"ExcludeCurrentWeek\":\"true\",\"RecentWeekAllowance\":\"24\",\"Count\":0},\"Titles\":[]}"
|
32
|
+
http_version: "1.1"
|
33
|
+
- !ruby/struct:VCR::HTTPInteraction
|
34
|
+
request: !ruby/struct:VCR::Request
|
35
|
+
method: :get
|
36
|
+
uri: http://api.usatoday.com:80/open/bestsellers/books/titles?api_key=foobar&author=J.K.%20Rowling&encoding=json
|
37
|
+
body:
|
38
|
+
headers:
|
39
|
+
response: !ruby/struct:VCR::Response
|
40
|
+
status: !ruby/struct:VCR::ResponseStatus
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
x-aspnet-version:
|
45
|
+
- 2.0.50727
|
46
|
+
p3p:
|
47
|
+
- CP="CAO CUR ADM DEVa TAIi PSAa PSDa CONi OUR OTRi IND PHY ONL UNI COM NAV DEM", POLICYREF="URI"
|
48
|
+
content-type:
|
49
|
+
- application/json; charset=utf-8
|
50
|
+
x-mashery-responder:
|
51
|
+
- proxyworker-i-3d66f354.mashery.com
|
52
|
+
server:
|
53
|
+
- Microsoft-IIS/7.5
|
54
|
+
date:
|
55
|
+
- Tue, 02 Aug 2011 18:56:03 GMT
|
56
|
+
content-length:
|
57
|
+
- "4128"
|
58
|
+
cache-control:
|
59
|
+
- private
|
60
|
+
accept-ranges:
|
61
|
+
- bytes
|
62
|
+
body: "{\"APIParameters\":{\"ISBN\":\"\",\"Year\":\"\",\"Month\":\"\",\"Date\":\"\",\"MinYear\":\"\",\"MaxYear\":\"\",\"Title\":\"\",\"Author\":\"J.K. Rowling\",\"Category\":\"\",\"Class\":\"\",\"ExcludeCurrentWeek\":\"true\",\"RecentWeekAllowance\":\"24\",\"Count\":0},\"Titles\":[{\"Title\":\"Fantastic Beasts & Where to Find Them\",\"TitleAPIUrl\":\"/Titles/9780439295017\",\"Author\":\"Newt Scamander (aka J.K. Rowling)\"},{\"Title\":\"Harry Potter and the Chamber of Secrets\",\"TitleAPIUrl\":\"/Titles/9780439064866\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Chamber of Secrets\",\"TitleAPIUrl\":\"/Titles/9780439064873\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Deathly Hallows\",\"TitleAPIUrl\":\"/Titles/9780545010221\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Deathly Hallows\",\"TitleAPIUrl\":\"/Titles/9780545139700\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Deathly Hallows: Deluxe edition\",\"TitleAPIUrl\":\"/Titles/9780545029377\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Goblet of Fire\",\"TitleAPIUrl\":\"/Titles/9780439139595\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Goblet of Fire\",\"TitleAPIUrl\":\"/Titles/9780439139601\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Half-Blood Prince\",\"TitleAPIUrl\":\"/Titles/9780439784542\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Half-Blood Prince\",\"TitleAPIUrl\":\"/Titles/9780439785969\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Half-Blood Prince: Deluxe Edition\",\"TitleAPIUrl\":\"/Titles/9780439791328\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Order of the Phoenix\",\"TitleAPIUrl\":\"/Titles/9780439358064\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Order of the Phoenix\",\"TitleAPIUrl\":\"/Titles/9780439358071\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Prisoner of Azkaban\",\"TitleAPIUrl\":\"/Titles/9780439136358\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Prisoner of Azkaban\",\"TitleAPIUrl\":\"/Titles/9780439136365\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Sorcerer\\u0027s Stone\",\"TitleAPIUrl\":\"/Titles/9780590353403\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Sorcerer\\u0027s Stone\",\"TitleAPIUrl\":\"/Titles/9780590353427\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter and the Sorcerer\\u0027s Stone Poster Book\",\"TitleAPIUrl\":\"/Titles/9780439286237\",\"Author\":\"J.K. Rowling \"},{\"Title\":\"Harry Potter Box Set: Books 1-3\",\"TitleAPIUrl\":\"/Titles/9780439133166\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Box Set: Books 1-4\",\"TitleAPIUrl\":\"/Titles/9780439249546\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Box Set: Books 1-4\",\"TitleAPIUrl\":\"/Titles/9780439434867\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Box Set: Books 1-5\",\"TitleAPIUrl\":\"/Titles/9780439682589\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Box Set: Books 1-6\",\"TitleAPIUrl\":\"/Titles/9780439887458\",\"Author\":\"J.K. Rowling\"},{\"Title\":\"Harry Potter Box Set: Books 1-7\",\"TitleAPIUrl\":\"/Titles/9780545044257\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Box Set: Books 1-7\",\"TitleAPIUrl\":\"/Titles/9780545162074\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\"},{\"Title\":\"Harry Potter Schoolbooks\",\"TitleAPIUrl\":\"/Titles/9780439284035\",\"Author\":\"Kennilworthy Whisp (aka J.K. Rowling), Newt Scamander (aka J.K. Rowling)\"},{\"Title\":\"Harry Potter Schoolbooks\",\"TitleAPIUrl\":\"/Titles/9780439321624\",\"Author\":\"Kennilworthy Whisp (aka J.K. Rowling), Newt Scamander (aka J.K. Rowling)\"},{\"Title\":\"Quidditch Through the Ages\",\"TitleAPIUrl\":\"/Titles/9780439295024\",\"Author\":\"Kennilworthy Whisp (aka J.K. Rowling)\"},{\"Title\":\"The Tales of Beedle the Bard\",\"TitleAPIUrl\":\"/Titles/9780545128285\",\"Author\":\"J.K. Rowling\"}]}"
|
63
|
+
http_version: "1.1"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.usatoday.com:80/open/bestsellers/books/titles/9780545010221?api_key=foobar&encoding=json
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
x-aspnet-version:
|
14
|
+
- 2.0.50727
|
15
|
+
p3p:
|
16
|
+
- CP="CAO CUR ADM DEVa TAIi PSAa PSDa CONi OUR OTRi IND PHY ONL UNI COM NAV DEM", POLICYREF="URI"
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
x-mashery-responder:
|
20
|
+
- proxyworker-i-4075c629.mashery.com
|
21
|
+
server:
|
22
|
+
- Microsoft-IIS/7.5
|
23
|
+
date:
|
24
|
+
- Tue, 02 Aug 2011 18:58:32 GMT
|
25
|
+
content-length:
|
26
|
+
- "9255"
|
27
|
+
cache-control:
|
28
|
+
- private
|
29
|
+
accept-ranges:
|
30
|
+
- bytes
|
31
|
+
body: "{\"APIParameters\":{\"ISBN\":\"9780545010221\",\"Year\":\"\",\"Month\":\"\",\"Date\":\"\",\"MinYear\":\"\",\"MaxYear\":\"\",\"Title\":\"\",\"Author\":\"\",\"Category\":\"\",\"Class\":\"\",\"ExcludeCurrentWeek\":\"true\",\"RecentWeekAllowance\":\"24\",\"Count\":0},\"Title\":{\"Title\":\"Harry Potter and the Deathly Hallows\",\"TitleAPIUrl\":\"/Titles/9780545139700\",\"Author\":\"J.K. Rowling, art by Mary GrandPr\xC3\xA9\",\"Description\":\"Youth: Harry confronts Voldemort in conclusion to the series; movie (F) (P)\",\"Category\":{\"CategoryID\":140,\"CategoryName\":\"Youth\"},\"Class\":\"Fiction\",\"Formats\":[{\"ISBN\":\"9780545010221\",\"Name\":\"Hardcover\",\"Publisher\":\"Arthur A. Levine\"},{\"ISBN\":\"9780545139700\",\"Name\":\"Paperback\",\"Publisher\":\"Arthur A. Levine\"}],\"FirstBookListAppearance\":{\"Year\":\"2007\",\"Month\":\"7\",\"Date\":\"26\",\"BookListAPIUrl\":\"BookLists/2007/7/26\"},\"MostRecentBookListAppearance\":{\"Year\":\"2011\",\"Month\":\"7\",\"Date\":\"28\",\"BookListAPIUrl\":\"BookLists/2011/7/28\"},\"BookListAppearances\":78,\"HighestRank\":1,\"RankHistories\":[{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"7\",\"Date\":\"28\",\"BookListAPIUrl\":\"BookLists/2011/7/28\"},\"Rank\":52},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"7\",\"Date\":\"21\",\"BookListAPIUrl\":\"BookLists/2011/7/21\"},\"Rank\":44},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"7\",\"Date\":\"14\",\"BookListAPIUrl\":\"BookLists/2011/7/14\"},\"Rank\":82},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"7\",\"Date\":\"7\",\"BookListAPIUrl\":\"BookLists/2011/7/7\"},\"Rank\":110},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"6\",\"Date\":\"30\",\"BookListAPIUrl\":\"BookLists/2011/6/30\"},\"Rank\":132},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"5\",\"Date\":\"5\",\"BookListAPIUrl\":\"BookLists/2011/5/5\"},\"Rank\":129},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"4\",\"Date\":\"28\",\"BookListAPIUrl\":\"BookLists/2011/4/28\"},\"Rank\":72},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"1\",\"Date\":\"13\",\"BookListAPIUrl\":\"BookLists/2011/1/13\"},\"Rank\":149},{\"BookListDate\":{\"Year\":\"2011\",\"Month\":\"1\",\"Date\":\"6\",\"BookListAPIUrl\":\"BookLists/2011/1/6\"},\"Rank\":125},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"12\",\"Date\":\"30\",\"BookListAPIUrl\":\"BookLists/2010/12/30\"},\"Rank\":62},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"12\",\"Date\":\"23\",\"BookListAPIUrl\":\"BookLists/2010/12/23\"},\"Rank\":60},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"12\",\"Date\":\"16\",\"BookListAPIUrl\":\"BookLists/2010/12/16\"},\"Rank\":59},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"12\",\"Date\":\"9\",\"BookListAPIUrl\":\"BookLists/2010/12/9\"},\"Rank\":50},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"12\",\"Date\":\"2\",\"BookListAPIUrl\":\"BookLists/2010/12/2\"},\"Rank\":27},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"11\",\"Date\":\"25\",\"BookListAPIUrl\":\"BookLists/2010/11/25\"},\"Rank\":41},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"11\",\"Date\":\"18\",\"BookListAPIUrl\":\"BookLists/2010/11/18\"},\"Rank\":67},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"11\",\"Date\":\"11\",\"BookListAPIUrl\":\"BookLists/2010/11/11\"},\"Rank\":96},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"11\",\"Date\":\"4\",\"BookListAPIUrl\":\"BookLists/2010/11/4\"},\"Rank\":146},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"7\",\"Date\":\"29\",\"BookListAPIUrl\":\"BookLists/2010/7/29\"},\"Rank\":130},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"7\",\"Date\":\"22\",\"BookListAPIUrl\":\"BookLists/2010/7/22\"},\"Rank\":113},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"1\",\"Date\":\"14\",\"BookListAPIUrl\":\"BookLists/2010/1/14\"},\"Rank\":132},{\"BookListDate\":{\"Year\":\"2010\",\"Month\":\"1\",\"Date\":\"7\",\"BookListAPIUrl\":\"BookLists/2010/1/7\"},\"Rank\":100},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"12\",\"Date\":\"31\",\"BookListAPIUrl\":\"BookLists/2009/12/31\"},\"Rank\":54},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"12\",\"Date\":\"24\",\"BookListAPIUrl\":\"BookLists/2009/12/24\"},\"Rank\":57},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"12\",\"Date\":\"17\",\"BookListAPIUrl\":\"BookLists/2009/12/17\"},\"Rank\":75},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"12\",\"Date\":\"10\",\"BookListAPIUrl\":\"BookLists/2009/12/10\"},\"Rank\":135},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"12\",\"Date\":\"3\",\"BookListAPIUrl\":\"BookLists/2009/12/3\"},\"Rank\":137},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"10\",\"Date\":\"29\",\"BookListAPIUrl\":\"BookLists/2009/10/29\"},\"Rank\":140},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"10\",\"Date\":\"22\",\"BookListAPIUrl\":\"BookLists/2009/10/22\"},\"Rank\":129},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"10\",\"Date\":\"15\",\"BookListAPIUrl\":\"BookLists/2009/10/15\"},\"Rank\":133},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"10\",\"Date\":\"8\",\"BookListAPIUrl\":\"BookLists/2009/10/8\"},\"Rank\":122},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"10\",\"Date\":\"1\",\"BookListAPIUrl\":\"BookLists/2009/10/1\"},\"Rank\":94},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"9\",\"Date\":\"24\",\"BookListAPIUrl\":\"BookLists/2009/9/24\"},\"Rank\":66},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"9\",\"Date\":\"17\",\"BookListAPIUrl\":\"BookLists/2009/9/17\"},\"Rank\":41},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"9\",\"Date\":\"10\",\"BookListAPIUrl\":\"BookLists/2009/9/10\"},\"Rank\":36},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"9\",\"Date\":\"3\",\"BookListAPIUrl\":\"BookLists/2009/9/3\"},\"Rank\":36},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"8\",\"Date\":\"27\",\"BookListAPIUrl\":\"BookLists/2009/8/27\"},\"Rank\":25},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"8\",\"Date\":\"20\",\"BookListAPIUrl\":\"BookLists/2009/8/20\"},\"Rank\":19},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"8\",\"Date\":\"13\",\"BookListAPIUrl\":\"BookLists/2009/8/13\"},\"Rank\":14},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"8\",\"Date\":\"6\",\"BookListAPIUrl\":\"BookLists/2009/8/6\"},\"Rank\":7},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"7\",\"Date\":\"30\",\"BookListAPIUrl\":\"BookLists/2009/7/30\"},\"Rank\":2},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"7\",\"Date\":\"23\",\"BookListAPIUrl\":\"BookLists/2009/7/23\"},\"Rank\":2},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"7\",\"Date\":\"16\",\"BookListAPIUrl\":\"BookLists/2009/7/16\"},\"Rank\":5},{\"BookListDate\":{\"Year\":\"2009\",\"Month\":\"1\",\"Date\":\"1\",\"BookListAPIUrl\":\"BookLists/2009/1/1\"},\"Rank\":130},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"12\",\"Date\":\"25\",\"BookListAPIUrl\":\"BookLists/2008/12/25\"},\"Rank\":136},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"12\",\"Date\":\"18\",\"BookListAPIUrl\":\"BookLists/2008/12/18\"},\"Rank\":145},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"2\",\"Date\":\"28\",\"BookListAPIUrl\":\"BookLists/2008/2/28\"},\"Rank\":141},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"2\",\"Date\":\"21\",\"BookListAPIUrl\":\"BookLists/2008/2/21\"},\"Rank\":132},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"2\",\"Date\":\"14\",\"BookListAPIUrl\":\"BookLists/2008/2/14\"},\"Rank\":149},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"2\",\"Date\":\"7\",\"BookListAPIUrl\":\"BookLists/2008/2/7\"},\"Rank\":122},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"1\",\"Date\":\"31\",\"BookListAPIUrl\":\"BookLists/2008/1/31\"},\"Rank\":96},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"1\",\"Date\":\"24\",\"BookListAPIUrl\":\"BookLists/2008/1/24\"},\"Rank\":99},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"1\",\"Date\":\"17\",\"BookListAPIUrl\":\"BookLists/2008/1/17\"},\"Rank\":103},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"1\",\"Date\":\"10\",\"BookListAPIUrl\":\"BookLists/2008/1/10\"},\"Rank\":81},{\"BookListDate\":{\"Year\":\"2008\",\"Month\":\"1\",\"Date\":\"3\",\"BookListAPIUrl\":\"BookLists/2008/1/3\"},\"Rank\":43},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"12\",\"Date\":\"27\",\"BookListAPIUrl\":\"BookLists/2007/12/27\"},\"Rank\":31},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"12\",\"Date\":\"20\",\"BookListAPIUrl\":\"BookLists/2007/12/20\"},\"Rank\":29},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"12\",\"Date\":\"13\",\"BookListAPIUrl\":\"BookLists/2007/12/13\"},\"Rank\":38},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"12\",\"Date\":\"6\",\"BookListAPIUrl\":\"BookLists/2007/12/6\"},\"Rank\":37},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"11\",\"Date\":\"29\",\"BookListAPIUrl\":\"BookLists/2007/11/29\"},\"Rank\":23},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"11\",\"Date\":\"22\",\"BookListAPIUrl\":\"BookLists/2007/11/22\"},\"Rank\":51},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"11\",\"Date\":\"15\",\"BookListAPIUrl\":\"BookLists/2007/11/15\"},\"Rank\":53},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"11\",\"Date\":\"8\",\"BookListAPIUrl\":\"BookLists/2007/11/8\"},\"Rank\":46},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"11\",\"Date\":\"1\",\"BookListAPIUrl\":\"BookLists/2007/11/1\"},\"Rank\":34},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"10\",\"Date\":\"25\",\"BookListAPIUrl\":\"BookLists/2007/10/25\"},\"Rank\":29},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"10\",\"Date\":\"18\",\"BookListAPIUrl\":\"BookLists/2007/10/18\"},\"Rank\":27},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"10\",\"Date\":\"11\",\"BookListAPIUrl\":\"BookLists/2007/10/11\"},\"Rank\":22},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"10\",\"Date\":\"4\",\"BookListAPIUrl\":\"BookLists/2007/10/4\"},\"Rank\":19},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"9\",\"Date\":\"27\",\"BookListAPIUrl\":\"BookLists/2007/9/27\"},\"Rank\":9},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"9\",\"Date\":\"20\",\"BookListAPIUrl\":\"BookLists/2007/9/20\"},\"Rank\":6},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"9\",\"Date\":\"13\",\"BookListAPIUrl\":\"BookLists/2007/9/13\"},\"Rank\":4},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"9\",\"Date\":\"6\",\"BookListAPIUrl\":\"BookLists/2007/9/6\"},\"Rank\":2},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"8\",\"Date\":\"30\",\"BookListAPIUrl\":\"BookLists/2007/8/30\"},\"Rank\":1},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"8\",\"Date\":\"23\",\"BookListAPIUrl\":\"BookLists/2007/8/23\"},\"Rank\":1},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"8\",\"Date\":\"16\",\"BookListAPIUrl\":\"BookLists/2007/8/16\"},\"Rank\":2},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"8\",\"Date\":\"9\",\"BookListAPIUrl\":\"BookLists/2007/8/9\"},\"Rank\":1},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"8\",\"Date\":\"2\",\"BookListAPIUrl\":\"BookLists/2007/8/2\"},\"Rank\":1},{\"BookListDate\":{\"Year\":\"2007\",\"Month\":\"7\",\"Date\":\"26\",\"BookListAPIUrl\":\"BookLists/2007/7/26\"},\"Rank\":1}]}}"
|
32
|
+
http_version: "1.1"
|
data/spec/vcr_setup.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "usa_today_books/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "usa_today_books"
|
7
|
+
s.version = UsaTodayBooks::VERSION
|
8
|
+
s.authors = ["Johnny Khai Nguyen"]
|
9
|
+
s.email = ["johnny.nguyen@rethinkbooks.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Ruby wrapper for the USA Today books API}
|
12
|
+
s.description = %q{Use this gem to access data from the USA Today books API in your Ruby application}
|
13
|
+
|
14
|
+
s.rubyforge_project = "usa_today_books"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.add_dependency 'httparty'
|
22
|
+
s.add_dependency 'hashie'
|
23
|
+
s.add_dependency 'json'
|
24
|
+
s.add_development_dependency 'rspec'
|
25
|
+
s.add_development_dependency 'webmock'
|
26
|
+
s.add_development_dependency 'vcr'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: usa_today_books
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Johnny Khai Nguyen
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-08-02 00:00:00 -05:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: httparty
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hashie
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: json
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rspec
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :development
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: webmock
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
type: :development
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: vcr
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id006
|
105
|
+
description: Use this gem to access data from the USA Today books API in your Ruby application
|
106
|
+
email:
|
107
|
+
- johnny.nguyen@rethinkbooks.com
|
108
|
+
executables: []
|
109
|
+
|
110
|
+
extensions: []
|
111
|
+
|
112
|
+
extra_rdoc_files: []
|
113
|
+
|
114
|
+
files:
|
115
|
+
- .gitignore
|
116
|
+
- Gemfile
|
117
|
+
- README.md
|
118
|
+
- Rakefile
|
119
|
+
- lib/usa_today_books.rb
|
120
|
+
- lib/usa_today_books/best_sellers.rb
|
121
|
+
- lib/usa_today_books/version.rb
|
122
|
+
- spec/spec_helper.rb
|
123
|
+
- spec/usa_today_books/best_sellers_spec.rb
|
124
|
+
- spec/vcr_cassettes/booklists.yml
|
125
|
+
- spec/vcr_cassettes/categories.yml
|
126
|
+
- spec/vcr_cassettes/dates.yml
|
127
|
+
- spec/vcr_cassettes/titles.yml
|
128
|
+
- spec/vcr_cassettes/titles_with_isbn.yml
|
129
|
+
- spec/vcr_setup.rb
|
130
|
+
- usa_today_books.gemspec
|
131
|
+
has_rdoc: true
|
132
|
+
homepage: ""
|
133
|
+
licenses: []
|
134
|
+
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
|
138
|
+
require_paths:
|
139
|
+
- lib
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
hash: 3
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
version: "0"
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
requirements: []
|
159
|
+
|
160
|
+
rubyforge_project: usa_today_books
|
161
|
+
rubygems_version: 1.6.2
|
162
|
+
signing_key:
|
163
|
+
specification_version: 3
|
164
|
+
summary: Ruby wrapper for the USA Today books API
|
165
|
+
test_files:
|
166
|
+
- spec/spec_helper.rb
|
167
|
+
- spec/usa_today_books/best_sellers_spec.rb
|
168
|
+
- spec/vcr_cassettes/booklists.yml
|
169
|
+
- spec/vcr_cassettes/categories.yml
|
170
|
+
- spec/vcr_cassettes/dates.yml
|
171
|
+
- spec/vcr_cassettes/titles.yml
|
172
|
+
- spec/vcr_cassettes/titles_with_isbn.yml
|
173
|
+
- spec/vcr_setup.rb
|