podcast_api 1.1.0 → 1.1.1
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.lock +3 -3
- data/README.md +2 -2
- data/examples/Gemfile.lock +3 -3
- data/examples/sample.rb +1 -1
- data/lib/podcast_api.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3eb96fe3333e20c6286cce59678a0c14667fdb37c26555968009ef957bf79e89
|
|
4
|
+
data.tar.gz: dd858aeda556a8ad6ecd5f8d77d6d5719a06a308cdc1433780321a5a7f7496cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 175e44e90408925e99447fcd4e62f5665d8b08328313064844804b507e0172c04cfdce1abdf853de714e3d70005100672dd4deb6a85953894d86a2cb5426aa79
|
|
7
|
+
data.tar.gz: 16e89ed298dcb16bd3c06021df32bdb6f2240cf508e61cd5cff0974198fccdd533b60b9056b75a8476939adeea13cdcda2d6ab4774777662dac9419692ecc3bd
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
podcast_api (1.1.
|
|
4
|
+
podcast_api (1.1.1)
|
|
5
5
|
httparty
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -10,9 +10,9 @@ GEM
|
|
|
10
10
|
httparty (0.20.0)
|
|
11
11
|
mime-types (~> 3.0)
|
|
12
12
|
multi_xml (>= 0.5.2)
|
|
13
|
-
mime-types (3.
|
|
13
|
+
mime-types (3.4.1)
|
|
14
14
|
mime-types-data (~> 3.2015)
|
|
15
|
-
mime-types-data (3.
|
|
15
|
+
mime-types-data (3.2022.0105)
|
|
16
16
|
mocha (1.12.0)
|
|
17
17
|
multi_xml (0.6.0)
|
|
18
18
|
power_assert (2.0.0)
|
data/README.md
CHANGED
|
@@ -80,7 +80,7 @@ rescue PodcastApi::InvalidRequestError
|
|
|
80
80
|
rescue PodcastApi::NotFoundError
|
|
81
81
|
puts 'Not found'
|
|
82
82
|
rescue PodcastApi::RateLimitError
|
|
83
|
-
puts 'Reached quota limit'
|
|
83
|
+
puts 'Reached quota limit or rate limit'
|
|
84
84
|
rescue PodcastApi::APIConnectionError
|
|
85
85
|
puts 'Failed to connect to Listen API servers'
|
|
86
86
|
rescue PodcastApi::PodcastApiError
|
|
@@ -105,7 +105,7 @@ the sort of error that occurred.
|
|
|
105
105
|
| AuthenticationError | wrong api key or your account is suspended |
|
|
106
106
|
| APIConnectionError | fail to connect to API servers |
|
|
107
107
|
| InvalidRequestError | something wrong on your end (client side errors), e.g., missing required parameters |
|
|
108
|
-
| RateLimitError |
|
|
108
|
+
| RateLimitError | for FREE plan, exceeding the quota limit; or for all plans, sending too many requests too fast and exceeding the rate limit |
|
|
109
109
|
| NotFoundError | endpoint not exist, or podcast / episode not exist |
|
|
110
110
|
| PodcastApiError | something wrong on our end (unexpected server errors) |
|
|
111
111
|
|
data/examples/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
podcast_api (1.1.
|
|
4
|
+
podcast_api (1.1.1)
|
|
5
5
|
httparty
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -10,9 +10,9 @@ GEM
|
|
|
10
10
|
httparty (0.20.0)
|
|
11
11
|
mime-types (~> 3.0)
|
|
12
12
|
multi_xml (>= 0.5.2)
|
|
13
|
-
mime-types (3.
|
|
13
|
+
mime-types (3.4.1)
|
|
14
14
|
mime-types-data (~> 3.2015)
|
|
15
|
-
mime-types-data (3.
|
|
15
|
+
mime-types-data (3.2022.0105)
|
|
16
16
|
multi_xml (0.6.0)
|
|
17
17
|
|
|
18
18
|
PLATFORMS
|
data/examples/sample.rb
CHANGED
|
@@ -13,7 +13,7 @@ rescue PodcastApi::InvalidRequestError
|
|
|
13
13
|
rescue PodcastApi::NotFoundError
|
|
14
14
|
puts 'Not found'
|
|
15
15
|
rescue PodcastApi::RateLimitError
|
|
16
|
-
puts 'Reached quota limit'
|
|
16
|
+
puts 'Reached quota limit or rate limit'
|
|
17
17
|
rescue PodcastApi::APIConnectionError
|
|
18
18
|
puts 'Failed to connect to Listen API servers'
|
|
19
19
|
rescue PodcastApi::PodcastApiError
|
data/lib/podcast_api.rb
CHANGED
|
@@ -36,7 +36,7 @@ module PodcastApi
|
|
|
36
36
|
elsif response.code == 404
|
|
37
37
|
raise NotFoundError.new 'endpoint not exist, or podcast / episode not exist'
|
|
38
38
|
elsif response.code == 429
|
|
39
|
-
raise RateLimitError.new '
|
|
39
|
+
raise RateLimitError.new 'for FREE plan, exceeding the quota limit; or for all plans, sending too many requests too fast and exceeding the rate limit - https://www.listennotes.com/api/faq/#faq17'
|
|
40
40
|
else
|
|
41
41
|
raise PodcastApiError.new 'something wrong on our end (unexpected server errors)'
|
|
42
42
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: podcast_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Listen Notes, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
71
|
version: '0'
|
|
72
72
|
requirements: []
|
|
73
|
-
rubygems_version: 3.0.3
|
|
73
|
+
rubygems_version: 3.0.3.1
|
|
74
74
|
signing_key:
|
|
75
75
|
specification_version: 4
|
|
76
76
|
summary: Ruby bindings for the Listen Notes Podcast API
|