Skip to content

Commit 9534686

Browse files
committed
Initial commit
1 parent 8b817d6 commit 9534686

File tree

7 files changed

+116
-1
lines changed

7 files changed

+116
-1
lines changed

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# podcast-api-ruby
1+
# Podcast API Ruby Library
2+
3+
[![Build Status](https://travis-ci.com/ListenNotes/podcast-api-ruby.svg?branch=main)](https://travis-ci.com/ListenNotes/podcast-api-ruby)
4+
5+
The Podcast API Ruby library provides convenient access to the [Listen Notes Podcast API](https://www.listennotes.com/api/) from
6+
applications written in Ruby.
7+
8+
Simple and no-nonsense podcast search & directory API. Search the meta data of all podcasts and episodes by people, places, or topics.
9+
10+
<a href="https://www.listennotes.com/api/"><img src="https://raw.githubusercontent.com/ListenNotes/ListenApiDemo/master/web/src/powered_by_listennotes.png" width="300" /></a>
11+
12+
## Documentation
13+
14+
See the [Listen Notes Podcast API docs](https://www.listennotes.com/api/docs/).
15+
16+
17+
## Installation
18+
19+
Install the package with:
20+
```sh
21+
gem install podcast-api
22+
```
23+
24+
25+
### Requirements
26+
27+
- Ruby 2.3+
28+
29+
## Usage
30+
31+
The library needs to be configured with your account's API key which is
32+
available in your [Listen API Dashboard](https://www.listennotes.com/api/dashboard/#apps). Set `apiKey` to its
33+
value:
34+
35+
```ruby
36+
37+
# TODO
38+
```
39+
40+
If `apiKey` is null, then we'll connect to a [mock server](https://www.listennotes.com/api/tutorials/#faq0) that returns fake data for testing purposes.
41+
42+
You can see all available API endpoints and parameters on the API Docs page at [listennotes.com/api/docs/](https://www.listennotes.com/api/docs/).

examples/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gem "podcast_api", path: "../"

examples/Gemfile.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
podcast_api (1.0.1)
5+
6+
GEM
7+
specs:
8+
9+
PLATFORMS
10+
ruby
11+
12+
DEPENDENCIES
13+
podcast_api!
14+
15+
BUNDLED WITH
16+
1.17.2

examples/sample.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "podcast_api"

lib/podcast_api.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
require "net/http"
4+
5+
# Version
6+
require "version"
7+
8+
puts PodcastApi::VERSION
9+
10+
module PodcastApi
11+
end

lib/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
module PodcastApi
4+
VERSION = "1.0.1"
5+
end

podcast_api.gemspec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# frozen_string_literal: true
2+
3+
$LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), "lib"))
4+
5+
require "version"
6+
7+
Gem::Specification.new do |s|
8+
s.name = "podcast_api"
9+
s.version = PodcastApi::VERSION
10+
s.required_ruby_version = ">= 2.3.0"
11+
s.summary = "Ruby bindings for the Listen Notes Podcast API"
12+
s.description = "Listen Notes is the best podcast search engine and api. " \
13+
"See https://www.listennotes.com/api/ for details."
14+
s.author = "Listen Notes, Inc."
15+
s.email = "[email protected]"
16+
s.homepage = "https://www.listennotes.com/api/"
17+
s.license = "MIT"
18+
19+
s.metadata = {
20+
"bug_tracker_uri" => "https://github.com/ListenNotes/podcast-api-ruby/issues",
21+
"changelog_uri" =>
22+
"https://github.com/ListenNotes/podcast-api-ruby/releases",
23+
"documentation_uri" => "https://www.listennotes.com/api/docs/",
24+
"github_repo" => "https://github.com/ListenNotes/podcast-api-ruby",
25+
"homepage_uri" => "https://www.listennotes.com/api/",
26+
"source_code_uri" => "https://github.com/ListenNotes/podcast-api-ruby",
27+
}
28+
29+
ignored = Regexp.union(
30+
/\A\.editorconfig/,
31+
/\A\.git/,
32+
/\A\.rubocop/,
33+
/\A\.travis.yml/,
34+
/\Atest/
35+
)
36+
s.files = `git ls-files`.split("\n").reject { |f| ignored.match(f) }
37+
s.executables = `git ls-files -- bin/*`.split("\n")
38+
.map { |f| ::File.basename(f) }
39+
s.require_paths = ["lib"]
40+
end

0 commit comments

Comments
 (0)