Skip to content

Commit a7b225e

Browse files
chore(internal): codegen related update (#215)
1 parent 3c5cd96 commit a7b225e

File tree

6 files changed

+7
-35
lines changed

6 files changed

+7
-35
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Orb Ruby API library
22

3-
The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0.0+ application.
3+
The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.1.0+ application.
44

55
## Documentation
66

@@ -166,4 +166,4 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ
166166

167167
## Requirements
168168

169-
Ruby 3.0.0 or higher.
169+
Ruby 3.1.0 or higher.

lib/orb/internal/page.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ module Internal
1111
# page.auto_paging_each do |coupon|
1212
# puts(coupon)
1313
# end
14-
#
15-
# @example
16-
# coupons =
17-
# page
18-
# .to_enum
19-
# .lazy
20-
# .select { _1.object_id.even? }
21-
# .map(&:itself)
22-
# .take(2)
23-
# .to_a
24-
#
25-
# coupons => Array
2614
class Page
2715
include Orb::Internal::Type::BasePage
2816

lib/orb/internal/type/base_page.rb

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,7 @@
33
module Orb
44
module Internal
55
module Type
6-
# @example
7-
# if page.has_next?
8-
# page = page.next_page
9-
# end
10-
#
11-
# @example
12-
# page.auto_paging_each do |top_level|
13-
# puts(top_level)
14-
# end
15-
#
16-
# @example
17-
# top_levels =
18-
# page
19-
# .to_enum
20-
# .lazy
21-
# .select { _1.object_id.even? }
22-
# .map(&:itself)
23-
# .take(2)
24-
# .to_a
25-
#
26-
# top_levels => Array
6+
# This module provides a base implementation for paginated responses in the SDK.
277
module BasePage
288
# rubocop:disable Lint/UnusedMethodArgument
299

rbi/lib/orb/internal.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ module Orb
66
# Due to the current WIP status of Shapes support in Sorbet, types referencing
77
# this alias might be refined in the future.
88
AnyHash = T.type_alias { T::Hash[Symbol, T.anything] }
9+
10+
OMIT = T.let(T.anything, T.anything)
911
end
1012
end

rbi/lib/orb/internal/type/base_page.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module Orb
44
module Internal
55
module Type
6+
# This module provides a base implementation for paginated responses in the SDK.
67
module BasePage
78
Elem = type_member(:out)
89

sig/orb/internal.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module Orb
22
module Internal
3+
OMIT: top
34
end
45
end

0 commit comments

Comments
 (0)