|
| 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 | + |
| 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