orb-billing 0.5.3 → 0.5.5
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 +26 -0
- data/README.md +1 -1
- data/lib/orb/internal/util.rb +8 -2
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8f8963482bbf7d53f0eca5aaf33903328ef6b33c07568c87f55e254c60c995b
|
4
|
+
data.tar.gz: 76f59da8f86eaf4b8309ec94b885fed6a786efa65d18c6b093955342509831eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3b0c5cbf887d115e30a9032023ad9c89c88304c9a4b0c06341a8d6e50becea33718a88bf2440b897df6501b89dc4998fd3d2c10fed32d67c71e63e323d0ecf7
|
7
|
+
data.tar.gz: 45017934cba07aeae4300210d8a9436dc615d60aeb36fd5afcc69a2a9ef15876e8e2a40700b87db217de92c58bc33b755ef1ae93454855c7c3cf5e7a4d3a5f0e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.5.5 (2025-05-27)
|
4
|
+
|
5
|
+
Full Changelog: [v0.5.4...v0.5.5](https://github.com/orbcorp/orb-ruby/compare/v0.5.4...v0.5.5)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* sorbet types for enums, and make tapioca detection ignore `tapioca dsl` ([f3eec68](https://github.com/orbcorp/orb-ruby/commit/f3eec68e79230db42f9fe79145cec8bf8db41041))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([23ded61](https://github.com/orbcorp/orb-ruby/commit/23ded619f628e545090c27e83c591cafa26505b7))
|
15
|
+
|
16
|
+
## 0.5.4 (2025-05-23)
|
17
|
+
|
18
|
+
Full Changelog: [v0.5.3...v0.5.4](https://github.com/orbcorp/orb-ruby/compare/v0.5.3...v0.5.4)
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* prevent rubocop from mangling `===` to `is_a?` check ([dcff731](https://github.com/orbcorp/orb-ruby/commit/dcff7318aec9cfaa21b7a82849d9df89d82e3ecb))
|
23
|
+
|
24
|
+
|
25
|
+
### Chores
|
26
|
+
|
27
|
+
* **internal:** version bump ([853de30](https://github.com/orbcorp/orb-ruby/commit/853de30e4985aea443239b02ad9ce92ae6ff6ce9))
|
28
|
+
|
3
29
|
## 0.5.3 (2025-05-22)
|
4
30
|
|
5
31
|
Full Changelog: [v0.5.2...v0.5.3](https://github.com/orbcorp/orb-ruby/compare/v0.5.2...v0.5.3)
|
data/README.md
CHANGED
data/lib/orb/internal/util.rb
CHANGED
@@ -600,11 +600,12 @@ module Orb
|
|
600
600
|
#
|
601
601
|
# @return [Object]
|
602
602
|
def encode_content(headers, body)
|
603
|
+
# rubocop:disable Style/CaseEquality
|
603
604
|
content_type = headers["content-type"]
|
604
605
|
case [content_type, body]
|
605
606
|
in [Orb::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
|
606
607
|
[headers, JSON.generate(body)]
|
607
|
-
in [Orb::Internal::Util::JSONL_CONTENT, Enumerable] unless
|
608
|
+
in [Orb::Internal::Util::JSONL_CONTENT, Enumerable] unless Orb::Internal::Type::FileInput === body
|
608
609
|
[headers, body.lazy.map { JSON.generate(_1) }]
|
609
610
|
in [%r{^multipart/form-data}, Hash | Orb::Internal::Type::FileInput]
|
610
611
|
boundary, strio = encode_multipart_streaming(body)
|
@@ -619,6 +620,7 @@ module Orb
|
|
619
620
|
else
|
620
621
|
[headers, body]
|
621
622
|
end
|
623
|
+
# rubocop:enable Style/CaseEquality
|
622
624
|
end
|
623
625
|
|
624
626
|
# @api private
|
@@ -871,8 +873,12 @@ module Orb
|
|
871
873
|
case type
|
872
874
|
in Orb::Internal::Util::SorbetRuntimeSupport
|
873
875
|
type.to_sorbet_type
|
874
|
-
|
876
|
+
in Class | Module
|
875
877
|
type
|
878
|
+
in true | false
|
879
|
+
T::Boolean
|
880
|
+
else
|
881
|
+
type.class
|
876
882
|
end
|
877
883
|
end
|
878
884
|
end
|
data/lib/orb/version.rb
CHANGED
data/lib/orb.rb
CHANGED
@@ -20,7 +20,9 @@ require "uri"
|
|
20
20
|
|
21
21
|
# We already ship the preferred sorbet manifests in the package itself.
|
22
22
|
# `tapioca` currently does not offer us a way to opt out of unnecessary compilation.
|
23
|
-
if Object.const_defined?(:Tapioca) &&
|
23
|
+
if Object.const_defined?(:Tapioca) &&
|
24
|
+
caller.chain([$PROGRAM_NAME]).chain(ARGV).any?(/tapioca/) &&
|
25
|
+
ARGV.none?(/dsl/)
|
24
26
|
return
|
25
27
|
end
|
26
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orb-billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|