brand.dev 0.3.0 → 0.3.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: 23c048d37c43f960cb83f4cb6e0279bb2d679d73c25f8f595a9a29a4518350f8
4
- data.tar.gz: 79a03cd2a28ad67717d209e0c2282b6ca14179f0bcfbfd7db20855dd4500ff83
3
+ metadata.gz: f5c4a155f680be16b328c5cf93610971df16d2c75490b85e5206ffe24db110f3
4
+ data.tar.gz: 4f15de00c62bb1143aa819b41ea1dd3791bff471f334511969ebeaa152d4558e
5
5
  SHA512:
6
- metadata.gz: a960e3351767fa3af608912074a893fcf5b66ceac4f43563cd1838764861a67bc89779aeb085f913ffbceec93e3d22e9ec583cd0cb35b3407f742470670afe95
7
- data.tar.gz: 59823343664acd13660bc099e3077d8f171280961ad58cbcdb3147587ee0626c7a3083f65aedf5d2d494b8854b34df47c14c331fb1c8d6f7b402714e6df474cd
6
+ metadata.gz: 5f30b0d7a7f625dc784b5da3721fdc120c87618e2bd25fbdd8a70023ee057211486062fbb5eec94e1c31f9d0970a9d0628da61dec211693c270eea4d72abb4b8
7
+ data.tar.gz: d71d6b95e19d262447a693eaf82d9ab5438b6222acb2d431264b3d788fb422c590878e140d35a59e3dc7e79a8c347cacc8aab8438766b661aea8683d8b5ec468
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.2 (2025-08-25)
4
+
5
+ Full Changelog: [v0.3.1...v0.3.2](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.3.1...v0.3.2)
6
+
7
+ ### Chores
8
+
9
+ * add json schema comment for rubocop.yml ([5262bda](https://github.com/brand-dot-dev/ruby-sdk/commit/5262bdacb001ad4ad901f7bd79c782a04783afdc))
10
+
11
+ ## 0.3.1 (2025-08-20)
12
+
13
+ Full Changelog: [v0.3.0...v0.3.1](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.3.0...v0.3.1)
14
+
15
+ ### Bug Fixes
16
+
17
+ * bump sorbet version and fix new type errors from the breaking change ([11b69b1](https://github.com/brand-dot-dev/ruby-sdk/commit/11b69b1415dbd9d3abd7ca82420a9c8f25e178ac))
18
+
3
19
  ## 0.3.0 (2025-08-19)
4
20
 
5
21
  Full Changelog: [v0.2.1...v0.3.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.2.1...v0.3.0)
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 "brand.dev", "~> 0.3.0"
18
+ gem "brand.dev", "~> 0.3.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -193,15 +193,7 @@ module BrandDev
193
193
  end
194
194
 
195
195
  define_sorbet_constant!(:Request) do
196
- T.type_alias do
197
- {
198
- method: Symbol,
199
- url: URI::Generic,
200
- headers: T::Hash[String, String],
201
- body: T.anything,
202
- deadline: Float
203
- }
204
- end
196
+ T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
205
197
  end
206
198
  end
207
199
  end
@@ -64,14 +64,7 @@ module BrandDev
64
64
  setter = :"#{name_sym}="
65
65
  api_name = info.fetch(:api_name, name_sym)
66
66
  nilable = info.fetch(:nil?, false)
67
- const = if required && !nilable
68
- info.fetch(
69
- :const,
70
- BrandDev::Internal::OMIT
71
- )
72
- else
73
- BrandDev::Internal::OMIT
74
- end
67
+ const = required && !nilable ? info.fetch(:const, BrandDev::Internal::OMIT) : BrandDev::Internal::OMIT
75
68
 
76
69
  [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
77
70
 
@@ -244,7 +244,7 @@ module BrandDev
244
244
  #
245
245
  # @return [String]
246
246
  def uri_origin(uri)
247
- "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}"
247
+ "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
248
248
  end
249
249
 
250
250
  # @api private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
@@ -59,10 +59,10 @@ module BrandDev
59
59
  end
60
60
 
61
61
  class APIConnectionError < BrandDev::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brand Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-19 00:00:00.000000000 Z
11
+ date: 2025-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool