moonbase-sdk 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2

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: c2a5d3e4bc1bb2e958bf2c0727ff9db9bcf5b4bf33a579570854819eab911edc
4
- data.tar.gz: 16745c4bbde8a5b1c5fa846e81f9c4fdcb2294d9f165fc61aaeff9360a5feb15
3
+ metadata.gz: bdda12f6c92170310ea89e8a6bd1d7468f3e1269438ff41b27687ca63022eb0c
4
+ data.tar.gz: 2be6f6e2d70ddc00a1ffe70d0ea392f354b1f5e0cda83b630dccfba2954ae300
5
5
  SHA512:
6
- metadata.gz: 526e067dc0de3d3644cbea6e2f6db269ceab46cd34608130c9b2f3e2ec794a66b7e4594cfbbe1f6160cf17cd292b56f0e003de9b1da95808e68048701208fd51
7
- data.tar.gz: cea7e74c7b2346c4bb807c8804c004ef5a05d593abcd2441805f635081294fd664630fab17c2c82938688734e44c8395c839bccbc111d17d6eefda4ae0234dc8
6
+ metadata.gz: 5196b903550ef8bbbbb43c99796402210294121ac8d04d9c9eaacb54b2468f6ee42c344d87c76df14c0cddf08adde0a4f5243a74cf194c5c1ccf8764b157ffe5
7
+ data.tar.gz: 80a89212874fb24c6ca2c045467d342833a05921444b1972c168b14be95eb9d89ccedac3014c155ce421280756b066a733ce988ffb73272519bc61666f5d25bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.2 (2025-07-20)
4
+
5
+ Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * pagination ([9df3651](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/9df3651ce1f892a6b35296f682f69c69cc5e6d3c))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** version bump ([a0c7295](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/a0c7295af7e0e78d77bc45b2a816a662a127089f))
15
+
3
16
  ## 0.1.0-alpha.1 (2025-07-18)
4
17
 
5
18
  Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "moonbase-sdk", "~> 0.1.0.pre.alpha.1"
18
+ gem "moonbase-sdk", "~> 0.1.0.pre.alpha.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -24,7 +24,7 @@ module Moonbase
24
24
 
25
25
  # @return [Boolean]
26
26
  def next_page?
27
- !data.to_a.empty? && !meta&.cursor&.next_.to_s.empty?
27
+ !data.to_a.empty? && !meta&.cursors&.next_.to_s.empty?
28
28
  end
29
29
 
30
30
  # @raise [Moonbase::HTTP::Error]
@@ -35,7 +35,7 @@ module Moonbase
35
35
  raise RuntimeError.new(message)
36
36
  end
37
37
 
38
- req = Moonbase::Internal::Util.deep_merge(@req, {query: {after: meta&.cursor&.next_}})
38
+ req = Moonbase::Internal::Util.deep_merge(@req, {query: {after: meta&.cursors&.next_}})
39
39
  @client.request(req)
40
40
  end
41
41
 
@@ -87,16 +87,16 @@ module Moonbase
87
87
  end
88
88
 
89
89
  class Meta < Moonbase::Internal::Type::BaseModel
90
- # @!attribute cursor
90
+ # @!attribute cursors
91
91
  #
92
- # @return [Meta::Cursor, nil]
93
- optional :cursor, -> { Meta::Cursor }
92
+ # @return [Meta::Cursors, nil]
93
+ optional :cursors, -> { Meta::Cursors }
94
94
 
95
- # @!method initialize(cursor: nil)
96
- # @param cursor [Meta::Cursor]
95
+ # @!method initialize(cursors: nil)
96
+ # @param cursors [Meta::Cursors]
97
97
 
98
- # @see Meta#cursor
99
- class Cursor < Moonbase::Internal::Type::BaseModel
98
+ # @see Meta#cursors
99
+ class Cursors < Moonbase::Internal::Type::BaseModel
100
100
  # @!attribute next_
101
101
  #
102
102
  # @return [String, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moonbase
4
- VERSION = "0.1.0.pre.alpha.1"
4
+ VERSION = "0.1.0.pre.alpha.2"
5
5
  end
@@ -21,23 +21,23 @@ module Moonbase
21
21
  class Meta < Moonbase::Internal::Type::BaseModel
22
22
  OrHash = T.type_alias { T.any(Meta, Moonbase::Internal::AnyHash) }
23
23
 
24
- sig { returns(T.nilable(Meta::Cursor)) }
25
- attr_reader :cursor
24
+ sig { returns(T.nilable(Meta::Cursors)) }
25
+ attr_reader :cursors
26
26
 
27
- sig { params(cursor: Meta::Cursor::OrHash).void }
28
- attr_writer :cursor
27
+ sig { params(cursors: Meta::Cursors::OrHash).void }
28
+ attr_writer :cursors
29
29
 
30
- sig { params(cursor: Meta::Cursor::OrHash).returns(T.attached_class) }
31
- def self.new(cursor: nil)
30
+ sig { params(cursors: Meta::Cursors::OrHash).returns(T.attached_class) }
31
+ def self.new(cursors: nil)
32
32
  end
33
33
 
34
- sig { override.returns({ cursor: Meta::Cursor }) }
34
+ sig { override.returns({ cursors: Meta::Cursors }) }
35
35
  def to_hash
36
36
  end
37
37
 
38
- class Cursor < Moonbase::Internal::Type::BaseModel
38
+ class Cursors < Moonbase::Internal::Type::BaseModel
39
39
  OrHash =
40
- T.type_alias { T.any(Meta::Cursor, Moonbase::Internal::AnyHash) }
40
+ T.type_alias { T.any(Meta::Cursors, Moonbase::Internal::AnyHash) }
41
41
 
42
42
  sig { returns(T.nilable(String)) }
43
43
  attr_reader :next_
@@ -9,19 +9,19 @@ module Moonbase
9
9
 
10
10
  def inspect: -> String
11
11
 
12
- type meta = { cursor: Meta::Cursor }
12
+ type meta = { cursors: Meta::Cursors }
13
13
  class Meta < Moonbase::Internal::Type::BaseModel
14
- attr_reader cursor: Meta::Cursor?
14
+ attr_reader cursors: Meta::Cursors?
15
15
 
16
- def cursor=: (Meta::Cursor) -> Meta::Cursor
16
+ def cursors=: (Meta::Cursors) -> Meta::Cursors
17
17
 
18
- def initialize: (?cursor: Meta::Cursor) -> void
18
+ def initialize: (?cursors: Meta::Cursors) -> void
19
19
 
20
- def to_hash: -> { cursor: Meta::Cursor }
20
+ def to_hash: -> { cursors: Meta::Cursors }
21
21
 
22
- type cursor = { next_: String }
22
+ type cursors = { next_: String }
23
23
 
24
- class Cursor < Moonbase::Internal::Type::BaseModel
24
+ class Cursors < Moonbase::Internal::Type::BaseModel
25
25
  attr_reader next_: String?
26
26
 
27
27
  def next_=: (String) -> String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonbase-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.1
4
+ version: 0.1.0.pre.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moonbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-18 00:00:00.000000000 Z
11
+ date: 2025-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool