capistrano-data_plane_api 0.4.1 → 0.5.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +23 -19
- data/capistrano-data_plane_api.gemspec +1 -1
- data/lib/capistrano/data_plane_api/type.rb +2 -0
- data/lib/capistrano/data_plane_api/version.rb +1 -1
- data/sorbet/config +1 -1
- data/sorbet/rbi/annotations/minitest.rbi +1 -0
- data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration/backend.rbi +15 -2
- data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration.rbi +15 -2
- data/sorbet/rbi/gems/bigdecimal@4.0.1.rbi +332 -0
- data/sorbet/rbi/gems/shale-builder@0.9.3.rbi +267 -0
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +997 -478
- metadata +9 -15
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +0 -8
- data/sorbet/rbi/gems/shale-builder@0.2.4.rbi +0 -9
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `shale-builder` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem shale-builder`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# source://shale-builder//lib/shale/builder/version.rb#3
|
|
9
|
+
module Shale; end
|
|
10
|
+
|
|
11
|
+
# source://shale-builder//lib/shale/attribute.rb#7
|
|
12
|
+
class Shale::Attribute
|
|
13
|
+
# Contains the documentation comment for the shale attribute
|
|
14
|
+
# in a Ruby String.
|
|
15
|
+
#
|
|
16
|
+
# source://shale-builder//lib/shale/attribute.rb#24
|
|
17
|
+
sig { returns(T.nilable(T::Array[::Symbol])) }
|
|
18
|
+
def aliases; end
|
|
19
|
+
|
|
20
|
+
# Contains the documentation comment for the shale attribute
|
|
21
|
+
# in a Ruby String.
|
|
22
|
+
#
|
|
23
|
+
# source://shale-builder//lib/shale/attribute.rb#24
|
|
24
|
+
def aliases=(_arg0); end
|
|
25
|
+
|
|
26
|
+
# source://shale-builder//lib/shale/attribute.rb#27
|
|
27
|
+
sig { returns(T::Array[::Symbol]) }
|
|
28
|
+
def all_names; end
|
|
29
|
+
|
|
30
|
+
# Returns `true` if the attribute is handled by a shale builder.
|
|
31
|
+
#
|
|
32
|
+
#
|
|
33
|
+
# source://shale-builder//lib/shale/attribute.rb#45
|
|
34
|
+
sig { returns(T::Boolean) }
|
|
35
|
+
def builder?; end
|
|
36
|
+
|
|
37
|
+
# Contains the documentation comment for the shale attribute
|
|
38
|
+
# in a Ruby String.
|
|
39
|
+
#
|
|
40
|
+
# source://shale-builder//lib/shale/attribute.rb#19
|
|
41
|
+
sig { returns(T.nilable(::String)) }
|
|
42
|
+
def doc; end
|
|
43
|
+
|
|
44
|
+
# Contains the documentation comment for the shale attribute
|
|
45
|
+
# in a Ruby String.
|
|
46
|
+
#
|
|
47
|
+
# source://shale-builder//lib/shale/attribute.rb#19
|
|
48
|
+
def doc=(_arg0); end
|
|
49
|
+
|
|
50
|
+
# Returns `true` if the attribute is handled by a shale mapper.
|
|
51
|
+
#
|
|
52
|
+
#
|
|
53
|
+
# source://shale-builder//lib/shale/attribute.rb#38
|
|
54
|
+
sig { returns(T::Boolean) }
|
|
55
|
+
def mapper?; end
|
|
56
|
+
|
|
57
|
+
# source://shale-builder//lib/shale/attribute.rb#14
|
|
58
|
+
sig { returns(T.untyped) }
|
|
59
|
+
def return_type; end
|
|
60
|
+
|
|
61
|
+
# source://shale-builder//lib/shale/attribute.rb#14
|
|
62
|
+
def return_type=(_arg0); end
|
|
63
|
+
|
|
64
|
+
# source://shale-builder//lib/shale/attribute.rb#11
|
|
65
|
+
sig { returns(T.untyped) }
|
|
66
|
+
def setter_type; end
|
|
67
|
+
|
|
68
|
+
# source://shale-builder//lib/shale/attribute.rb#11
|
|
69
|
+
def setter_type=(_arg0); end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# It's meant to be included in subclasses of `Shale::Mapper`
|
|
73
|
+
# to provide an easier way of building instances.
|
|
74
|
+
#
|
|
75
|
+
# Example:
|
|
76
|
+
#
|
|
77
|
+
# require 'shale/builder'
|
|
78
|
+
#
|
|
79
|
+
# class PaymentInstrument < Shale::Mapper
|
|
80
|
+
# include Shale::Builder
|
|
81
|
+
#
|
|
82
|
+
# attribute :number, Shale::Type::String
|
|
83
|
+
# attribute :expiration_year, ::Shale::Type::Integer
|
|
84
|
+
# attribute :expiration_month, ::Shale::Type::Integer
|
|
85
|
+
# end
|
|
86
|
+
#
|
|
87
|
+
# class Transaction < ::Shale::Mapper
|
|
88
|
+
# include Shale::Builder
|
|
89
|
+
#
|
|
90
|
+
# attribute :cvv_code, Shale::Type::String
|
|
91
|
+
# attribute :payment_instrument, PaymentInstrument
|
|
92
|
+
# end
|
|
93
|
+
#
|
|
94
|
+
# transaction = Transaction.build do |t|
|
|
95
|
+
# t.cvv_code = '123'
|
|
96
|
+
# t.payment_instrument do |p|
|
|
97
|
+
# p.number = '4242424242424242'
|
|
98
|
+
# p.expiration_year = 2045
|
|
99
|
+
# p.expiration_month = 12
|
|
100
|
+
# end
|
|
101
|
+
# end
|
|
102
|
+
#
|
|
103
|
+
#
|
|
104
|
+
# source://shale-builder//lib/shale/builder/version.rb#4
|
|
105
|
+
module Shale::Builder
|
|
106
|
+
requires_ancestor { Object }
|
|
107
|
+
|
|
108
|
+
mixes_in_class_methods ::Shale::Builder::ClassMethods
|
|
109
|
+
|
|
110
|
+
# Returns an array of shale values
|
|
111
|
+
# that have been assigned.
|
|
112
|
+
#
|
|
113
|
+
#
|
|
114
|
+
# source://shale-builder//lib/shale/builder.rb#217
|
|
115
|
+
sig { returns(T::Array[::Shale::Builder::Value]) }
|
|
116
|
+
def attribute_values; end
|
|
117
|
+
|
|
118
|
+
# Attempts to set the given attributes and values
|
|
119
|
+
# within this shale builder object and all of its sub-builders.
|
|
120
|
+
# Attributes that aren't defined are ignored.
|
|
121
|
+
#
|
|
122
|
+
#
|
|
123
|
+
# source://shale-builder//lib/shale/builder.rb#229
|
|
124
|
+
sig { params(context: T.untyped).void }
|
|
125
|
+
def inject_context(**context); end
|
|
126
|
+
|
|
127
|
+
class << self
|
|
128
|
+
# Gets called after including this module in a module or class.
|
|
129
|
+
#
|
|
130
|
+
# source://shale-builder//lib/shale/builder.rb#57
|
|
131
|
+
sig { params(mod: ::Module).void }
|
|
132
|
+
def included(mod); end
|
|
133
|
+
|
|
134
|
+
# Prepares the received module or class
|
|
135
|
+
# for dynamic method definition.
|
|
136
|
+
#
|
|
137
|
+
# source://shale-builder//lib/shale/builder.rb#65
|
|
138
|
+
sig { params(mod: ::Module).void }
|
|
139
|
+
def prepare_mod(mod); end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Class methods provided by `Shale::Builder`
|
|
144
|
+
#
|
|
145
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
|
146
|
+
#
|
|
147
|
+
# source://shale-builder//lib/shale/builder.rb#73
|
|
148
|
+
module Shale::Builder::ClassMethods
|
|
149
|
+
extend T::Generic
|
|
150
|
+
|
|
151
|
+
abstract!
|
|
152
|
+
|
|
153
|
+
has_attached_class!
|
|
154
|
+
|
|
155
|
+
# Create an alias for the getter and setter of an attribute.
|
|
156
|
+
#
|
|
157
|
+
# source://shale-builder//lib/shale/builder.rb#159
|
|
158
|
+
sig { params(new_name: ::Symbol, old_name: ::Symbol).void }
|
|
159
|
+
def alias_attribute(new_name, old_name); end
|
|
160
|
+
|
|
161
|
+
# source://shale-builder//lib/shale/builder.rb#106
|
|
162
|
+
sig do
|
|
163
|
+
params(
|
|
164
|
+
name: T.any(::String, ::Symbol),
|
|
165
|
+
shale_mapper: ::Class,
|
|
166
|
+
collection: T::Boolean,
|
|
167
|
+
default: T.nilable(::Proc),
|
|
168
|
+
doc: T.nilable(::String),
|
|
169
|
+
return_type: T.untyped,
|
|
170
|
+
setter_type: T.untyped,
|
|
171
|
+
kwargs: ::Object,
|
|
172
|
+
block: T.nilable(T.proc.void)
|
|
173
|
+
).void
|
|
174
|
+
end
|
|
175
|
+
def attribute(name, shale_mapper, collection: T.unsafe(nil), default: T.unsafe(nil), doc: T.unsafe(nil), return_type: T.unsafe(nil), setter_type: T.unsafe(nil), **kwargs, &block); end
|
|
176
|
+
|
|
177
|
+
# @abstract
|
|
178
|
+
#
|
|
179
|
+
# source://shale-builder//lib/shale/builder.rb#103
|
|
180
|
+
sig { abstract.returns(T::Hash[::Symbol, ::Shale::Attribute]) }
|
|
181
|
+
def attributes; end
|
|
182
|
+
|
|
183
|
+
# @yield [body]
|
|
184
|
+
#
|
|
185
|
+
# source://shale-builder//lib/shale/builder.rb#92
|
|
186
|
+
sig { params(_block: T.proc.params(arg0: T.attached_class).void).returns(T.attached_class) }
|
|
187
|
+
def build(&_block); end
|
|
188
|
+
|
|
189
|
+
# Returns a hash of shale attributes that are handled by a shale builder.
|
|
190
|
+
# The result gets memoized.
|
|
191
|
+
#
|
|
192
|
+
#
|
|
193
|
+
# source://shale-builder//lib/shale/builder.rb#196
|
|
194
|
+
sig { returns(T::Hash[::Symbol, ::Shale::Attribute]) }
|
|
195
|
+
def builder_attributes; end
|
|
196
|
+
|
|
197
|
+
# Returns a hash of shale attributes that are handled by a shale builder.
|
|
198
|
+
# Always constructs a new hash.
|
|
199
|
+
#
|
|
200
|
+
#
|
|
201
|
+
# source://shale-builder//lib/shale/builder.rb#204
|
|
202
|
+
sig { returns(T::Hash[::Symbol, ::Shale::Attribute]) }
|
|
203
|
+
def builder_attributes!; end
|
|
204
|
+
|
|
205
|
+
# Contains overridden getter methods for attributes
|
|
206
|
+
# with complex types (so that they accept a block for building)
|
|
207
|
+
#
|
|
208
|
+
# source://shale-builder//lib/shale/builder.rb#89
|
|
209
|
+
sig { returns(::Module) }
|
|
210
|
+
def builder_methods_module; end
|
|
211
|
+
|
|
212
|
+
# source://shale-builder//lib/shale/builder.rb#81
|
|
213
|
+
sig { params(subclass: ::Class).void }
|
|
214
|
+
def inherited(subclass); end
|
|
215
|
+
|
|
216
|
+
# Returns a hash of shale attributes that are handled by a shale mapper.
|
|
217
|
+
# The result gets memoized.
|
|
218
|
+
#
|
|
219
|
+
#
|
|
220
|
+
# source://shale-builder//lib/shale/builder.rb#178
|
|
221
|
+
sig { returns(T::Hash[::Symbol, ::Shale::Attribute]) }
|
|
222
|
+
def mapper_attributes; end
|
|
223
|
+
|
|
224
|
+
# Returns a hash of shale attributes that are handled by a shale mapper.
|
|
225
|
+
# Always constructs a new hash.
|
|
226
|
+
#
|
|
227
|
+
#
|
|
228
|
+
# source://shale-builder//lib/shale/builder.rb#186
|
|
229
|
+
sig { returns(T::Hash[::Symbol, ::Shale::Attribute]) }
|
|
230
|
+
def mapper_attributes!; end
|
|
231
|
+
|
|
232
|
+
# @abstract
|
|
233
|
+
#
|
|
234
|
+
# source://shale-builder//lib/shale/builder.rb#100
|
|
235
|
+
sig { abstract.params(props: T.anything).returns(T.attached_class) }
|
|
236
|
+
def new(**props); end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# source://shale-builder//lib/shale/builder.rb#50
|
|
240
|
+
Shale::Builder::S = Shale::Type
|
|
241
|
+
|
|
242
|
+
# source://shale-builder//lib/shale/builder/version.rb#5
|
|
243
|
+
Shale::Builder::VERSION = T.let(T.unsafe(nil), String)
|
|
244
|
+
|
|
245
|
+
# Represents a value of a particular shale attribute.
|
|
246
|
+
# Hold the value and a reference to the attribute definition.
|
|
247
|
+
#
|
|
248
|
+
# source://shale-builder//lib/shale/builder/value.rb#10
|
|
249
|
+
class Shale::Builder::Value
|
|
250
|
+
# source://shale-builder//lib/shale/builder/value.rb#24
|
|
251
|
+
sig { params(attribute: ::Shale::Attribute, value: T.untyped).void }
|
|
252
|
+
def initialize(attribute, value); end
|
|
253
|
+
|
|
254
|
+
# Shale attribute definition
|
|
255
|
+
#
|
|
256
|
+
#
|
|
257
|
+
# source://shale-builder//lib/shale/builder/value.rb#16
|
|
258
|
+
sig { returns(::Shale::Attribute) }
|
|
259
|
+
def attribute; end
|
|
260
|
+
|
|
261
|
+
# Value of the attribute.
|
|
262
|
+
#
|
|
263
|
+
#
|
|
264
|
+
# source://shale-builder//lib/shale/builder/value.rb#21
|
|
265
|
+
sig { returns(T.untyped) }
|
|
266
|
+
def value; end
|
|
267
|
+
end
|