spotted 0.12.0 → 0.13.0

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: 696d1201dbd3bfb90b486db93bc6b1b671ed6a977f4aac62a1c7f01049ceb63a
4
- data.tar.gz: 14b673555eb41b979bc507f86e417d311fe5b31953fb875146e96b992ae05fb6
3
+ metadata.gz: 15d9cc86c685d2cf5d62843b853329ddf7db14d2519092c14cb1ac0915b173fc
4
+ data.tar.gz: c489d89f46b1fd3425d7e0e5e96b1af3ce1e215a15ea4e4d661644d120f37abd
5
5
  SHA512:
6
- metadata.gz: ed1cb5ae938ded271bafef35692200963c900a77ce410e4c8c71611a6d45be523f319be8eba55bd926a41fcda4f933786f4adcf768efff0701895e7f26aa4cc0
7
- data.tar.gz: f36d877b11ca3b92f0c4ed6658886c242c72a772e7ae23ad242be69e95fa8b5af0e350269b4bf69378dd53630b8f8ed512248b0722d5cb01b2fc07faf028ab96
6
+ metadata.gz: 58ed4e51208a546c19f9a684e485a58245982a08e58c09d864d573ac701ecce2614e81a12a3e38e30bd09cf63138975219e42c3f0a2fc0531b7ac4fcde4684ba
7
+ data.tar.gz: 69b48d868e6f7f794f602f5126e4170e0129a3e90e416269f75cc88509130e55e35cbf674f16eba652e461c80f660ddd4039e5bb34db18f2bb35594811197481
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2025-11-20)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/cjavdev/spotted/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([bb934e1](https://github.com/cjavdev/spotted/commit/bb934e1c9b14732d62657808117eebeb67bb85bf))
10
+
3
11
  ## 0.12.0 (2025-11-18)
4
12
 
5
13
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/cjavdev/spotted/compare/v0.11.0...v0.12.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "spotted", "~> 0.12.0"
20
+ gem "spotted", "~> 0.13.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -4,34 +4,6 @@ module Spotted
4
4
  module Resources
5
5
  class Playlists
6
6
  class Images
7
- # Some parameter documentations has been truncated, see
8
- # {Spotted::Models::Playlists::ImageUpdateParams} for more details.
9
- #
10
- # Replace the image used to represent a specific playlist.
11
- #
12
- # @overload update(playlist_id, body:, request_options: {})
13
- #
14
- # @param playlist_id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the playli
15
- #
16
- # @param body [Pathname, StringIO, IO, String, Spotted::FilePart] Base64 encoded JPEG image data, maximum payload size is 256 KB.
17
- #
18
- # @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}, nil]
19
- #
20
- # @return [StringIO]
21
- #
22
- # @see Spotted::Models::Playlists::ImageUpdateParams
23
- def update(playlist_id, params)
24
- parsed, options = Spotted::Playlists::ImageUpdateParams.dump_request(params)
25
- @client.request(
26
- method: :put,
27
- path: ["playlists/%1$s/images", playlist_id],
28
- headers: {"content-type" => "image/jpeg", "accept" => "application/binary"},
29
- body: parsed[:body],
30
- model: StringIO,
31
- options: options
32
- )
33
- end
34
-
35
7
  # Some parameter documentations has been truncated, see
36
8
  # {Spotted::Models::Playlists::ImageListParams} for more details.
37
9
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotted
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
data/lib/spotted.rb CHANGED
@@ -187,7 +187,6 @@ require_relative "spotted/models/playlists/follower_follow_params"
187
187
  require_relative "spotted/models/playlists/follower_unfollow_params"
188
188
  require_relative "spotted/models/playlists/image_list_params"
189
189
  require_relative "spotted/models/playlists/image_list_response"
190
- require_relative "spotted/models/playlists/image_update_params"
191
190
  require_relative "spotted/models/playlists/track_add_params"
192
191
  require_relative "spotted/models/playlists/track_add_response"
193
192
  require_relative "spotted/models/playlists/track_list_params"
@@ -4,24 +4,6 @@ module Spotted
4
4
  module Resources
5
5
  class Playlists
6
6
  class Images
7
- # Replace the image used to represent a specific playlist.
8
- sig do
9
- params(
10
- playlist_id: String,
11
- body: Spotted::Internal::FileInput,
12
- request_options: Spotted::RequestOptions::OrHash
13
- ).returns(StringIO)
14
- end
15
- def update(
16
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the
17
- # playlist.
18
- playlist_id,
19
- # Base64 encoded JPEG image data, maximum payload size is 256 KB.
20
- body:,
21
- request_options: {}
22
- )
23
- end
24
-
25
7
  # Get the current image associated with a specific playlist.
26
8
  sig do
27
9
  params(
@@ -2,12 +2,6 @@ module Spotted
2
2
  module Resources
3
3
  class Playlists
4
4
  class Images
5
- def update: (
6
- String playlist_id,
7
- body: Spotted::Internal::file_input,
8
- ?request_options: Spotted::request_opts
9
- ) -> StringIO
10
-
11
5
  def list: (
12
6
  String playlist_id,
13
7
  ?request_options: Spotted::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spotted
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2025-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -191,7 +191,6 @@ files:
191
191
  - lib/spotted/models/playlists/follower_unfollow_params.rb
192
192
  - lib/spotted/models/playlists/image_list_params.rb
193
193
  - lib/spotted/models/playlists/image_list_response.rb
194
- - lib/spotted/models/playlists/image_update_params.rb
195
194
  - lib/spotted/models/playlists/track_add_params.rb
196
195
  - lib/spotted/models/playlists/track_add_response.rb
197
196
  - lib/spotted/models/playlists/track_list_params.rb
@@ -417,7 +416,6 @@ files:
417
416
  - rbi/spotted/models/playlists/follower_unfollow_params.rbi
418
417
  - rbi/spotted/models/playlists/image_list_params.rbi
419
418
  - rbi/spotted/models/playlists/image_list_response.rbi
420
- - rbi/spotted/models/playlists/image_update_params.rbi
421
419
  - rbi/spotted/models/playlists/track_add_params.rbi
422
420
  - rbi/spotted/models/playlists/track_add_response.rbi
423
421
  - rbi/spotted/models/playlists/track_list_params.rbi
@@ -642,7 +640,6 @@ files:
642
640
  - sig/spotted/models/playlists/follower_unfollow_params.rbs
643
641
  - sig/spotted/models/playlists/image_list_params.rbs
644
642
  - sig/spotted/models/playlists/image_list_response.rbs
645
- - sig/spotted/models/playlists/image_update_params.rbs
646
643
  - sig/spotted/models/playlists/track_add_params.rbs
647
644
  - sig/spotted/models/playlists/track_add_response.rbs
648
645
  - sig/spotted/models/playlists/track_list_params.rbs
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Spotted
4
- module Models
5
- module Playlists
6
- # @see Spotted::Resources::Playlists::Images#update
7
- class ImageUpdateParams < Spotted::Internal::Type::BaseModel
8
- extend Spotted::Internal::Type::RequestParameters::Converter
9
- include Spotted::Internal::Type::RequestParameters
10
-
11
- # @!attribute body
12
- # Base64 encoded JPEG image data, maximum payload size is 256 KB.
13
- #
14
- # @return [Pathname, StringIO, IO, String, Spotted::FilePart]
15
- required :body, Spotted::Internal::Type::FileInput
16
-
17
- # @!method initialize(body:, request_options: {})
18
- # @param body [Pathname, StringIO, IO, String, Spotted::FilePart] Base64 encoded JPEG image data, maximum payload size is 256 KB.
19
- #
20
- # @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
21
- end
22
- end
23
- end
24
- end
@@ -1,48 +0,0 @@
1
- # typed: strong
2
-
3
- module Spotted
4
- module Models
5
- module Playlists
6
- class ImageUpdateParams < Spotted::Internal::Type::BaseModel
7
- extend Spotted::Internal::Type::RequestParameters::Converter
8
- include Spotted::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Spotted::Playlists::ImageUpdateParams,
14
- Spotted::Internal::AnyHash
15
- )
16
- end
17
-
18
- # Base64 encoded JPEG image data, maximum payload size is 256 KB.
19
- sig { returns(Spotted::Internal::FileInput) }
20
- attr_accessor :body
21
-
22
- sig do
23
- params(
24
- body: Spotted::Internal::FileInput,
25
- request_options: Spotted::RequestOptions::OrHash
26
- ).returns(T.attached_class)
27
- end
28
- def self.new(
29
- # Base64 encoded JPEG image data, maximum payload size is 256 KB.
30
- body:,
31
- request_options: {}
32
- )
33
- end
34
-
35
- sig do
36
- override.returns(
37
- {
38
- body: Spotted::Internal::FileInput,
39
- request_options: Spotted::RequestOptions
40
- }
41
- )
42
- end
43
- def to_hash
44
- end
45
- end
46
- end
47
- end
48
- end
@@ -1,26 +0,0 @@
1
- module Spotted
2
- module Models
3
- module Playlists
4
- type image_update_params =
5
- { body: Spotted::Internal::file_input }
6
- & Spotted::Internal::Type::request_parameters
7
-
8
- class ImageUpdateParams < Spotted::Internal::Type::BaseModel
9
- extend Spotted::Internal::Type::RequestParameters::Converter
10
- include Spotted::Internal::Type::RequestParameters
11
-
12
- attr_accessor body: Spotted::Internal::file_input
13
-
14
- def initialize: (
15
- body: Spotted::Internal::file_input,
16
- ?request_options: Spotted::request_opts
17
- ) -> void
18
-
19
- def to_hash: -> {
20
- body: Spotted::Internal::file_input,
21
- request_options: Spotted::RequestOptions
22
- }
23
- end
24
- end
25
- end
26
- end