podcast_api 1.0.1 → 1.0.2
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 +12 -0
- data/Gemfile.lock +34 -0
- data/README.md +1 -0
- data/RakeFile +9 -0
- data/lib/podcast_api.rb +3 -2
- data/lib/version.rb +1 -1
- data/rakefile.rb +9 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 599584aa0bae1222e5c7ddd48dd47f6fbe855ff49ef9778dd86159b5090768bf
|
|
4
|
+
data.tar.gz: 6cfeb3beaf659e0d1f58ba2cb0346e7df33183ca2ffcf60c3500d2d7141f200b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50bebd55c2b71904921121804eb2c92584197491c729bcb5bdfb72ab2f53c98fa0fabdb07ae8210527cf3d1a1861e06518ff1757f6f03e5e9535fe5268eb0b5c
|
|
7
|
+
data.tar.gz: 8d0922df268cd425f72979cb7a39c7065e76d9ac233e810371d4be52825deecb523a30b8d6f6d9b37f8ae6087ded3a1c865ab121814f883b61c1f04dfe07b215
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
podcast_api (1.0.2)
|
|
5
|
+
httparty
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
httparty (0.18.1)
|
|
11
|
+
mime-types (~> 3.0)
|
|
12
|
+
multi_xml (>= 0.5.2)
|
|
13
|
+
mime-types (3.3.1)
|
|
14
|
+
mime-types-data (~> 3.2015)
|
|
15
|
+
mime-types-data (3.2021.0225)
|
|
16
|
+
mocha (1.12.0)
|
|
17
|
+
multi_xml (0.6.0)
|
|
18
|
+
power_assert (2.0.0)
|
|
19
|
+
rake (13.0.3)
|
|
20
|
+
test-unit (3.4.1)
|
|
21
|
+
power_assert
|
|
22
|
+
|
|
23
|
+
PLATFORMS
|
|
24
|
+
ruby
|
|
25
|
+
|
|
26
|
+
DEPENDENCIES
|
|
27
|
+
bundler
|
|
28
|
+
mocha
|
|
29
|
+
podcast_api!
|
|
30
|
+
rake
|
|
31
|
+
test-unit
|
|
32
|
+
|
|
33
|
+
BUNDLED WITH
|
|
34
|
+
1.17.2
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.com/ListenNotes/podcast-api-ruby)
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
The Podcast API Ruby library provides convenient access to the [Listen Notes Podcast API](https://www.listennotes.com/api/) from
|
|
6
7
|
applications written in Ruby.
|
|
7
8
|
|
data/RakeFile
ADDED
data/lib/podcast_api.rb
CHANGED
|
@@ -14,14 +14,15 @@ module PodcastApi
|
|
|
14
14
|
@@BASE_URL_PROD = 'https://listen-api.listennotes.com/api/v2'
|
|
15
15
|
@@BASE_URL_TEST = 'https://listen-api-test.listennotes.com/api/v2'
|
|
16
16
|
|
|
17
|
+
attr_reader :base_url
|
|
18
|
+
|
|
17
19
|
def initialize(api_key: nil, user_agent: nil)
|
|
18
20
|
@api_key = api_key
|
|
19
21
|
@base_url = api_key ? @@BASE_URL_PROD : @@BASE_URL_TEST
|
|
20
22
|
@headers = {
|
|
21
|
-
'X-ListenAPI-Key' => @api_key,
|
|
23
|
+
'X-ListenAPI-Key' => @api_key ? @api_key : '',
|
|
22
24
|
'User-Agent' => user_agent ? user_agent : "podcasts-api-ruby #{VERSION}"
|
|
23
25
|
}
|
|
24
|
-
puts @headers
|
|
25
26
|
end
|
|
26
27
|
|
|
27
28
|
protected
|
data/lib/version.rb
CHANGED
data/rakefile.rb
ADDED
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.0.
|
|
4
|
+
version: 1.0.2
|
|
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-04-
|
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -31,8 +31,11 @@ executables: []
|
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
|
33
33
|
files:
|
|
34
|
+
- Gemfile
|
|
35
|
+
- Gemfile.lock
|
|
34
36
|
- LICENSE
|
|
35
37
|
- README.md
|
|
38
|
+
- RakeFile
|
|
36
39
|
- examples/Gemfile
|
|
37
40
|
- examples/Gemfile.lock
|
|
38
41
|
- examples/sample.rb
|
|
@@ -40,6 +43,7 @@ files:
|
|
|
40
43
|
- lib/podcast_api.rb
|
|
41
44
|
- lib/version.rb
|
|
42
45
|
- podcast_api.gemspec
|
|
46
|
+
- rakefile.rb
|
|
43
47
|
homepage: https://www.listennotes.com/api/
|
|
44
48
|
licenses:
|
|
45
49
|
- MIT
|