goodreads 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -2
- data/LICENSE +2 -2
- data/README.md +21 -3
- data/goodreads.gemspec +2 -2
- data/lib/goodreads/client.rb +11 -2
- data/lib/goodreads/client/authors.rb +8 -0
- data/lib/goodreads/client/friends.rb +2 -2
- data/lib/goodreads/client/reviews.rb +56 -0
- data/lib/goodreads/client/shelves.rb +68 -0
- data/lib/goodreads/errors.rb +2 -0
- data/lib/goodreads/request.rb +41 -6
- data/lib/goodreads/version.rb +1 -1
- data/spec/authentication_spec.rb +24 -11
- data/spec/client_spec.rb +202 -1
- data/spec/fixtures/author_books.xml +1338 -0
- data/spec/fixtures/review_create.xml +102 -0
- data/spec/fixtures/review_show_by_user_and_book.xml +144 -0
- data/spec/fixtures/review_update.xml +104 -0
- data/spec/fixtures/shelf_add_to_shelf.xml +24 -0
- data/spec/fixtures/shelf_list.xml +51 -0
- data/spec/goodreads_spec.rb +1 -1
- metadata +28 -11
@@ -0,0 +1,102 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GoodreadsResponse>
|
3
|
+
<Request>
|
4
|
+
<authentication>true</authentication>
|
5
|
+
<key><![CDATA[SECRET_KEY]]></key>
|
6
|
+
<method><![CDATA[review_create]]></method>
|
7
|
+
</Request>
|
8
|
+
|
9
|
+
<review>
|
10
|
+
<id>67890</id>
|
11
|
+
|
12
|
+
<user>
|
13
|
+
<id>123456</id>
|
14
|
+
<uri>kca://profile:goodreads/A25C3Y1SBGK9NK</uri>
|
15
|
+
<name>Test</name>
|
16
|
+
<display_name>Test User</display_name>
|
17
|
+
|
18
|
+
<location>Lafayette, CA</location>
|
19
|
+
|
20
|
+
<link><![CDATA[https://www.goodreads.com/user/show/123456-test-user]]></link>
|
21
|
+
|
22
|
+
<image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_111x148-9394ebedbb3c6c218f64be9549657029.png]]></image_url>
|
23
|
+
<small_image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_50x66-632230dc9882b4352d753eedf9396530.png]]></small_image_url>
|
24
|
+
<has_image>false</has_image>
|
25
|
+
|
26
|
+
</user>
|
27
|
+
|
28
|
+
<book>
|
29
|
+
<id type="integer">456</id>
|
30
|
+
<isbn>0195138570</isbn>
|
31
|
+
<isbn13>9780195138573</isbn13>
|
32
|
+
<text_reviews_count type="integer">11</text_reviews_count>
|
33
|
+
<uri>kca://book/amzn1.gr.book.v1.oHwPZrciugo6gPSINsfCaw</uri>
|
34
|
+
<title>Mindware: An Introduction to the Philosophy of Cognitive Science</title>
|
35
|
+
<title_without_series>Mindware: An Introduction to the Philosophy of Cognitive Science</title_without_series>
|
36
|
+
<image_url>https://s.gr-assets.com/assets/nophoto/book/111x148-bcc042a9c91a29c1d680899eff700a03.png</image_url>
|
37
|
+
<small_image_url>https://s.gr-assets.com/assets/nophoto/book/50x75-a91bf249278a81aabab721ef782c4a74.png</small_image_url>
|
38
|
+
<large_image_url/>
|
39
|
+
<link>https://www.goodreads.com/book/show/456.Mindware</link>
|
40
|
+
<num_pages>224</num_pages>
|
41
|
+
<format>Paperback</format>
|
42
|
+
<edition_information>1st edition</edition_information>
|
43
|
+
<publisher>Oxford University Press, USA</publisher>
|
44
|
+
<publication_day>21</publication_day>
|
45
|
+
<publication_year>2000</publication_year>
|
46
|
+
<publication_month>12</publication_month>
|
47
|
+
<average_rating>3.78</average_rating>
|
48
|
+
<ratings_count>210</ratings_count>
|
49
|
+
<description><p><i>Mindware</i> is an introductory text with a difference. In eight short chapters it tells a story and invites the reader to join in some up-to-the-minute conceptual discussion of the key issues, problems, and opportunities in cognitive science. The story is about the search for a cognitive scientific understanding of mind. It is presented as a no-holds-barred journey from early work in Artificial Intelligence, through connectionist (artificial neural network) counter-visions, and onto neuroscience artificial life, dynamics and robotics. The journey ends with some wide-ranging and provacative speculation about the role of technology and the changing nature of the human mind itself.<br />Each chapter is organized as an initial sketch of a research program or theme, followed by a substantial discussion section in which specific problems and issues (both familiear and cutting-edge) are raised and pursued. Discussion topics include mental causation, the hardware/software distinction, the relations between life and mind, the nature of perception, cognition and action, and the continuity (or otherwise) of high-level human intelligence with other forms of adaptive response. Classic topics are treated alongside the newer ones in an integrated treatment of the various discussions. The sketches and discussions are accompanied by numerous figures and boxed sections, and followed by suggestions for futher reading.</p></description>
|
50
|
+
<authors>
|
51
|
+
<author>
|
52
|
+
<id>3445871</id>
|
53
|
+
<name>Andy Clark</name>
|
54
|
+
<role></role>
|
55
|
+
<image_url nophoto='false'>
|
56
|
+
<![CDATA[https://images.gr-assets.com/authors/1269856267p5/3445871.jpg]]>
|
57
|
+
</image_url>
|
58
|
+
<small_image_url nophoto='false'>
|
59
|
+
<![CDATA[https://images.gr-assets.com/authors/1269856267p2/3445871.jpg]]>
|
60
|
+
</small_image_url>
|
61
|
+
<link><![CDATA[https://www.goodreads.com/author/show/3445871.Andy_Clark]]></link>
|
62
|
+
<average_rating>3.89</average_rating>
|
63
|
+
<ratings_count>992</ratings_count>
|
64
|
+
<text_reviews_count>74</text_reviews_count>
|
65
|
+
</author>
|
66
|
+
</authors>
|
67
|
+
<published>2000</published>
|
68
|
+
<work> <id>282613</id>
|
69
|
+
<uri>kca://work/amzn1.gr.work.v1.xCZQesiWRuaIVPV6wsdFGA</uri>
|
70
|
+
</work></book>
|
71
|
+
|
72
|
+
|
73
|
+
<rating>3</rating>
|
74
|
+
<votes>0</votes>
|
75
|
+
<spoiler_flag>false</spoiler_flag>
|
76
|
+
<spoilers_state>none</spoilers_state>
|
77
|
+
|
78
|
+
|
79
|
+
<shelves>
|
80
|
+
<shelf name="read" exclusive="true" id="269274694" review_shelf_id= ""/>
|
81
|
+
|
82
|
+
</shelves>
|
83
|
+
|
84
|
+
<recommended_for></recommended_for>
|
85
|
+
<recommended_by></recommended_by>
|
86
|
+
<started_at></started_at>
|
87
|
+
<read_at></read_at>
|
88
|
+
<date_added>Wed Jun 13 20:52:06 -0700 2018</date_added>
|
89
|
+
<date_updated>Wed Jun 13 20:52:07 -0700 2018</date_updated>
|
90
|
+
<read_count>1</read_count>
|
91
|
+
<body>Good book.</body>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<comments_count>0</comments_count>
|
96
|
+
<url><![CDATA[https://www.goodreads.com/review/show/67890]]></url>
|
97
|
+
<link><![CDATA[https://www.goodreads.com/review/show/67890]]></link>
|
98
|
+
<owned>0</owned>
|
99
|
+
</review>
|
100
|
+
|
101
|
+
|
102
|
+
</GoodreadsResponse>
|
@@ -0,0 +1,144 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GoodreadsResponse>
|
3
|
+
<Request>
|
4
|
+
<authentication>true</authentication>
|
5
|
+
<key><![CDATA[SECRET_KEY]]></key>
|
6
|
+
<method><![CDATA[review_show_by_user_and_book]]></method>
|
7
|
+
</Request>
|
8
|
+
<review>
|
9
|
+
<id>21</id>
|
10
|
+
|
11
|
+
<user>
|
12
|
+
<id>1</id>
|
13
|
+
<uri>kca://profile:goodreads/A2CSQET51X1KEY</uri>
|
14
|
+
<name>Otis</name>
|
15
|
+
<display_name>Otis Chandler</display_name>
|
16
|
+
|
17
|
+
<location>San Francisco, CA</location>
|
18
|
+
|
19
|
+
<link><![CDATA[https://www.goodreads.com/user/show/1-otis-chandler]]></link>
|
20
|
+
|
21
|
+
<image_url><![CDATA[https://images.gr-assets.com/users/1506617226p3/1.jpg]]></image_url>
|
22
|
+
<small_image_url><![CDATA[https://images.gr-assets.com/users/1506617226p2/1.jpg]]></small_image_url>
|
23
|
+
<has_image>true</has_image>
|
24
|
+
|
25
|
+
</user>
|
26
|
+
|
27
|
+
<book>
|
28
|
+
<id type="integer">50</id>
|
29
|
+
<isbn>0689840926</isbn>
|
30
|
+
<isbn13>9780689840920</isbn13>
|
31
|
+
<text_reviews_count type="integer">10396</text_reviews_count>
|
32
|
+
<uri>kca://book/amzn1.gr.book.v1.RXVB3nJhipnhI-zLlVeRTg</uri>
|
33
|
+
<title>Hatchet</title>
|
34
|
+
<title_without_series>Hatchet</title_without_series>
|
35
|
+
<image_url>https://s.gr-assets.com/assets/nophoto/book/111x148-bcc042a9c91a29c1d680899eff700a03.png</image_url>
|
36
|
+
<small_image_url>https://s.gr-assets.com/assets/nophoto/book/50x75-a91bf249278a81aabab721ef782c4a74.png</small_image_url>
|
37
|
+
<large_image_url/>
|
38
|
+
<link>https://www.goodreads.com/book/show/50.Hatchet</link>
|
39
|
+
<num_pages>208</num_pages>
|
40
|
+
<format>Hardcover</format>
|
41
|
+
<edition_information/>
|
42
|
+
<publisher>Atheneum Books for Young Readers: Richard Jackson Books</publisher>
|
43
|
+
<publication_day>1</publication_day>
|
44
|
+
<publication_year>2000</publication_year>
|
45
|
+
<publication_month>4</publication_month>
|
46
|
+
<average_rating>3.69</average_rating>
|
47
|
+
<ratings_count>250763</ratings_count>
|
48
|
+
<description>Brian is on his way to Canada to visit his estranged father when the pilot of his small prop plane suffers a heart attack. Brian is forced to crash-land the plane in a lake--and finds himself stranded in the remote Canadian wilderness with only his clothing and the hatchet his mother gave him as a present before his departure. <br /><br />Brian had been distraught over his parents' impending divorce and the secret he carries about his mother, but now he is truly desolate and alone. Exhausted, terrified, and hungry, Brian struggles to find food and make a shelter for himself. He has no special knowledge of the woods, and he must find a new kind of awareness and patience as he meets each day's challenges. Is the water safe to drink? Are the berries he finds poisonous? <br /><br />Slowly, Brian learns to turn adversity to his advantage--an invading porcupine unexpectedly shows him how to make fire, a devastating tornado shows him how to retrieve supplies from the submerged airplane. Most of all, Brian leaves behind the self-pity he has felt about his predicament as he summons the courage to stay alive. <br /><br />A story of survival and of transformation, this riveting book has sparked many a reader's interest in venturing into the wild.</description>
|
49
|
+
<authors>
|
50
|
+
<author>
|
51
|
+
<id>18</id>
|
52
|
+
<name>Gary Paulsen</name>
|
53
|
+
<role></role>
|
54
|
+
<image_url nophoto='false'>
|
55
|
+
<![CDATA[https://images.gr-assets.com/authors/1309159225p5/18.jpg]]>
|
56
|
+
</image_url>
|
57
|
+
<small_image_url nophoto='false'>
|
58
|
+
<![CDATA[https://images.gr-assets.com/authors/1309159225p2/18.jpg]]>
|
59
|
+
</small_image_url>
|
60
|
+
<link><![CDATA[https://www.goodreads.com/author/show/18.Gary_Paulsen]]></link>
|
61
|
+
<average_rating>3.76</average_rating>
|
62
|
+
<ratings_count>399462</ratings_count>
|
63
|
+
<text_reviews_count>28012</text_reviews_count>
|
64
|
+
</author>
|
65
|
+
</authors>
|
66
|
+
<published>2000</published>
|
67
|
+
<work> <id>1158125</id>
|
68
|
+
<uri>kca://work/amzn1.gr.work.v1.r_sm_y7tG-b00YGE5HqhQQ</uri>
|
69
|
+
</work></book>
|
70
|
+
|
71
|
+
|
72
|
+
<read_statuses>
|
73
|
+
<read_status>
|
74
|
+
<id type="integer">1610038200</id>
|
75
|
+
<old_status></old_status>
|
76
|
+
<status>read</status>
|
77
|
+
<updated_at type="datetime">Fri Dec 09 22:55:21 -0800 2016</updated_at>
|
78
|
+
<ratings_count>0</ratings_count>
|
79
|
+
<comments_count>0</comments_count>
|
80
|
+
</read_status>
|
81
|
+
</read_statuses>
|
82
|
+
<rating>5</rating>
|
83
|
+
<votes>1</votes>
|
84
|
+
<spoiler_flag>false</spoiler_flag>
|
85
|
+
<spoilers_state>none</spoilers_state>
|
86
|
+
|
87
|
+
|
88
|
+
<shelves>
|
89
|
+
<shelf name="read" exclusive="true" id="5625761" review_shelf_id= ""/>
|
90
|
+
|
91
|
+
<shelf exclusive='false' id='343477' name='childrensbooks' review_shelf_id='175' sortable='false'></shelf>
|
92
|
+
|
93
|
+
<shelf exclusive='false' id='348056' name='fiction' review_shelf_id='687' sortable='false'></shelf>
|
94
|
+
|
95
|
+
<shelf exclusive='false' id='348035' name='fiction' review_shelf_id='209' sortable='false'></shelf>
|
96
|
+
|
97
|
+
</shelves>
|
98
|
+
|
99
|
+
<recommended_for></recommended_for>
|
100
|
+
<recommended_by></recommended_by>
|
101
|
+
<started_at></started_at>
|
102
|
+
<read_at></read_at>
|
103
|
+
<date_added>Tue Aug 29 11:20:01 -0700 2006</date_added>
|
104
|
+
<date_updated>Wed Mar 22 11:44:07 -0700 2017</date_updated>
|
105
|
+
<read_count>1</read_count>
|
106
|
+
<body>
|
107
|
+
</body>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<comments_count>1</comments_count>
|
112
|
+
<comments start="1" end="1" total="1">
|
113
|
+
<comment>
|
114
|
+
<id>161860175</id>
|
115
|
+
<body><![CDATA[love this book i read it in sixth grade and we had journals about it]]></body>
|
116
|
+
|
117
|
+
<user>
|
118
|
+
<id>64170165</id>
|
119
|
+
<uri>kca://profile:goodreads/A2PCDUCFEEK4OB</uri>
|
120
|
+
<name>Alise</name>
|
121
|
+
<display_name>Alise</display_name>
|
122
|
+
|
123
|
+
<location>The United States</location>
|
124
|
+
|
125
|
+
<link><![CDATA[https://www.goodreads.com/user/show/64170165-alise]]></link>
|
126
|
+
|
127
|
+
<image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_111x148-9394ebedbb3c6c218f64be9549657029.png]]></image_url>
|
128
|
+
<small_image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_50x66-632230dc9882b4352d753eedf9396530.png]]></small_image_url>
|
129
|
+
<has_image>false</has_image>
|
130
|
+
|
131
|
+
</user>
|
132
|
+
|
133
|
+
<created_at>Sun Jan 22 22:49:10 -0800 2017</created_at>
|
134
|
+
<updated_at>Sun Jan 22 22:49:10 -0800 2017</updated_at>
|
135
|
+
</comment>
|
136
|
+
|
137
|
+
</comments>
|
138
|
+
<url><![CDATA[https://www.goodreads.com/review/show/21]]></url>
|
139
|
+
<link><![CDATA[https://www.goodreads.com/review/show/21]]></link>
|
140
|
+
<owned>0</owned>
|
141
|
+
</review>
|
142
|
+
|
143
|
+
|
144
|
+
</GoodreadsResponse>
|
@@ -0,0 +1,104 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GoodreadsResponse>
|
3
|
+
<Request>
|
4
|
+
<authentication>true</authentication>
|
5
|
+
<key><![CDATA[SECRET_KEY]]></key>
|
6
|
+
<method><![CDATA[review_update_xml]]></method>
|
7
|
+
</Request>
|
8
|
+
<review>
|
9
|
+
<id>67890</id>
|
10
|
+
|
11
|
+
<user>
|
12
|
+
<id>123456</id>
|
13
|
+
<uri>kca://profile:goodreads/A25C3Y1SBGK9NK</uri>
|
14
|
+
<name>Test</name>
|
15
|
+
<display_name>Test User</display_name>
|
16
|
+
|
17
|
+
<location>Lafayette, CA</location>
|
18
|
+
|
19
|
+
<link><![CDATA[https://www.goodreads.com/user/show/123456-test-user]]></link>
|
20
|
+
|
21
|
+
<image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_111x148-9394ebedbb3c6c218f64be9549657029.png]]></image_url>
|
22
|
+
<small_image_url><![CDATA[https://s.gr-assets.com/assets/nophoto/user/u_50x66-632230dc9882b4352d753eedf9396530.png]]></small_image_url>
|
23
|
+
<has_image>false</has_image>
|
24
|
+
|
25
|
+
</user>
|
26
|
+
|
27
|
+
<book>
|
28
|
+
<id type="integer">456</id>
|
29
|
+
<isbn>0195138570</isbn>
|
30
|
+
<isbn13>9780195138573</isbn13>
|
31
|
+
<text_reviews_count type="integer">11</text_reviews_count>
|
32
|
+
<uri>kca://book/amzn1.gr.book.v1.oHwPZrciugo6gPSINsfCaw</uri>
|
33
|
+
<title>Mindware: An Introduction to the Philosophy of Cognitive Science</title>
|
34
|
+
<title_without_series>Mindware: An Introduction to the Philosophy of Cognitive Science</title_without_series>
|
35
|
+
<image_url>https://s.gr-assets.com/assets/nophoto/book/111x148-bcc042a9c91a29c1d680899eff700a03.png</image_url>
|
36
|
+
<small_image_url>https://s.gr-assets.com/assets/nophoto/book/50x75-a91bf249278a81aabab721ef782c4a74.png</small_image_url>
|
37
|
+
<large_image_url/>
|
38
|
+
<link>https://www.goodreads.com/book/show/456.Mindware</link>
|
39
|
+
<num_pages>224</num_pages>
|
40
|
+
<format>Paperback</format>
|
41
|
+
<edition_information>1st edition</edition_information>
|
42
|
+
<publisher>Oxford University Press, USA</publisher>
|
43
|
+
<publication_day>21</publication_day>
|
44
|
+
<publication_year>2000</publication_year>
|
45
|
+
<publication_month>12</publication_month>
|
46
|
+
<average_rating>3.78</average_rating>
|
47
|
+
<ratings_count>210</ratings_count>
|
48
|
+
<description><p><i>Mindware</i> is an introductory text with a difference. In eight short chapters it tells a story and invites the reader to join in some up-to-the-minute conceptual discussion of the key issues, problems, and opportunities in cognitive science. The story is about the search for a cognitive scientific understanding of mind. It is presented as a no-holds-barred journey from early work in Artificial Intelligence, through connectionist (artificial neural network) counter-visions, and onto neuroscience artificial life, dynamics and robotics. The journey ends with some wide-ranging and provacative speculation about the role of technology and the changing nature of the human mind itself.<br />Each chapter is organized as an initial sketch of a research program or theme, followed by a substantial discussion section in which specific problems and issues (both familiear and cutting-edge) are raised and pursued. Discussion topics include mental causation, the hardware/software distinction, the relations between life and mind, the nature of perception, cognition and action, and the continuity (or otherwise) of high-level human intelligence with other forms of adaptive response. Classic topics are treated alongside the newer ones in an integrated treatment of the various discussions. The sketches and discussions are accompanied by numerous figures and boxed sections, and followed by suggestions for futher reading.</p></description>
|
49
|
+
<authors>
|
50
|
+
<author>
|
51
|
+
<id>3445871</id>
|
52
|
+
<name>Andy Clark</name>
|
53
|
+
<role></role>
|
54
|
+
<image_url nophoto='false'>
|
55
|
+
<![CDATA[https://images.gr-assets.com/authors/1269856267p5/3445871.jpg]]>
|
56
|
+
</image_url>
|
57
|
+
<small_image_url nophoto='false'>
|
58
|
+
<![CDATA[https://images.gr-assets.com/authors/1269856267p2/3445871.jpg]]>
|
59
|
+
</small_image_url>
|
60
|
+
<link><![CDATA[https://www.goodreads.com/author/show/3445871.Andy_Clark]]></link>
|
61
|
+
<average_rating>3.89</average_rating>
|
62
|
+
<ratings_count>992</ratings_count>
|
63
|
+
<text_reviews_count>74</text_reviews_count>
|
64
|
+
</author>
|
65
|
+
</authors>
|
66
|
+
<published>2000</published>
|
67
|
+
<work> <id>282613</id>
|
68
|
+
<uri>kca://work/amzn1.gr.work.v1.xCZQesiWRuaIVPV6wsdFGA</uri>
|
69
|
+
</work></book>
|
70
|
+
|
71
|
+
|
72
|
+
<rating>5</rating>
|
73
|
+
<votes>0</votes>
|
74
|
+
<spoiler_flag>false</spoiler_flag>
|
75
|
+
<spoilers_state>none</spoilers_state>
|
76
|
+
|
77
|
+
|
78
|
+
<shelves>
|
79
|
+
<shelf name="read" exclusive="true" id="269274694" review_shelf_id= ""/>
|
80
|
+
|
81
|
+
</shelves>
|
82
|
+
|
83
|
+
<recommended_for></recommended_for>
|
84
|
+
<recommended_by></recommended_by>
|
85
|
+
<started_at></started_at>
|
86
|
+
<read_at>Fri Aug 20 00:00:00 -0700 2004</read_at>
|
87
|
+
<date_added>Wed Jun 13 20:52:06 -0700 2018</date_added>
|
88
|
+
<date_updated>Wed Jun 13 20:52:08 -0700 2018</date_updated>
|
89
|
+
<read_count>1</read_count>
|
90
|
+
<body>Fantastic book.</body>
|
91
|
+
<body_raw>
|
92
|
+
|
93
|
+
</body_raw>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<comments_count>0</comments_count>
|
98
|
+
<url><![CDATA[https://www.goodreads.com/review/show/67890]]></url>
|
99
|
+
<link><![CDATA[https://www.goodreads.com/review/show/67890]]></link>
|
100
|
+
<owned>0</owned>
|
101
|
+
</review>
|
102
|
+
|
103
|
+
|
104
|
+
</GoodreadsResponse>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<GoodreadsResponse>
|
2
|
+
<Request>
|
3
|
+
<authentication>true</authentication>
|
4
|
+
<key><![CDATA[SECRET_KEY]]></key>
|
5
|
+
<method><![CDATA[shelf_add_to_shelf]]></method>
|
6
|
+
</Request>
|
7
|
+
<my_review>
|
8
|
+
<id>2416981504</id>
|
9
|
+
<book_id>456</book_id>
|
10
|
+
<rating>0</rating>
|
11
|
+
<updated_at>Thu Jun 07 19:58:53 -0700 2018</updated_at>
|
12
|
+
|
13
|
+
<shelves>
|
14
|
+
<shelf name="read" exclusive="true" id="269274694" review_shelf_id= ""/>
|
15
|
+
</shelves>
|
16
|
+
|
17
|
+
<body></body>
|
18
|
+
<body_raw></body_raw>
|
19
|
+
<spoiler_flag>false</spoiler_flag>
|
20
|
+
<started_at></started_at>
|
21
|
+
<read_at></read_at>
|
22
|
+
<date_added>Thu Jun 07 19:58:19 -0700 2018</date_added>
|
23
|
+
</my_review>
|
24
|
+
</GoodreadsResponse>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<GoodreadsResponse>
|
2
|
+
<Request>
|
3
|
+
<authentication>true</authentication>
|
4
|
+
<key><![CDATA[SECRET_KEY]]></key>
|
5
|
+
<method><![CDATA[ shelf_list ]]></method>
|
6
|
+
</Request>
|
7
|
+
<shelves start="1" end="3" total="3">
|
8
|
+
<user_shelf>
|
9
|
+
<id type="integer">9049904</id>
|
10
|
+
<name>read</name>
|
11
|
+
<book_count type="integer">0</book_count>
|
12
|
+
<exclusive_flag type="boolean">true</exclusive_flag>
|
13
|
+
<description nil="true"/>
|
14
|
+
<sort nil="true"/>
|
15
|
+
<order nil="true"/>
|
16
|
+
<per_page type="integer" nil="true"/>
|
17
|
+
<display_fields/>
|
18
|
+
<featured type="boolean">true</featured>
|
19
|
+
<recommend_for type="boolean">true</recommend_for>
|
20
|
+
<sticky type="boolean" nil="true"/>
|
21
|
+
</user_shelf>
|
22
|
+
<user_shelf>
|
23
|
+
<id type="integer">3701</id>
|
24
|
+
<name>currently-reading</name>
|
25
|
+
<book_count type="integer">0</book_count>
|
26
|
+
<exclusive_flag type="boolean">true</exclusive_flag>
|
27
|
+
<description nil="true"/>
|
28
|
+
<sort nil="true"/>
|
29
|
+
<order nil="true"/>
|
30
|
+
<per_page type="integer" nil="true"/>
|
31
|
+
<display_fields/>
|
32
|
+
<featured type="boolean">false</featured>
|
33
|
+
<recommend_for type="boolean">true</recommend_for>
|
34
|
+
<sticky type="boolean" nil="true"/>
|
35
|
+
</user_shelf>
|
36
|
+
<user_shelf>
|
37
|
+
<id type="integer">3700</id>
|
38
|
+
<name>to-read</name>
|
39
|
+
<book_count type="integer">0</book_count>
|
40
|
+
<exclusive_flag type="boolean">true</exclusive_flag>
|
41
|
+
<description nil="true"/>
|
42
|
+
<sort nil="true"/>
|
43
|
+
<order>a</order>
|
44
|
+
<per_page type="integer" nil="true"/>
|
45
|
+
<display_fields/>
|
46
|
+
<featured type="boolean">false</featured>
|
47
|
+
<recommend_for type="boolean">true</recommend_for>
|
48
|
+
<sticky type="boolean" nil="true"/>
|
49
|
+
</user_shelf>
|
50
|
+
</shelves>
|
51
|
+
</GoodreadsResponse>
|
data/spec/goodreads_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodreads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Sosedoff
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 4.1.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 4.1.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: activesupport
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,22 @@ dependencies:
|
|
126
126
|
name: i18n
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0.6'
|
132
|
+
- - "<"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '2'
|
132
135
|
type: :runtime
|
133
136
|
prerelease: false
|
134
137
|
version_requirements: !ruby/object:Gem::Requirement
|
135
138
|
requirements:
|
136
|
-
- - "
|
139
|
+
- - ">="
|
137
140
|
- !ruby/object:Gem::Version
|
138
141
|
version: '0.6'
|
142
|
+
- - "<"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '2'
|
139
145
|
- !ruby/object:Gem::Dependency
|
140
146
|
name: oauth
|
141
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,6 +189,7 @@ files:
|
|
183
189
|
- spec/authentication_spec.rb
|
184
190
|
- spec/client_spec.rb
|
185
191
|
- spec/fixtures/author.xml
|
192
|
+
- spec/fixtures/author_books.xml
|
186
193
|
- spec/fixtures/author_by_name.xml
|
187
194
|
- spec/fixtures/book.xml
|
188
195
|
- spec/fixtures/empty.xml
|
@@ -192,9 +199,14 @@ files:
|
|
192
199
|
- spec/fixtures/oauth_response.xml
|
193
200
|
- spec/fixtures/recent_reviews.xml
|
194
201
|
- spec/fixtures/review.xml
|
202
|
+
- spec/fixtures/review_create.xml
|
203
|
+
- spec/fixtures/review_show_by_user_and_book.xml
|
204
|
+
- spec/fixtures/review_update.xml
|
195
205
|
- spec/fixtures/reviews.xml
|
196
206
|
- spec/fixtures/reviews_empty.xml
|
197
207
|
- spec/fixtures/search_books_by_name.xml
|
208
|
+
- spec/fixtures/shelf_add_to_shelf.xml
|
209
|
+
- spec/fixtures/shelf_list.xml
|
198
210
|
- spec/fixtures/to-read-p2.xml
|
199
211
|
- spec/fixtures/to-read.xml
|
200
212
|
- spec/fixtures/user.xml
|
@@ -204,7 +216,7 @@ homepage: http://github.com/sosedoff/goodreads
|
|
204
216
|
licenses:
|
205
217
|
- MIT
|
206
218
|
metadata: {}
|
207
|
-
post_install_message:
|
219
|
+
post_install_message:
|
208
220
|
rdoc_options: []
|
209
221
|
require_paths:
|
210
222
|
- lib
|
@@ -219,15 +231,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
231
|
- !ruby/object:Gem::Version
|
220
232
|
version: '0'
|
221
233
|
requirements: []
|
222
|
-
|
223
|
-
|
224
|
-
signing_key:
|
234
|
+
rubygems_version: 3.0.8
|
235
|
+
signing_key:
|
225
236
|
specification_version: 4
|
226
237
|
summary: Goodreads API wrapper
|
227
238
|
test_files:
|
228
239
|
- spec/authentication_spec.rb
|
229
240
|
- spec/client_spec.rb
|
230
241
|
- spec/fixtures/author.xml
|
242
|
+
- spec/fixtures/author_books.xml
|
231
243
|
- spec/fixtures/author_by_name.xml
|
232
244
|
- spec/fixtures/book.xml
|
233
245
|
- spec/fixtures/empty.xml
|
@@ -237,9 +249,14 @@ test_files:
|
|
237
249
|
- spec/fixtures/oauth_response.xml
|
238
250
|
- spec/fixtures/recent_reviews.xml
|
239
251
|
- spec/fixtures/review.xml
|
252
|
+
- spec/fixtures/review_create.xml
|
253
|
+
- spec/fixtures/review_show_by_user_and_book.xml
|
254
|
+
- spec/fixtures/review_update.xml
|
240
255
|
- spec/fixtures/reviews.xml
|
241
256
|
- spec/fixtures/reviews_empty.xml
|
242
257
|
- spec/fixtures/search_books_by_name.xml
|
258
|
+
- spec/fixtures/shelf_add_to_shelf.xml
|
259
|
+
- spec/fixtures/shelf_list.xml
|
243
260
|
- spec/fixtures/to-read-p2.xml
|
244
261
|
- spec/fixtures/to-read.xml
|
245
262
|
- spec/fixtures/user.xml
|