npr 0.1.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -5
- data/CHANGELOG.md +17 -4
- data/README.md +1 -16
- data/lib/npr/api/client.rb +14 -10
- data/lib/npr/api/query_builder.rb +1 -5
- data/lib/npr/api/response.rb +1 -1
- data/lib/npr/entity/crop.rb +0 -1
- data/lib/npr/entity/enlargement.rb +0 -2
- data/lib/npr/entity/formats.rb +1 -1
- data/lib/npr/entity/image.rb +30 -8
- data/lib/npr/entity/intro_text.rb +1 -1
- data/lib/npr/entity/link.rb +1 -1
- data/lib/npr/entity/mp3.rb +1 -1
- data/lib/npr/entity/name.rb +1 -1
- data/lib/npr/entity/paragraph.rb +1 -1
- data/lib/npr/entity/program.rb +1 -1
- data/lib/npr/entity/provider.rb +1 -1
- data/lib/npr/entity/story.rb +17 -10
- data/lib/npr/entity/text.rb +19 -0
- data/lib/npr/entity/title.rb +1 -1
- data/lib/npr/errors.rb +6 -6
- data/lib/npr/version.rb +1 -1
- data/npr.gemspec +19 -19
- data/spec/fixtures/json/01_story_full_media.json +520 -1
- data/spec/fixtures/json/02_story_multiple_images.json +561 -1
- data/spec/fixtures/json/03_no_results.json +36 -1
- data/spec/fixtures/json/04_invalid_id.json +3791 -1
- data/spec/fixtures/json/05_no_api_key.json +15 -1
- data/spec/fixtures/json/06_story_multiple_ids.json +1190 -1
- data/spec/support/fake_response.rb +6 -5
- data/spec/unit/api/client_spec.rb +35 -12
- data/spec/unit/entity/image_spec.rb +10 -0
- data/spec/unit/entity/story_spec.rb +1 -1
- data/spec/unit/entity/text_spec.rb +8 -0
- metadata +9 -4
- data/gemfiles/Gemfile.rb-1.8.7 +0 -6
@@ -1 +1,15 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": "0.6",
|
3
|
+
"messages": {
|
4
|
+
"message": {
|
5
|
+
"id": "310",
|
6
|
+
"level": "error",
|
7
|
+
"text": {
|
8
|
+
"$text": "The API key passed in () was invalid or no API key was passed in. Please register for a valid API key."
|
9
|
+
},
|
10
|
+
"timestamp": {
|
11
|
+
"$text": "1355514471.33"
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|