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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68f9bea062fc60a216913e84f5baee27b28f18711eb83c6b9e705a81ffe68a9b
4
- data.tar.gz: 5b3dcd8661f8555c6315d0e304aad2069faf645d88d06389ae4ee3be52598211
3
+ metadata.gz: 945c6e1633b17ff53c42b955569c8b455e84d9b56dc59bd4699fdd2c8c3bc258
4
+ data.tar.gz: a10d50ee87692028ced69241cc27c7114052b257de77843a47168e84a62be5d9
5
5
  SHA512:
6
- metadata.gz: f419d4f531a1ebc3d11149e946636c0561f039fac22e96b972f0f296fd34a6f43aa1cb7fa64e8aca374d9cda935b57484a2123f34232374b58e77465d3989148
7
- data.tar.gz: 232391634c9586fdb9ea2d09501f27e9e44c6f4c9842b4d42ca5164ec7cc4a011e5325b44e8b6370cd133c575f137ad10c1b0fbe038191275df0e117ac18cd70
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.sub(%r{\A/}, ""))
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://data.songstats.com"
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.sub(%r{\A/}, "")}"
75
+ endpoint = "/enterprise/v1/#{path.to_s.delete_prefix('/')}"
76
76
  attempts = 0
77
77
 
78
78
  loop do
@@ -22,7 +22,7 @@ module SongstatsSDK
22
22
  end
23
23
 
24
24
  def normalize_params(params)
25
- return nil if params.nil? || params.empty?
25
+ return nil if params.blank?
26
26
 
27
27
  normalized = {}
28
28
  params.each do |key, value|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SongstatsSDK
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-02-19 00:00:00.000000000 Z
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.0.0
51
+ version: 3.2.0
51
52
  required_rubygems_version: !ruby/object:Gem::Requirement
52
53
  requirements:
53
54
  - - ">="