podcast_api 1.1.1 → 1.1.5
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/LICENSE +1 -1
- data/README.md +4403 -2733
- data/examples/Gemfile.lock +3 -3
- data/lib/podcast_api.rb +10 -0
- data/lib/version.rb +1 -1
- data/podcast_api.gemspec +5 -5
- metadata +10 -10
data/examples/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
podcast_api (1.1.
|
5
|
-
httparty
|
4
|
+
podcast_api (1.1.5)
|
5
|
+
httparty (~> 0.20.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
multi_xml (>= 0.5.2)
|
13
13
|
mime-types (3.4.1)
|
14
14
|
mime-types-data (~> 3.2015)
|
15
|
-
mime-types-data (3.
|
15
|
+
mime-types-data (3.2023.0218.1)
|
16
16
|
multi_xml (0.6.0)
|
17
17
|
|
18
18
|
PLATFORMS
|
data/lib/podcast_api.rb
CHANGED
@@ -149,6 +149,16 @@ module PodcastApi
|
|
149
149
|
def delete_podcast(**kwargs)
|
150
150
|
id = kwargs.delete(:id)
|
151
151
|
return send_http_request('delete', "#{@base_url}/podcasts/#{id}", {query: kwargs, headers: @headers})
|
152
|
+
end
|
153
|
+
|
154
|
+
def fetch_audience_for_podcast(**kwargs)
|
155
|
+
id = kwargs.delete(:id)
|
156
|
+
return send_http_request('get', "#{@base_url}/podcasts/#{id}/audience", {query: kwargs, headers: @headers})
|
157
|
+
end
|
158
|
+
|
159
|
+
def fetch_podcasts_by_domain(**kwargs)
|
160
|
+
domain_name = kwargs.delete(:domain_name)
|
161
|
+
return send_http_request('get', "#{@base_url}/podcasts/domains/#{domain_name}", {query: kwargs, headers: @headers})
|
152
162
|
end
|
153
163
|
end
|
154
164
|
|
data/lib/version.rb
CHANGED
data/podcast_api.gemspec
CHANGED
@@ -11,19 +11,19 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = "Ruby bindings for the Listen Notes Podcast API"
|
12
12
|
s.description = "Listen Notes is the best podcast search engine and api. " \
|
13
13
|
"This is the official Ruby Gem for the Listen Notes Podcast API. " \
|
14
|
-
"See https://www.
|
14
|
+
"See https://www.PodcastAPI.com/ for details."
|
15
15
|
s.author = "Listen Notes, Inc."
|
16
16
|
s.email = "hello@listennotes.com"
|
17
|
-
s.homepage = "https://www.
|
17
|
+
s.homepage = "https://www.PodcastAPI.com/"
|
18
18
|
s.license = "MIT"
|
19
|
-
s.add_runtime_dependency "httparty"
|
19
|
+
s.add_runtime_dependency "httparty", '~> 0.20.0'
|
20
20
|
s.metadata = {
|
21
21
|
"bug_tracker_uri" => "https://github.com/ListenNotes/podcast-api-ruby/issues",
|
22
22
|
"changelog_uri" =>
|
23
23
|
"https://github.com/ListenNotes/podcast-api-ruby/releases",
|
24
|
-
"documentation_uri" => "https://www.listennotes.com/api/docs/",
|
24
|
+
"documentation_uri" => "https://www.listennotes.com/podcast-api/docs/",
|
25
25
|
"github_repo" => "https://github.com/ListenNotes/podcast-api-ruby",
|
26
|
-
"homepage_uri" => "https://www.
|
26
|
+
"homepage_uri" => "https://www.PodcastAPI.com/",
|
27
27
|
"source_code_uri" => "https://github.com/ListenNotes/podcast-api-ruby",
|
28
28
|
}
|
29
29
|
|
metadata
CHANGED
@@ -1,31 +1,31 @@
|
|
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.5
|
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: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.20.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.20.0
|
27
27
|
description: Listen Notes is the best podcast search engine and api. This is the
|
28
|
-
official Ruby Gem for the Listen Notes Podcast API. See https://www.
|
28
|
+
official Ruby Gem for the Listen Notes Podcast API. See https://www.PodcastAPI.com/
|
29
29
|
for details.
|
30
30
|
email: hello@listennotes.com
|
31
31
|
executables: []
|
@@ -45,15 +45,15 @@ files:
|
|
45
45
|
- lib/version.rb
|
46
46
|
- podcast_api.gemspec
|
47
47
|
- rakefile.rb
|
48
|
-
homepage: https://www.
|
48
|
+
homepage: https://www.PodcastAPI.com/
|
49
49
|
licenses:
|
50
50
|
- MIT
|
51
51
|
metadata:
|
52
52
|
bug_tracker_uri: https://github.com/ListenNotes/podcast-api-ruby/issues
|
53
53
|
changelog_uri: https://github.com/ListenNotes/podcast-api-ruby/releases
|
54
|
-
documentation_uri: https://www.listennotes.com/api/docs/
|
54
|
+
documentation_uri: https://www.listennotes.com/podcast-api/docs/
|
55
55
|
github_repo: https://github.com/ListenNotes/podcast-api-ruby
|
56
|
-
homepage_uri: https://www.
|
56
|
+
homepage_uri: https://www.PodcastAPI.com/
|
57
57
|
source_code_uri: https://github.com/ListenNotes/podcast-api-ruby
|
58
58
|
post_install_message:
|
59
59
|
rdoc_options: []
|