npr 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -0
- data/CHANGELOG.md +7 -2
- data/lib/npr/version.rb +1 -1
- data/npr.gemspec +2 -2
- metadata +17 -17
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### 2.0.1 (2014-02-27)
|
2
|
+
#### Changes
|
3
|
+
* Be more strict about Faraday dependecies.
|
4
|
+
|
5
|
+
|
1
6
|
### Version 2.0.0 (2013-11-08)
|
2
7
|
##### Additions
|
3
8
|
* Added `NPR::Entity::Stream`.
|
@@ -9,7 +14,7 @@
|
|
9
14
|
##### Changes
|
10
15
|
* `Audio#stream` now returns an `NPR::Entity::Stream` object. This will break
|
11
16
|
your code if you were doing something like `if audio.stream == true`.
|
12
|
-
To fix it, you can just use: `if audio.stream.active?`.
|
17
|
+
To fix it, you can just use: `if audio.stream.active?`.
|
13
18
|
* Changed the `offset` method on `QueryBuilder` to set `startNum` to
|
14
19
|
`offset + 1`. Previously, if you said `.offset(1)`, you would actually still
|
15
20
|
get the first result, because it was passing its value directly to the
|
@@ -46,7 +51,7 @@
|
|
46
51
|
|
47
52
|
##### Changes
|
48
53
|
* Handle an HTTP Error from the API better. If the API response is not a
|
49
|
-
success (as defined by `Faraday::Response#success?`), then an
|
54
|
+
success (as defined by `Faraday::Response#success?`), then an
|
50
55
|
`NPR::APIError` will be raised. An error was being raised before, but
|
51
56
|
it was due to a nil error (when response.body was nil), which could be confusing.
|
52
57
|
|
data/lib/npr/version.rb
CHANGED
data/npr.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
s.licenses = ['MIT']
|
23
23
|
|
24
|
-
s.add_dependency 'faraday', '
|
25
|
-
s.add_dependency 'faraday_middleware', '
|
24
|
+
s.add_dependency 'faraday', '~> 0.8.0'
|
25
|
+
s.add_dependency 'faraday_middleware', '~> 0.9'
|
26
26
|
|
27
27
|
s.add_development_dependency 'bundler', '>= 1.0.0'
|
28
28
|
s.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: npr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,33 +9,33 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
|
-
requirement: &
|
16
|
+
requirement: &70191472215460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.8.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70191472215460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday_middleware
|
27
|
-
requirement: &
|
27
|
+
requirement: &70191472214160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.9
|
32
|
+
version: '0.9'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70191472214160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70191472213080 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70191472213080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &70191472211940 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70191472211940
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70191472210340 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70191472210340
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fakeweb
|
71
|
-
requirement: &
|
71
|
+
requirement: &70191472072480 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70191472072480
|
80
80
|
description: NPR (npr.org) is a news organization. This gem helps you pull NPR content
|
81
81
|
with a nice Ruby DSL.
|
82
82
|
email:
|