lexile 0.0.2
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 +7 -0
- data/.gitignore +18 -0
- data/.travis.yml +14 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +22 -0
- data/README.md +93 -0
- data/Rakefile +30 -0
- data/lexile.gemspec +25 -0
- data/lib/lexile/api/books.rb +26 -0
- data/lib/lexile/api/client.rb +105 -0
- data/lib/lexile/api/endpoints.rb +20 -0
- data/lib/lexile/api/resource.rb +27 -0
- data/lib/lexile/book.rb +41 -0
- data/lib/lexile/configuration.rb +73 -0
- data/lib/lexile/errors.rb +27 -0
- data/lib/lexile/model.rb +103 -0
- data/lib/lexile/version.rb +3 -0
- data/lib/lexile.rb +22 -0
- data/spec/lexile/api/books_spec.rb +113 -0
- data/spec/lexile/api/client_spec.rb +97 -0
- data/spec/lexile/configuration_spec.rb +51 -0
- data/spec/lexile/errors_spec.rb +18 -0
- data/spec/lexile/model_spec.rb +41 -0
- data/spec/spec_helper.rb +39 -0
- data/spec/support/lexile_helper.rb +29 -0
- data/spec/vcr_tapes/books.yml +342 -0
- data/spec/vcr_tapes/errors.yml +410 -0
- metadata +107 -0
@@ -0,0 +1,410 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/v2/book?format=json
|
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
|
37
|
+
body:
|
38
|
+
encoding: US-ASCII
|
39
|
+
string: ''
|
40
|
+
headers:
|
41
|
+
User-Agent:
|
42
|
+
- Lexile API Ruby Gem by <USERNAME>
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 200
|
46
|
+
message: OK
|
47
|
+
headers:
|
48
|
+
Cache-Control:
|
49
|
+
- no-cache
|
50
|
+
Content-Type:
|
51
|
+
- application/json
|
52
|
+
Date:
|
53
|
+
- Sun, 26 Oct 2014 15:33:20 GMT
|
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
|
307
|
+
Server:
|
308
|
+
- nginx/1.4.6 (Ubuntu)
|
309
|
+
Content-Length:
|
310
|
+
- '88'
|
311
|
+
Connection:
|
312
|
+
- keep-alive
|
313
|
+
body:
|
314
|
+
encoding: UTF-8
|
315
|
+
string: "<h1>Not Found</h1><p>The requested URL /api/fab/v2/404 was not found
|
316
|
+
on this server.</p>"
|
317
|
+
http_version:
|
318
|
+
recorded_at: Sun, 26 Oct 2014 15:31:34 GMT
|
319
|
+
- request:
|
320
|
+
method: get
|
321
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/api_version/404?format=json
|
322
|
+
body:
|
323
|
+
encoding: US-ASCII
|
324
|
+
string: ''
|
325
|
+
headers:
|
326
|
+
User-Agent:
|
327
|
+
- Lexile API Ruby Gem by <USERNAME>
|
328
|
+
response:
|
329
|
+
status:
|
330
|
+
code: 404
|
331
|
+
message: NOT FOUND
|
332
|
+
headers:
|
333
|
+
Content-Type:
|
334
|
+
- text/html; charset=utf-8
|
335
|
+
Date:
|
336
|
+
- Sun, 26 Oct 2014 21:50:10 GMT
|
337
|
+
Server:
|
338
|
+
- nginx/1.4.6 (Ubuntu)
|
339
|
+
Transfer-Encoding:
|
340
|
+
- chunked
|
341
|
+
Connection:
|
342
|
+
- keep-alive
|
343
|
+
body:
|
344
|
+
encoding: UTF-8
|
345
|
+
string: "<h1>Not Found</h1><p>The requested URL /api/fab/api_version/404 was
|
346
|
+
not found on this server.</p>"
|
347
|
+
http_version:
|
348
|
+
recorded_at: Sun, 26 Oct 2014 21:48:24 GMT
|
349
|
+
- request:
|
350
|
+
method: get
|
351
|
+
uri: https://<USERNAME>:<PASSWORD>@fabapi.lexile.com/api/fab/api_version/book?format=json
|
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
|
382
|
+
body:
|
383
|
+
encoding: US-ASCII
|
384
|
+
string: ''
|
385
|
+
headers:
|
386
|
+
User-Agent:
|
387
|
+
- Lexile API Ruby Gem by <USERNAME>
|
388
|
+
response:
|
389
|
+
status:
|
390
|
+
code: 401
|
391
|
+
message: UNAUTHORIZED
|
392
|
+
headers:
|
393
|
+
Content-Type:
|
394
|
+
- text/html; charset=utf-8
|
395
|
+
Date:
|
396
|
+
- Mon, 27 Oct 2014 01:54:20 GMT
|
397
|
+
Server:
|
398
|
+
- nginx/1.4.6 (Ubuntu)
|
399
|
+
Www-Authenticate:
|
400
|
+
- Basic realm="Lexile.com Services"
|
401
|
+
Content-Length:
|
402
|
+
- '0'
|
403
|
+
Connection:
|
404
|
+
- keep-alive
|
405
|
+
body:
|
406
|
+
encoding: UTF-8
|
407
|
+
string: ''
|
408
|
+
http_version:
|
409
|
+
recorded_at: Mon, 27 Oct 2014 01:55:43 GMT
|
410
|
+
recorded_with: VCR 2.9.2
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lexile
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mauricio Alvarez
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.10'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashie
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.0
|
41
|
+
description: 'A gem for the Lexile® database API '
|
42
|
+
email:
|
43
|
+
- mauricio@curriculet.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".travis.yml"
|
50
|
+
- Gemfile
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- lexile.gemspec
|
55
|
+
- lib/lexile.rb
|
56
|
+
- lib/lexile/api/books.rb
|
57
|
+
- lib/lexile/api/client.rb
|
58
|
+
- lib/lexile/api/endpoints.rb
|
59
|
+
- lib/lexile/api/resource.rb
|
60
|
+
- lib/lexile/book.rb
|
61
|
+
- lib/lexile/configuration.rb
|
62
|
+
- lib/lexile/errors.rb
|
63
|
+
- lib/lexile/model.rb
|
64
|
+
- lib/lexile/version.rb
|
65
|
+
- spec/lexile/api/books_spec.rb
|
66
|
+
- spec/lexile/api/client_spec.rb
|
67
|
+
- spec/lexile/configuration_spec.rb
|
68
|
+
- spec/lexile/errors_spec.rb
|
69
|
+
- spec/lexile/model_spec.rb
|
70
|
+
- spec/spec_helper.rb
|
71
|
+
- spec/support/lexile_helper.rb
|
72
|
+
- spec/vcr_tapes/books.yml
|
73
|
+
- spec/vcr_tapes/errors.yml
|
74
|
+
homepage: https://github.com/curriculet/lexile
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.2.2
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: A gem to find a book's Lexile DB entry by name or ISBN13
|
98
|
+
test_files:
|
99
|
+
- spec/lexile/api/books_spec.rb
|
100
|
+
- spec/lexile/api/client_spec.rb
|
101
|
+
- spec/lexile/configuration_spec.rb
|
102
|
+
- spec/lexile/errors_spec.rb
|
103
|
+
- spec/lexile/model_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
- spec/support/lexile_helper.rb
|
106
|
+
- spec/vcr_tapes/books.yml
|
107
|
+
- spec/vcr_tapes/errors.yml
|