podcast_index 0.5.0 → 0.5.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -1
- data/lib/podcast_index/version.rb +1 -1
- data/lib/podcast_index.rb +11 -7
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aae2e479cb9e2d08fd29a47ce458a5ad5bcb948b2d886826afa0599f733523b3
|
|
4
|
+
data.tar.gz: 1c79010bbe21a3be5ba1caf683b2a253a448dff20f6776928a3734e9a437415c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa88875c017619e56b3fe54728a0f086d498688bcbc637eef9a96338d3a038347d09dfc38e7e1fbe8ecba07a95f7144b60b916ab4f80299f940f7528da60852d
|
|
7
|
+
data.tar.gz: 86cbb6b4efc49f5f46434b212bc86a8124155a4ba25f44e9510a29d4eafa559f315691cc3a933989231a0164b83433cf2df3a5586d522d9d844b9e23e1a39b0a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
podcast_index (0.5.
|
|
4
|
+
podcast_index (0.5.1)
|
|
5
5
|
activesupport
|
|
6
6
|
addressable
|
|
7
7
|
|
|
@@ -111,6 +111,7 @@ GEM
|
|
|
111
111
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
112
112
|
|
|
113
113
|
PLATFORMS
|
|
114
|
+
arm64-darwin-24
|
|
114
115
|
x86_64-darwin-20
|
|
115
116
|
x86_64-darwin-23
|
|
116
117
|
x86_64-linux
|
data/lib/podcast_index.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require_relative "podcast_index/version"
|
|
2
|
-
require "active_support/
|
|
2
|
+
require "active_support/ordered_options"
|
|
3
3
|
require "active_support/core_ext/string/inflections"
|
|
4
4
|
require "json"
|
|
5
5
|
|
|
@@ -20,16 +20,20 @@ require_relative "podcast_index/stats"
|
|
|
20
20
|
require_relative "podcast_index/value"
|
|
21
21
|
|
|
22
22
|
module PodcastIndex
|
|
23
|
-
include ActiveSupport::Configurable
|
|
24
|
-
|
|
25
|
-
config_accessor :api_key, :api_secret, :base_url
|
|
26
|
-
|
|
27
23
|
class Error < StandardError; end
|
|
28
24
|
class PodcastNotFound < Error; end
|
|
29
25
|
class CategoryNotFound < Error; end
|
|
30
26
|
|
|
31
27
|
def self.configure
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
config.base_url = "https://api.podcastindex.org/api/1.0".freeze
|
|
29
|
+
yield config
|
|
34
30
|
end
|
|
31
|
+
|
|
32
|
+
def self.config
|
|
33
|
+
@config ||= ActiveSupport::OrderedOptions.new
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.api_key = config.api_key
|
|
37
|
+
def self.api_secret = config.api_secret
|
|
38
|
+
def self.base_url = config.base_url
|
|
35
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: podcast_index
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason York
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -151,7 +150,6 @@ dependencies:
|
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: '0'
|
|
153
152
|
description: Exposes the podcastindex.org API through Ruby domain models.
|
|
154
|
-
email:
|
|
155
153
|
executables: []
|
|
156
154
|
extensions: []
|
|
157
155
|
extra_rdoc_files: []
|
|
@@ -188,7 +186,6 @@ metadata:
|
|
|
188
186
|
source_code_uri: https://github.com/jasonyork/podcast-index
|
|
189
187
|
changelog_uri: https://github.com/jasonyork/podcast-index/blob/master/CHANGELOG.md
|
|
190
188
|
rubygems_mfa_required: 'true'
|
|
191
|
-
post_install_message:
|
|
192
189
|
rdoc_options: []
|
|
193
190
|
require_paths:
|
|
194
191
|
- lib
|
|
@@ -203,8 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
203
200
|
- !ruby/object:Gem::Version
|
|
204
201
|
version: '0'
|
|
205
202
|
requirements: []
|
|
206
|
-
rubygems_version: 3.
|
|
207
|
-
signing_key:
|
|
203
|
+
rubygems_version: 3.6.6
|
|
208
204
|
specification_version: 4
|
|
209
205
|
summary: Ruby client for the podcastindex.org API
|
|
210
206
|
test_files: []
|