lexile 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/Gemfile +0 -11
- data/README.md +41 -17
- data/bin/console +20 -0
- data/lexile.gemspec +8 -0
- data/lib/lexile.rb +3 -0
- data/lib/lexile/api/books.rb +5 -4
- data/lib/lexile/api/client.rb +5 -4
- data/lib/lexile/api/page.rb +74 -0
- data/lib/lexile/api/page_list.rb +44 -0
- data/lib/lexile/api/result_list.rb +31 -0
- data/lib/lexile/book.rb +1 -1
- data/lib/lexile/configuration.rb +9 -5
- data/lib/lexile/model.rb +1 -2
- data/lib/lexile/version.rb +1 -1
- data/spec/lexile/api/books_spec.rb +16 -16
- data/spec/lexile/configuration_spec.rb +2 -2
- data/spec/lexile/model_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -9
- data/spec/vcr_tapes/books.yml +543 -172
- data/spec/vcr_tapes/errors.yml +25 -339
- metadata +98 -3
data/spec/vcr_tapes/errors.yml
CHANGED
@@ -2,338 +2,55 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Lexile API Ruby Gem by <USERNAME>
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 301
|
15
|
-
message: MOVED PERMANENTLY
|
16
|
-
headers:
|
17
|
-
Content-Type:
|
18
|
-
- text/html; charset=utf-8
|
19
|
-
Date:
|
20
|
-
- Sun, 26 Oct 2014 15:30:11 GMT
|
21
|
-
Location:
|
22
|
-
- https://fabapi.lexile.com/api/fab/v2/book/?format=json
|
23
|
-
Server:
|
24
|
-
- nginx/1.4.6 (Ubuntu)
|
25
|
-
Content-Length:
|
26
|
-
- '0'
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
body:
|
30
|
-
encoding: UTF-8
|
31
|
-
string: ''
|
32
|
-
http_version:
|
33
|
-
recorded_at: Sun, 26 Oct 2014 15:31:33 GMT
|
34
|
-
- request:
|
35
|
-
method: get
|
36
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/v2/book/?format=json
|
5
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/book
|
37
6
|
body:
|
38
7
|
encoding: US-ASCII
|
39
8
|
string: ''
|
40
9
|
headers:
|
41
10
|
User-Agent:
|
42
11
|
- Lexile API Ruby Gem by <USERNAME>
|
12
|
+
Accept:
|
13
|
+
- application/json
|
43
14
|
response:
|
44
15
|
status:
|
45
16
|
code: 200
|
46
17
|
message: OK
|
47
18
|
headers:
|
48
|
-
Cache-Control:
|
49
|
-
- no-cache
|
50
19
|
Content-Type:
|
51
|
-
-
|
20
|
+
- text/html
|
52
21
|
Date:
|
53
|
-
-
|
54
|
-
Server:
|
55
|
-
- nginx/1.4.6 (Ubuntu)
|
56
|
-
Vary:
|
57
|
-
- Accept
|
58
|
-
Transfer-Encoding:
|
59
|
-
- chunked
|
60
|
-
Connection:
|
61
|
-
- keep-alive
|
62
|
-
body:
|
63
|
-
encoding: UTF-8
|
64
|
-
string: '{"meta": {"limit": 20, "next": "/api/fab/v2/book/?offset=20&limit=20&format=json",
|
65
|
-
"offset": 0, "previous": null, "total_count": 195487}, "objects": [{"ISBN":
|
66
|
-
"0743983599", "ISBN13": "9780743983594", "author": "Walsh, Kenneth", "booktype":
|
67
|
-
"Leveled Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
68
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": "2005",
|
69
|
-
"id": 11367, "keyword": null, "language": "English", "lexile": 680, "lexile_code":
|
70
|
-
"", "lexile_code_spanish": "", "lexile_display": "680L", "lexile_spanish":
|
71
|
-
null, "max_age": null, "min_age": null, "pages": 24, "publisher": "Teacher
|
72
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11367/",
|
73
|
-
"serial": 375717, "series": "Early Fluent Plus Readers", "summary": "Explore
|
74
|
-
outer space and learn about stars, galaxies, planets, asteroids and how these
|
75
|
-
bodies are all related to one another. Featured in this book are photographs
|
76
|
-
from outer space and related vocabulary.", "timestamp": "2014-06-27T23:59:38",
|
77
|
-
"title": "Outer Space: Early Fluent Plus", "word_count": 1016, "word_count_spanish":
|
78
|
-
null}, {"ISBN": "0743983580", "ISBN13": "9780743983587", "author": "Walsh,
|
79
|
-
Kenneth", "booktype": "Leveled Reader", "call_number": null, "categories":
|
80
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
81
|
-
"copyright": "2005", "id": 11366, "keyword": null, "language": "English",
|
82
|
-
"lexile": 640, "lexile_code": "", "lexile_code_spanish": "", "lexile_display":
|
83
|
-
"640L", "lexile_spanish": null, "max_age": null, "min_age": null, "pages":
|
84
|
-
24, "publisher": "Teacher Created Materials, Incorporated", "resource_uri":
|
85
|
-
"/api/fab/v2/book/11366/", "serial": 439158, "series": "Early Fluent Plus
|
86
|
-
Readers", "summary": "What make our planet so unique? Learn what Earth is
|
87
|
-
made of and all about its unique conditions that sustain life. This book includes
|
88
|
-
the history of Earth''s evolving geography and life forms, and vocabulary
|
89
|
-
related to the earth and its characteristics.", "timestamp": "2014-06-28T03:31:57",
|
90
|
-
"title": "Our Earth: Early Fluent Plus", "word_count": 740, "word_count_spanish":
|
91
|
-
null}, {"ISBN": "0743983572", "ISBN13": "9780743983570", "author": "Rice,
|
92
|
-
Howard", "booktype": "Leveled Reader", "call_number": null, "categories":
|
93
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
94
|
-
"copyright": "2005", "id": 11365, "keyword": null, "language": "English",
|
95
|
-
"lexile": 700, "lexile_code": "", "lexile_code_spanish": "", "lexile_display":
|
96
|
-
"700L", "lexile_spanish": null, "max_age": null, "min_age": null, "pages":
|
97
|
-
24, "publisher": "Teacher Created Materials, Incorporated", "resource_uri":
|
98
|
-
"/api/fab/v2/book/11365/", "serial": 375972, "series": "Early Fluent Plus
|
99
|
-
Readers", "summary": "Journey through Earth''s wet and wild rainforests with
|
100
|
-
vivid photographs of the most unique plants and animals in the world''s most
|
101
|
-
untouched forests. Readers are introduced to the importance of protecting
|
102
|
-
the rainforests and vocabulary related to the rainforest and its amazing inhabitants.",
|
103
|
-
"timestamp": "2014-06-28T00:00:43", "title": "In the Rainforest: Early Fluent
|
104
|
-
Plus", "word_count": 690, "word_count_spanish": null}, {"ISBN": "0743983556",
|
105
|
-
"ISBN13": "9780743983556", "author": "Rice, Howard", "booktype": "Leveled
|
106
|
-
Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
107
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": "2005",
|
108
|
-
"id": 11363, "keyword": null, "language": "English", "lexile": 740, "lexile_code":
|
109
|
-
"", "lexile_code_spanish": "", "lexile_display": "740L", "lexile_spanish":
|
110
|
-
null, "max_age": null, "min_age": null, "pages": 24, "publisher": "Teacher
|
111
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11363/",
|
112
|
-
"serial": 419392, "series": "Early Fluent Plus Readers", "summary": "Take
|
113
|
-
a trip through the different forests of the world to discover where forests
|
114
|
-
are located and what types of animals are native to forests. This book features
|
115
|
-
colorful pictures, a detailed map of forests on earth, and vocabulary related
|
116
|
-
to forests.", "timestamp": "2014-06-28T02:25:36", "title": "In the Forest:
|
117
|
-
Early Fluent Plus", "word_count": 623, "word_count_spanish": null}, {"ISBN":
|
118
|
-
"0743983564", "ISBN13": "9780743983563", "author": "Rice, Howard", "booktype":
|
119
|
-
"Leveled Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
120
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": "2005",
|
121
|
-
"id": 11364, "keyword": null, "language": "English", "lexile": 630, "lexile_code":
|
122
|
-
"", "lexile_code_spanish": "", "lexile_display": "630L", "lexile_spanish":
|
123
|
-
null, "max_age": null, "min_age": null, "pages": 24, "publisher": "Teacher
|
124
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11364/",
|
125
|
-
"serial": 375791, "series": "Early Fluent Plus Readers", "summary": "Discover
|
126
|
-
the heat of the desert, its plant and animal life, and principles of evaporation
|
127
|
-
and erosion. A detailed map is included that shows the locations of the world''s
|
128
|
-
deserts as well as a graph that shows largest deserts in the world.", "timestamp":
|
129
|
-
"2014-06-27T23:59:50", "title": "In the Desert: Early Fluent Plus", "word_count":
|
130
|
-
652, "word_count_spanish": null}, {"ISBN": "074398353X", "ISBN13": "9780743983532",
|
131
|
-
"author": "", "booktype": "Leveled Reader", "call_number": null, "categories":
|
132
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
133
|
-
"copyright": null, "id": 11361, "keyword": null, "language": "English", "lexile":
|
134
|
-
630, "lexile_code": "", "lexile_code_spanish": "", "lexile_display": "630L",
|
135
|
-
"lexile_spanish": null, "max_age": null, "min_age": null, "pages": 24, "publisher":
|
136
|
-
"Teacher Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11361/",
|
137
|
-
"serial": 257784, "series": "Early Fluent Readers", "summary": "Authentic,
|
138
|
-
leveled content that helps students practice and develop their nonfiction
|
139
|
-
reading skills.", "timestamp": "2014-06-02T18:39:09", "title": "All About
|
140
|
-
Skyscrapers", "word_count": 474, "word_count_spanish": null}, {"ISBN": "0743983548",
|
141
|
-
"ISBN13": "9780743983549", "author": "", "booktype": "Leveled Reader", "call_number":
|
142
|
-
null, "categories": [{"id": 18, "name": "Reference & Languages", "resource_uri":
|
143
|
-
"/api/fab/v2/category/18/"}], "copyright": null, "id": 11362, "keyword": null,
|
144
|
-
"language": "English", "lexile": 680, "lexile_code": "", "lexile_code_spanish":
|
145
|
-
"", "lexile_display": "680L", "lexile_spanish": null, "max_age": null, "min_age":
|
146
|
-
null, "pages": 24, "publisher": "Teacher Created Materials, Incorporated",
|
147
|
-
"resource_uri": "/api/fab/v2/book/11362/", "serial": 257691, "series": "Early
|
148
|
-
Fluent Readers", "summary": "Authentic, leveled content that helps students
|
149
|
-
practice and develop their nonfiction reading skills.", "timestamp": "2014-06-02T18:39:24",
|
150
|
-
"title": "All about Chocolate", "word_count": 538, "word_count_spanish": null},
|
151
|
-
{"ISBN": "0743983505", "ISBN13": "9780743983501", "author": "", "booktype":
|
152
|
-
"Leveled Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
153
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
154
|
-
"id": 11358, "keyword": null, "language": "English", "lexile": 560, "lexile_code":
|
155
|
-
"", "lexile_code_spanish": "", "lexile_display": "560L", "lexile_spanish":
|
156
|
-
null, "max_age": null, "min_age": null, "pages": 24, "publisher": "Teacher
|
157
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11358/",
|
158
|
-
"serial": 257685, "series": "Early Fluent Readers", "summary": "Authentic,
|
159
|
-
leveled content that helps students practice and develop their nonfiction
|
160
|
-
reading skills.", "timestamp": "2014-06-02T18:39:23", "title": "Horses", "word_count":
|
161
|
-
578, "word_count_spanish": null}, {"ISBN": "0743983513", "ISBN13": "9780743983518",
|
162
|
-
"author": "", "booktype": "Leveled Reader", "call_number": null, "categories":
|
163
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
164
|
-
"copyright": null, "id": 11359, "keyword": null, "language": "English", "lexile":
|
165
|
-
450, "lexile_code": "", "lexile_code_spanish": "", "lexile_display": "450L",
|
166
|
-
"lexile_spanish": null, "max_age": null, "min_age": null, "pages": 24, "publisher":
|
167
|
-
"Teacher Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11359/",
|
168
|
-
"serial": 257686, "series": "Early Fluent Readers", "summary": "Authentic,
|
169
|
-
leveled content that helps students practice and develop their nonfiction
|
170
|
-
reading skills.", "timestamp": "2014-06-02T18:39:23", "title": "Snakes", "word_count":
|
171
|
-
440, "word_count_spanish": null}, {"ISBN": "0743983521", "ISBN13": "9780743983525",
|
172
|
-
"author": "", "booktype": "Leveled Reader", "call_number": null, "categories":
|
173
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
174
|
-
"copyright": null, "id": 11360, "keyword": null, "language": "English", "lexile":
|
175
|
-
660, "lexile_code": "", "lexile_code_spanish": "", "lexile_display": "660L",
|
176
|
-
"lexile_spanish": null, "max_age": null, "min_age": null, "pages": 24, "publisher":
|
177
|
-
"Teacher Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11360/",
|
178
|
-
"serial": 257671, "series": "Early Fluent Readers", "summary": "Authentic,
|
179
|
-
leveled content that helps students practice and develop their nonfiction
|
180
|
-
reading skills.", "timestamp": "2014-06-02T18:39:19", "title": "All About
|
181
|
-
Hand-Blown Glass", "word_count": 501, "word_count_spanish": null}, {"ISBN":
|
182
|
-
"0743983475", "ISBN13": "9780743983471", "author": "", "booktype": "Leveled
|
183
|
-
Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
184
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
185
|
-
"id": 11355, "keyword": null, "language": "English", "lexile": 660, "lexile_code":
|
186
|
-
"", "lexile_code_spanish": "", "lexile_display": "660L", "lexile_spanish":
|
187
|
-
null, "max_age": null, "min_age": null, "pages": 20, "publisher": "Teacher
|
188
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11355/",
|
189
|
-
"serial": 257734, "series": "Early Fluent Readers", "summary": "Authentic,
|
190
|
-
leveled content that helps students practice and develop their nonfiction
|
191
|
-
reading skills.", "timestamp": "2014-06-02T18:39:33", "title": "Tornadoes
|
192
|
-
and Hurricanes", "word_count": 490, "word_count_spanish": null}, {"ISBN":
|
193
|
-
"0743983483", "ISBN13": "9780743983488", "author": "", "booktype": "Leveled
|
194
|
-
Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
195
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
196
|
-
"id": 11356, "keyword": null, "language": "English", "lexile": 660, "lexile_code":
|
197
|
-
"", "lexile_code_spanish": "", "lexile_display": "660L", "lexile_spanish":
|
198
|
-
null, "max_age": null, "min_age": null, "pages": 20, "publisher": "Teacher
|
199
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11356/",
|
200
|
-
"serial": 257801, "series": "Early Fluent Readers", "summary": "Authentic,
|
201
|
-
leveled content that helps students practice and develop their nonfiction
|
202
|
-
reading skills.", "timestamp": "2014-06-02T18:39:13", "title": "Volcanoes",
|
203
|
-
"word_count": 453, "word_count_spanish": null}, {"ISBN": "0743983491", "ISBN13":
|
204
|
-
"9780743983495", "author": "", "booktype": "Leveled Reader", "call_number":
|
205
|
-
null, "categories": [{"id": 18, "name": "Reference & Languages", "resource_uri":
|
206
|
-
"/api/fab/v2/category/18/"}], "copyright": null, "id": 11357, "keyword": null,
|
207
|
-
"language": "English", "lexile": 620, "lexile_code": "", "lexile_code_spanish":
|
208
|
-
"", "lexile_display": "620L", "lexile_spanish": null, "max_age": null, "min_age":
|
209
|
-
null, "pages": 24, "publisher": "Teacher Created Materials, Incorporated",
|
210
|
-
"resource_uri": "/api/fab/v2/book/11357/", "serial": 257687, "series": "Early
|
211
|
-
Fluent Readers", "summary": "Authentic, leveled content that helps students
|
212
|
-
practice and develop their nonfiction reading skills.", "timestamp": "2014-06-02T18:39:24",
|
213
|
-
"title": "Eagles", "word_count": 496, "word_count_spanish": null}, {"ISBN":
|
214
|
-
"0743983459", "ISBN13": "9780743983457", "author": "", "booktype": "Leveled
|
215
|
-
Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
216
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
217
|
-
"id": 11353, "keyword": null, "language": "English", "lexile": 600, "lexile_code":
|
218
|
-
"", "lexile_code_spanish": "", "lexile_display": "600L", "lexile_spanish":
|
219
|
-
null, "max_age": null, "min_age": null, "pages": 20, "publisher": "Teacher
|
220
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11353/",
|
221
|
-
"serial": 258581, "series": "Early Fluent Readers", "summary": "Authentic,
|
222
|
-
leveled content that helps students practice and develop their nonfiction
|
223
|
-
reading skills.", "timestamp": "2014-06-02T18:45:47", "title": "Caribbean,
|
224
|
-
The", "word_count": 393, "word_count_spanish": null}, {"ISBN": "0743983467",
|
225
|
-
"ISBN13": "9780743983464", "author": "", "booktype": "Leveled Reader", "call_number":
|
226
|
-
null, "categories": [{"id": 18, "name": "Reference & Languages", "resource_uri":
|
227
|
-
"/api/fab/v2/category/18/"}], "copyright": null, "id": 11354, "keyword": null,
|
228
|
-
"language": "English", "lexile": 500, "lexile_code": "", "lexile_code_spanish":
|
229
|
-
"", "lexile_display": "500L", "lexile_spanish": null, "max_age": null, "min_age":
|
230
|
-
null, "pages": 20, "publisher": "Teacher Created Materials, Incorporated",
|
231
|
-
"resource_uri": "/api/fab/v2/book/11354/", "serial": 258565, "series": "Early
|
232
|
-
Fluent Readers", "summary": "Authentic, leveled content that helps students
|
233
|
-
practice and develop their nonfiction reading skills.", "timestamp": "2014-06-02T18:44:42",
|
234
|
-
"title": "Earthquakes", "word_count": 456, "word_count_spanish": null}, {"ISBN":
|
235
|
-
"0743983432", "ISBN13": "9780743983433", "author": "", "booktype": "Leveled
|
236
|
-
Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
237
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
238
|
-
"id": 11351, "keyword": null, "language": "English", "lexile": 500, "lexile_code":
|
239
|
-
"", "lexile_code_spanish": "", "lexile_display": "500L", "lexile_spanish":
|
240
|
-
null, "max_age": null, "min_age": null, "pages": 20, "publisher": "Teacher
|
241
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11351/",
|
242
|
-
"serial": 257823, "series": "Early Fluent Readers", "summary": "Authentic,
|
243
|
-
leveled content that helps students practice and develop their nonfiction
|
244
|
-
reading skills.", "timestamp": "2014-06-02T18:39:24", "title": "Mexico", "word_count":
|
245
|
-
330, "word_count_spanish": null}, {"ISBN": "0743983440", "ISBN13": "9780743983440",
|
246
|
-
"author": "", "booktype": "Leveled Reader", "call_number": null, "categories":
|
247
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
248
|
-
"copyright": null, "id": 11352, "keyword": null, "language": "English", "lexile":
|
249
|
-
540, "lexile_code": "", "lexile_code_spanish": "", "lexile_display": "540L",
|
250
|
-
"lexile_spanish": null, "max_age": null, "min_age": null, "pages": 20, "publisher":
|
251
|
-
"Teacher Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11352/",
|
252
|
-
"serial": 257777, "series": "Early Fluent Readers", "summary": "Authentic,
|
253
|
-
leveled content that helps students practice and develop their nonfiction
|
254
|
-
reading skills.", "timestamp": "2014-06-02T18:39:03", "title": "Canada", "word_count":
|
255
|
-
322, "word_count_spanish": null}, {"ISBN": "0743983416", "ISBN13": "9780743983419",
|
256
|
-
"author": "", "booktype": "Leveled Reader", "call_number": null, "categories":
|
257
|
-
[{"id": 18, "name": "Reference & Languages", "resource_uri": "/api/fab/v2/category/18/"}],
|
258
|
-
"copyright": null, "id": 11349, "keyword": null, "language": "English", "lexile":
|
259
|
-
480, "lexile_code": "", "lexile_code_spanish": "", "lexile_display": "480L",
|
260
|
-
"lexile_spanish": null, "max_age": null, "min_age": null, "pages": 20, "publisher":
|
261
|
-
"Teacher Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11349/",
|
262
|
-
"serial": 258610, "series": "Early Fluent Readers", "summary": "Authentic,
|
263
|
-
leveled content that helps students practice and develop their nonfiction
|
264
|
-
reading skills.", "timestamp": "2014-06-02T18:45:01", "title": "Visit to a
|
265
|
-
Farm, A", "word_count": 307, "word_count_spanish": null}, {"ISBN": "0743983424",
|
266
|
-
"ISBN13": "9780743983426", "author": "", "booktype": "Leveled Reader", "call_number":
|
267
|
-
null, "categories": [{"id": 18, "name": "Reference & Languages", "resource_uri":
|
268
|
-
"/api/fab/v2/category/18/"}], "copyright": null, "id": 11350, "keyword": null,
|
269
|
-
"language": "English", "lexile": 420, "lexile_code": "", "lexile_code_spanish":
|
270
|
-
"", "lexile_display": "420L", "lexile_spanish": null, "max_age": null, "min_age":
|
271
|
-
null, "pages": 20, "publisher": "Teacher Created Materials, Incorporated",
|
272
|
-
"resource_uri": "/api/fab/v2/book/11350/", "serial": 258595, "series": "Early
|
273
|
-
Fluent Readers", "summary": "Authentic, leveled content that helps students
|
274
|
-
practice and develop their nonfiction reading skills.", "timestamp": "2014-06-02T18:44:57",
|
275
|
-
"title": "Visit to a Publisher, A", "word_count": 399, "word_count_spanish":
|
276
|
-
null}, {"ISBN": "0743983408", "ISBN13": "9780743983402", "author": "", "booktype":
|
277
|
-
"Leveled Reader", "call_number": null, "categories": [{"id": 18, "name": "Reference
|
278
|
-
& Languages", "resource_uri": "/api/fab/v2/category/18/"}], "copyright": null,
|
279
|
-
"id": 11348, "keyword": null, "language": "English", "lexile": 380, "lexile_code":
|
280
|
-
"", "lexile_code_spanish": "", "lexile_display": "380L", "lexile_spanish":
|
281
|
-
null, "max_age": null, "min_age": null, "pages": 20, "publisher": "Teacher
|
282
|
-
Created Materials, Incorporated", "resource_uri": "/api/fab/v2/book/11348/",
|
283
|
-
"serial": 257902, "series": "Early Fluent Readers", "summary": "Authentic,
|
284
|
-
leveled content that helps students practice and develop their nonfiction
|
285
|
-
reading skills.", "timestamp": "2014-06-02T18:40:00", "title": "Visit to an
|
286
|
-
Automobile Factory", "word_count": 355, "word_count_spanish": null}]}'
|
287
|
-
http_version:
|
288
|
-
recorded_at: Sun, 26 Oct 2014 15:31:34 GMT
|
289
|
-
- request:
|
290
|
-
method: get
|
291
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/v2/404?format=json
|
292
|
-
body:
|
293
|
-
encoding: US-ASCII
|
294
|
-
string: ''
|
295
|
-
headers:
|
296
|
-
User-Agent:
|
297
|
-
- Lexile API Ruby Gem by <USERNAME>
|
298
|
-
response:
|
299
|
-
status:
|
300
|
-
code: 404
|
301
|
-
message: NOT FOUND
|
302
|
-
headers:
|
303
|
-
Content-Type:
|
304
|
-
- text/html; charset=utf-8
|
305
|
-
Date:
|
306
|
-
- Sun, 26 Oct 2014 15:30:13 GMT
|
22
|
+
- Wed, 05 Aug 2015 09:09:45 GMT
|
307
23
|
Server:
|
308
24
|
- nginx/1.4.6 (Ubuntu)
|
309
25
|
Content-Length:
|
310
|
-
- '
|
26
|
+
- '78'
|
311
27
|
Connection:
|
312
28
|
- keep-alive
|
313
29
|
body:
|
314
30
|
encoding: UTF-8
|
315
|
-
string:
|
316
|
-
on this server.</p>"
|
31
|
+
string: '{}'
|
317
32
|
http_version:
|
318
|
-
recorded_at:
|
33
|
+
recorded_at: Wed, 05 Aug 2015 09:10:39 GMT
|
319
34
|
- request:
|
320
35
|
method: get
|
321
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/
|
36
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/404
|
322
37
|
body:
|
323
38
|
encoding: US-ASCII
|
324
39
|
string: ''
|
325
40
|
headers:
|
326
41
|
User-Agent:
|
327
42
|
- Lexile API Ruby Gem by <USERNAME>
|
43
|
+
Accept:
|
44
|
+
- application/json
|
328
45
|
response:
|
329
46
|
status:
|
330
47
|
code: 404
|
331
48
|
message: NOT FOUND
|
332
49
|
headers:
|
333
50
|
Content-Type:
|
334
|
-
- text/html
|
51
|
+
- text/html
|
335
52
|
Date:
|
336
|
-
-
|
53
|
+
- Wed, 05 Aug 2015 09:08:00 GMT
|
337
54
|
Server:
|
338
55
|
- nginx/1.4.6 (Ubuntu)
|
339
56
|
Transfer-Encoding:
|
@@ -342,69 +59,38 @@ http_interactions:
|
|
342
59
|
- keep-alive
|
343
60
|
body:
|
344
61
|
encoding: UTF-8
|
345
|
-
string: "<h1>Not Found</h1><p>The requested URL /
|
346
|
-
not found on this server.</p>"
|
62
|
+
string: "<h1>Not Found</h1><p>The requested URL /404 was not found on this server.</p>"
|
347
63
|
http_version:
|
348
|
-
recorded_at:
|
64
|
+
recorded_at: Wed, 05 Aug 2015 09:10:41 GMT
|
349
65
|
- request:
|
350
66
|
method: get
|
351
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/
|
352
|
-
body:
|
353
|
-
encoding: US-ASCII
|
354
|
-
string: ''
|
355
|
-
headers:
|
356
|
-
User-Agent:
|
357
|
-
- Lexile API Ruby Gem by <USERNAME>
|
358
|
-
response:
|
359
|
-
status:
|
360
|
-
code: 404
|
361
|
-
message: NOT FOUND
|
362
|
-
headers:
|
363
|
-
Content-Type:
|
364
|
-
- text/html; charset=utf-8
|
365
|
-
Date:
|
366
|
-
- Sun, 26 Oct 2014 21:50:10 GMT
|
367
|
-
Server:
|
368
|
-
- nginx/1.4.6 (Ubuntu)
|
369
|
-
Content-Length:
|
370
|
-
- '98'
|
371
|
-
Connection:
|
372
|
-
- keep-alive
|
373
|
-
body:
|
374
|
-
encoding: UTF-8
|
375
|
-
string: "<h1>Not Found</h1><p>The requested URL /api/fab/api_version/book was
|
376
|
-
not found on this server.</p>"
|
377
|
-
http_version:
|
378
|
-
recorded_at: Sun, 26 Oct 2014 21:48:24 GMT
|
379
|
-
- request:
|
380
|
-
method: get
|
381
|
-
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/v2/401?format=json
|
67
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/401
|
382
68
|
body:
|
383
69
|
encoding: US-ASCII
|
384
70
|
string: ''
|
385
71
|
headers:
|
386
72
|
User-Agent:
|
387
73
|
- Lexile API Ruby Gem by <USERNAME>
|
74
|
+
Accept:
|
75
|
+
- application/json
|
388
76
|
response:
|
389
77
|
status:
|
390
78
|
code: 401
|
391
|
-
message:
|
79
|
+
message: NOT FOUND
|
392
80
|
headers:
|
393
81
|
Content-Type:
|
394
|
-
- text/html
|
82
|
+
- text/html
|
395
83
|
Date:
|
396
|
-
-
|
84
|
+
- Wed, 05 Aug 2015 09:08:03 GMT
|
397
85
|
Server:
|
398
86
|
- nginx/1.4.6 (Ubuntu)
|
399
|
-
Www-Authenticate:
|
400
|
-
- Basic realm="Lexile.com Services"
|
401
87
|
Content-Length:
|
402
|
-
- '
|
88
|
+
- '77'
|
403
89
|
Connection:
|
404
90
|
- keep-alive
|
405
91
|
body:
|
406
92
|
encoding: UTF-8
|
407
|
-
string:
|
93
|
+
string: "<h1>Not Found</h1><p>The requested URL /401 was not found on this server.</p>"
|
408
94
|
http_version:
|
409
|
-
recorded_at:
|
410
|
-
recorded_with: VCR 2.9.
|
95
|
+
recorded_at: Wed, 05 Aug 2015 09:10:43 GMT
|
96
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lexile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Alvarez
|
@@ -38,10 +38,101 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.0
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.0'
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.3.0
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '10.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '10.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '2'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: webmock
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: vcr
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.8'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '2.8'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: jeweler
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
41
131
|
description: 'A gem for the Lexile® database API '
|
42
132
|
email:
|
43
133
|
- mauricio@curriculet.com
|
44
|
-
executables:
|
134
|
+
executables:
|
135
|
+
- console
|
45
136
|
extensions: []
|
46
137
|
extra_rdoc_files: []
|
47
138
|
files:
|
@@ -51,12 +142,16 @@ files:
|
|
51
142
|
- LICENSE.txt
|
52
143
|
- README.md
|
53
144
|
- Rakefile
|
145
|
+
- bin/console
|
54
146
|
- lexile.gemspec
|
55
147
|
- lib/lexile.rb
|
56
148
|
- lib/lexile/api/books.rb
|
57
149
|
- lib/lexile/api/client.rb
|
58
150
|
- lib/lexile/api/endpoints.rb
|
151
|
+
- lib/lexile/api/page.rb
|
152
|
+
- lib/lexile/api/page_list.rb
|
59
153
|
- lib/lexile/api/resource.rb
|
154
|
+
- lib/lexile/api/result_list.rb
|
60
155
|
- lib/lexile/book.rb
|
61
156
|
- lib/lexile/configuration.rb
|
62
157
|
- lib/lexile/errors.rb
|
@@ -91,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
186
|
version: '0'
|
92
187
|
requirements: []
|
93
188
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
189
|
+
rubygems_version: 2.4.6
|
95
190
|
signing_key:
|
96
191
|
specification_version: 4
|
97
192
|
summary: A gem to find a book's Lexile DB entry by name or ISBN13
|