songstats-ruby-sdk 0.2.0 → 0.2.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 +6 -4
- data/README.md +2 -1
- data/lib/songstats_sdk/http_client.rb +3 -3
- data/lib/songstats_sdk/resources/base.rb +1 -1
- data/lib/songstats_sdk/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 945c6e1633b17ff53c42b955569c8b455e84d9b56dc59bd4699fdd2c8c3bc258
|
|
4
|
+
data.tar.gz: a10d50ee87692028ced69241cc27c7114052b257de77843a47168e84a62be5d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 600020786d908a698420acf2f32de35f52d03f87c25bc8879b2aae8f4dc305f69ee2d0cefeeac49d779bb72f37189fe93d68df7f4f6cd1c02fb590e21cf6773a
|
|
7
|
+
data.tar.gz: 54b1799ecf012f835cb5ef34647a297753d394551cb37e1fc12449ffc2e1fa61cca03e9c90482219610908a89dca9d2fe81b60a791af16ff17d7c1c3effdee70
|
data/CHANGELOG.md
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.1] - 2026-06-14
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Updated the default Enterprise API host from `data.songstats.com` to `api.songstats.com`.
|
|
10
|
+
|
|
5
11
|
## [0.2.0] - 2026-02-19
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
|
9
15
|
- Removed `charts` resource client from the SDK surface
|
|
10
16
|
- Removed `stations` resource client from the SDK surface
|
|
11
|
-
- Kept `info` endpoints:
|
|
12
|
-
- `client.info.sources` (`/sources`)
|
|
13
|
-
- `client.info.status` (`/status`)
|
|
14
|
-
- `client.info.definitions` (`/definitions`)
|
|
15
17
|
|
|
16
18
|
## [0.1.0] - 2026-02-19
|
|
17
19
|
|
data/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Official Ruby client for the **Songstats Enterprise API**.
|
|
4
4
|
|
|
5
5
|
📦 RubyGems: https://rubygems.org/gems/songstats-ruby-sdk
|
|
6
|
-
📚 API Documentation: https://docs.songstats.com
|
|
6
|
+
📚 API Documentation: https://docs.songstats.com
|
|
7
|
+
🔑 API Key Access: Please contact api@songstats.com
|
|
7
8
|
|
|
8
9
|
---
|
|
9
10
|
|
|
@@ -15,7 +15,7 @@ module SongstatsSDK
|
|
|
15
15
|
}.freeze
|
|
16
16
|
|
|
17
17
|
def request(method:, base_url:, path:, headers:, params:, json:, timeout:)
|
|
18
|
-
uri = URI.join("#{base_url.chomp('/')}/", path.
|
|
18
|
+
uri = URI.join("#{base_url.chomp('/')}/", path.delete_prefix('/'))
|
|
19
19
|
query = URI.encode_www_form(params || {})
|
|
20
20
|
uri.query = [uri.query, query].compact.reject(&:empty?).join("&") unless query.empty?
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ module SongstatsSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
class HTTPClient
|
|
42
|
-
DEFAULT_BASE_URL = "https://
|
|
42
|
+
DEFAULT_BASE_URL = "https://api.songstats.com"
|
|
43
43
|
DEFAULT_TIMEOUT_SECONDS = 30
|
|
44
44
|
RETRYABLE_STATUS_CODES = [429, 500, 502, 503, 504].freeze
|
|
45
45
|
RETRYABLE_EXCEPTIONS = [
|
|
@@ -72,7 +72,7 @@ module SongstatsSDK
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def request(method, path, params: nil, json: nil)
|
|
75
|
-
endpoint = "/enterprise/v1/#{path.to_s.
|
|
75
|
+
endpoint = "/enterprise/v1/#{path.to_s.delete_prefix('/')}"
|
|
76
76
|
attempts = 0
|
|
77
77
|
|
|
78
78
|
loop do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: songstats-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Songstats
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Typed Ruby client for Songstats Enterprise API resources.
|
|
14
14
|
email:
|
|
@@ -39,6 +39,7 @@ metadata:
|
|
|
39
39
|
source_code_uri: https://github.com/songstats/songstats-ruby-sdk
|
|
40
40
|
bug_tracker_uri: https://github.com/songstats/songstats-ruby-sdk/issues
|
|
41
41
|
allowed_push_host: https://rubygems.org
|
|
42
|
+
rubygems_mfa_required: 'true'
|
|
42
43
|
post_install_message:
|
|
43
44
|
rdoc_options: []
|
|
44
45
|
require_paths:
|
|
@@ -47,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
47
48
|
requirements:
|
|
48
49
|
- - ">="
|
|
49
50
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: 3.
|
|
51
|
+
version: 3.2.0
|
|
51
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
53
|
requirements:
|
|
53
54
|
- - ">="
|