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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f732ac3a1bbecca24c5d29f73abe7731aff7bad018ec2fdceec678cde7f428ff
4
- data.tar.gz: 74ac452928d9b9aa79d8079a7fc43e644818e1624f9bdef9c76c2a9f6b81b330
3
+ metadata.gz: 3eb96fe3333e20c6286cce59678a0c14667fdb37c26555968009ef957bf79e89
4
+ data.tar.gz: dd858aeda556a8ad6ecd5f8d77d6d5719a06a308cdc1433780321a5a7f7496cb
5
5
  SHA512:
6
- metadata.gz: 12b5a9732bab9cba3c3d1926d3d57b0d5c3763feac9d0504fe30e825f240b96f3ecd71f98707b459ca23bb83d7b15f22ab6101b6cfe08afe61742a7410cb0cd9
7
- data.tar.gz: 7a54fddc26c5d0866c8e81f2ed89296c51d24f6880aa06fab443acd800fbaf18a9801198a7e7b919b487a887fe22375e8ef781dd25781e5dff7e5b421f658e3d
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.0)
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.3.1)
13
+ mime-types (3.4.1)
14
14
  mime-types-data (~> 3.2015)
15
- mime-types-data (3.2021.0901)
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 | you are using FREE plan and you exceed the quota limit |
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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- podcast_api (1.1.0)
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.3.1)
13
+ mime-types (3.4.1)
14
14
  mime-types-data (~> 3.2015)
15
- mime-types-data (3.2021.0901)
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 'you are using FREE plan and you exceed the quota limit'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodcastApi
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
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.0
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: 2021-10-26 00:00:00.000000000 Z
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