capistrano-data_plane_api 0.4.1 → 0.4.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 +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +15 -11
- 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/rbi/annotations/minitest.rbi +1 -0
- data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration/backend.rbi +7 -2
- data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration.rbi +7 -2
- data/sorbet/rbi/gems/bigdecimal@4.0.1.rbi +332 -0
- data/sorbet/rbi/gems/shale-builder@0.8.5.rbi +267 -0
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +997 -478
- metadata +9 -9
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0e6727cc66e642fbe370bcc6cf1ca1bac711c35d69359e2f0c6ac554621ef0b
|
|
4
|
+
data.tar.gz: cce5d8e17731e5f50c9150416f6462e97b7a07432ac6c077c6cc04e77cb72b06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40ae759ffc262e1c6df3bfbcc954658440965694b51cd86c9e65d358cb99a778660213137515ff92283062eafb1d9d31c679ca157ddda183913ecd3598914965
|
|
7
|
+
data.tar.gz: 565d673a69a68f8f9c0e1cc488390bf4b9ad0d8eab8c685611c1491f1f0befc2a9dec6a6f469ca4a2fb53dc6c55e6770dcdd3fb191e9c1352672fdf6eeee42b7
|
data/Gemfile
CHANGED
|
@@ -12,7 +12,7 @@ gem 'rubocop', '~> 1.21' # Ruby linter
|
|
|
12
12
|
gem 'rubocop-espago', '~> 1.0' # Custom Ruby linter config
|
|
13
13
|
gem 'rubocop-sorbet', '~> 0.10.0' # Rubocop config for sorbet
|
|
14
14
|
gem 'shoulda-context', '~> 2.0' # Testing utilities
|
|
15
|
-
gem 'sorbet', '~> 0.
|
|
16
|
-
gem 'tapioca', '~> 0.
|
|
15
|
+
gem 'sorbet', '~> 0.6.12940' # static typechecker
|
|
16
|
+
gem 'tapioca', '~> 0.17.10', require: false # RBI generator
|
|
17
17
|
gem 'vcr', '~> 6.3.1' # Save HTTP interactions to files during tests
|
|
18
18
|
gem 'webmock', '~> 3.25.1' # Mock network interactions
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
capistrano-data_plane_api (0.4.
|
|
4
|
+
capistrano-data_plane_api (0.4.2)
|
|
5
5
|
booleans (~> 0.1)
|
|
6
6
|
data_plane_api (>= 0.2)
|
|
7
7
|
pastel (< 1)
|
|
8
8
|
shale (>= 1, < 2)
|
|
9
|
-
shale-builder (>= 0.2.4,
|
|
9
|
+
shale-builder (>= 0.2.4, <= 0.8.5)
|
|
10
10
|
sorbet-runtime (~> 0.5)
|
|
11
11
|
thor (> 1, < 2)
|
|
12
12
|
tty-box (< 1)
|
|
@@ -20,7 +20,7 @@ GEM
|
|
|
20
20
|
ast (2.4.3)
|
|
21
21
|
base64 (0.2.0)
|
|
22
22
|
benchmark (0.5.0)
|
|
23
|
-
bigdecimal (
|
|
23
|
+
bigdecimal (4.0.1)
|
|
24
24
|
booleans (0.1.3)
|
|
25
25
|
sorbet-runtime (>= 0.5)
|
|
26
26
|
byebug (12.0.0)
|
|
@@ -61,10 +61,12 @@ GEM
|
|
|
61
61
|
rbi (0.3.9)
|
|
62
62
|
prism (~> 1.0)
|
|
63
63
|
rbs (>= 3.4.4)
|
|
64
|
-
rbs (
|
|
64
|
+
rbs (4.0.0.dev.5)
|
|
65
65
|
logger
|
|
66
|
+
prism (>= 1.3.0)
|
|
66
67
|
tsort
|
|
67
68
|
regexp_parser (2.10.0)
|
|
69
|
+
require-hooks (0.2.3)
|
|
68
70
|
rexml (3.4.1)
|
|
69
71
|
rubocop (1.75.2)
|
|
70
72
|
json (~> 2.3)
|
|
@@ -87,7 +89,7 @@ GEM
|
|
|
87
89
|
ruby-progressbar (1.13.0)
|
|
88
90
|
shale (1.2.2)
|
|
89
91
|
bigdecimal
|
|
90
|
-
shale-builder (0.5
|
|
92
|
+
shale-builder (0.8.5)
|
|
91
93
|
booleans (>= 0.1)
|
|
92
94
|
shale (< 2.0)
|
|
93
95
|
sorbet-runtime (> 0.5)
|
|
@@ -100,10 +102,11 @@ GEM
|
|
|
100
102
|
sorbet-static-and-runtime (0.6.12940)
|
|
101
103
|
sorbet (= 0.6.12940)
|
|
102
104
|
sorbet-runtime (= 0.6.12940)
|
|
103
|
-
spoom (1.
|
|
105
|
+
spoom (1.7.11)
|
|
104
106
|
erubi (>= 1.10.0)
|
|
105
107
|
prism (>= 0.28.0)
|
|
106
108
|
rbi (>= 0.3.3)
|
|
109
|
+
rbs (>= 4.0.0.dev.4)
|
|
107
110
|
rexml (>= 3.2.6)
|
|
108
111
|
sorbet-static-and-runtime (>= 0.5.10187)
|
|
109
112
|
thor (>= 0.19.2)
|
|
@@ -112,14 +115,15 @@ GEM
|
|
|
112
115
|
unicode-display_width (>= 1.5, < 3.0)
|
|
113
116
|
unicode_utils (~> 1.4)
|
|
114
117
|
strings-ansi (0.2.0)
|
|
115
|
-
tapioca (0.
|
|
118
|
+
tapioca (0.17.10)
|
|
116
119
|
benchmark
|
|
117
120
|
bundler (>= 2.2.25)
|
|
118
121
|
netrc (>= 0.11.0)
|
|
119
122
|
parallel (>= 1.21.0)
|
|
120
|
-
rbi (
|
|
123
|
+
rbi (>= 0.3.7)
|
|
124
|
+
require-hooks (>= 0.2.2)
|
|
121
125
|
sorbet-static-and-runtime (>= 0.5.11087)
|
|
122
|
-
spoom (>= 1.
|
|
126
|
+
spoom (>= 1.7.9)
|
|
123
127
|
thor (>= 1.2.0)
|
|
124
128
|
yard-sorbet
|
|
125
129
|
thor (1.5.0)
|
|
@@ -159,8 +163,8 @@ DEPENDENCIES
|
|
|
159
163
|
rubocop-espago (~> 1.0)
|
|
160
164
|
rubocop-sorbet (~> 0.10.0)
|
|
161
165
|
shoulda-context (~> 2.0)
|
|
162
|
-
sorbet (~> 0.
|
|
163
|
-
tapioca (~> 0.
|
|
166
|
+
sorbet (~> 0.6.12940)
|
|
167
|
+
tapioca (~> 0.17.10)
|
|
164
168
|
vcr (~> 6.3.1)
|
|
165
169
|
webmock (~> 3.25.1)
|
|
166
170
|
|
|
@@ -34,7 +34,7 @@ require_relative 'lib/capistrano/data_plane_api/version'
|
|
|
34
34
|
spec.add_dependency 'data_plane_api', '>= 0.2'
|
|
35
35
|
spec.add_dependency 'pastel', '< 1'
|
|
36
36
|
spec.add_dependency 'shale', '>= 1', '< 2'
|
|
37
|
-
spec.add_dependency 'shale-builder', '>= 0.2.4', '
|
|
37
|
+
spec.add_dependency 'shale-builder', '>= 0.2.4', '<= 0.8.5'
|
|
38
38
|
spec.add_dependency 'sorbet-runtime', '~> 0.5'
|
|
39
39
|
spec.add_dependency 'thor', '> 1', '< 2'
|
|
40
40
|
spec.add_dependency 'tty-box', '< 1'
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
require 'shale'
|
|
5
|
+
require 'shale/builder'
|
|
5
6
|
|
|
6
7
|
require_relative 'diggable'
|
|
7
8
|
require_relative 'equatable'
|
|
@@ -14,6 +15,7 @@ module Capistrano
|
|
|
14
15
|
|
|
15
16
|
abstract!
|
|
16
17
|
|
|
18
|
+
include ::Shale::Builder
|
|
17
19
|
include Diggable
|
|
18
20
|
include Equatable
|
|
19
21
|
|
|
@@ -60,6 +60,7 @@ module Minitest::Assertions
|
|
|
60
60
|
sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
|
|
61
61
|
def assert_same(exp, act, msg = nil); end
|
|
62
62
|
|
|
63
|
+
# @version < 6.0.0
|
|
63
64
|
sig { params(send_ary: T::Array[T.anything], m: T.anything).returns(T::Boolean) }
|
|
64
65
|
def assert_send(send_ary, m = nil); end
|
|
65
66
|
|
|
@@ -33,8 +33,13 @@ class Capistrano::DataPlaneApi::Configuration::Backend
|
|
|
33
33
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
34
|
def name=(value); end
|
|
35
35
|
|
|
36
|
-
sig { returns(T.nilable(T::Array[Capistrano::DataPlaneApi::Configuration::Server])) }
|
|
37
|
-
|
|
36
|
+
sig { params(block: NilClass).returns(T.nilable(T::Array[Capistrano::DataPlaneApi::Configuration::Server])) }
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
block: T.proc.params(arg0: Capistrano::DataPlaneApi::Configuration::Server).void
|
|
40
|
+
).returns(Capistrano::DataPlaneApi::Configuration::Server)
|
|
41
|
+
end
|
|
42
|
+
def servers(&block); end
|
|
38
43
|
|
|
39
44
|
sig do
|
|
40
45
|
params(
|
|
@@ -15,8 +15,13 @@ class Capistrano::DataPlaneApi::Configuration
|
|
|
15
15
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
16
16
|
def api_url=(value); end
|
|
17
17
|
|
|
18
|
-
sig { returns(T.nilable(T::Array[Capistrano::DataPlaneApi::Configuration::Backend])) }
|
|
19
|
-
|
|
18
|
+
sig { params(block: NilClass).returns(T.nilable(T::Array[Capistrano::DataPlaneApi::Configuration::Backend])) }
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
block: T.proc.params(arg0: Capistrano::DataPlaneApi::Configuration::Backend).void
|
|
22
|
+
).returns(Capistrano::DataPlaneApi::Configuration::Backend)
|
|
23
|
+
end
|
|
24
|
+
def backends(&block); end
|
|
20
25
|
|
|
21
26
|
sig do
|
|
22
27
|
params(
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `bigdecimal` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem bigdecimal`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# source://bigdecimal//lib/bigdecimal.rb#13
|
|
9
|
+
class BigDecimal < ::Numeric
|
|
10
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
11
|
+
def %(_arg0); end
|
|
12
|
+
|
|
13
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
14
|
+
def *(_arg0); end
|
|
15
|
+
|
|
16
|
+
# call-seq:
|
|
17
|
+
# self ** other -> bigdecimal
|
|
18
|
+
#
|
|
19
|
+
# Returns the \BigDecimal value of +self+ raised to power +other+:
|
|
20
|
+
#
|
|
21
|
+
# b = BigDecimal('3.14')
|
|
22
|
+
# b ** 2 # => 0.98596e1
|
|
23
|
+
# b ** 2.0 # => 0.98596e1
|
|
24
|
+
# b ** Rational(2, 1) # => 0.98596e1
|
|
25
|
+
#
|
|
26
|
+
# Related: BigDecimal#power.
|
|
27
|
+
#
|
|
28
|
+
# source://bigdecimal//lib/bigdecimal.rb#77
|
|
29
|
+
def **(y); end
|
|
30
|
+
|
|
31
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
32
|
+
def +(_arg0); end
|
|
33
|
+
|
|
34
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
35
|
+
def +@; end
|
|
36
|
+
|
|
37
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
38
|
+
def -(_arg0); end
|
|
39
|
+
|
|
40
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
41
|
+
def -@; end
|
|
42
|
+
|
|
43
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
44
|
+
def /(_arg0); end
|
|
45
|
+
|
|
46
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
47
|
+
def <(_arg0); end
|
|
48
|
+
|
|
49
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
50
|
+
def <=(_arg0); end
|
|
51
|
+
|
|
52
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
53
|
+
def <=>(_arg0); end
|
|
54
|
+
|
|
55
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
56
|
+
def ==(_arg0); end
|
|
57
|
+
|
|
58
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
59
|
+
def ===(_arg0); end
|
|
60
|
+
|
|
61
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
62
|
+
def >(_arg0); end
|
|
63
|
+
|
|
64
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
65
|
+
def >=(_arg0); end
|
|
66
|
+
|
|
67
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
68
|
+
def _decimal_shift(_arg0); end
|
|
69
|
+
|
|
70
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
71
|
+
def _dump(*_arg0); end
|
|
72
|
+
|
|
73
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
74
|
+
def abs; end
|
|
75
|
+
|
|
76
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
77
|
+
def add(_arg0, _arg1); end
|
|
78
|
+
|
|
79
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
80
|
+
def ceil(*_arg0); end
|
|
81
|
+
|
|
82
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
83
|
+
def clone; end
|
|
84
|
+
|
|
85
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
86
|
+
def coerce(_arg0); end
|
|
87
|
+
|
|
88
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
89
|
+
def div(*_arg0); end
|
|
90
|
+
|
|
91
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
92
|
+
def divmod(_arg0); end
|
|
93
|
+
|
|
94
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
95
|
+
def dup; end
|
|
96
|
+
|
|
97
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
98
|
+
def eql?(_arg0); end
|
|
99
|
+
|
|
100
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
101
|
+
def exponent; end
|
|
102
|
+
|
|
103
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
104
|
+
def finite?; end
|
|
105
|
+
|
|
106
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
107
|
+
def fix; end
|
|
108
|
+
|
|
109
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
110
|
+
def floor(*_arg0); end
|
|
111
|
+
|
|
112
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
113
|
+
def frac; end
|
|
114
|
+
|
|
115
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
116
|
+
def hash; end
|
|
117
|
+
|
|
118
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
119
|
+
def infinite?; end
|
|
120
|
+
|
|
121
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
122
|
+
def inspect; end
|
|
123
|
+
|
|
124
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
125
|
+
def modulo(_arg0); end
|
|
126
|
+
|
|
127
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
128
|
+
def mult(_arg0, _arg1); end
|
|
129
|
+
|
|
130
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
131
|
+
def n_significant_digits; end
|
|
132
|
+
|
|
133
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
134
|
+
def nan?; end
|
|
135
|
+
|
|
136
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
137
|
+
def nonzero?; end
|
|
138
|
+
|
|
139
|
+
# call-seq:
|
|
140
|
+
# power(n)
|
|
141
|
+
# power(n, prec)
|
|
142
|
+
#
|
|
143
|
+
# Returns the value raised to the power of n.
|
|
144
|
+
#
|
|
145
|
+
# Also available as the operator **.
|
|
146
|
+
#
|
|
147
|
+
# source://bigdecimal//lib/bigdecimal.rb#97
|
|
148
|
+
def power(y, prec = T.unsafe(nil)); end
|
|
149
|
+
|
|
150
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
151
|
+
def precision; end
|
|
152
|
+
|
|
153
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
154
|
+
def precision_scale; end
|
|
155
|
+
|
|
156
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
157
|
+
def quo(*_arg0); end
|
|
158
|
+
|
|
159
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
160
|
+
def remainder(_arg0); end
|
|
161
|
+
|
|
162
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
163
|
+
def round(*_arg0); end
|
|
164
|
+
|
|
165
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
166
|
+
def scale; end
|
|
167
|
+
|
|
168
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
169
|
+
def sign; end
|
|
170
|
+
|
|
171
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
172
|
+
def split; end
|
|
173
|
+
|
|
174
|
+
# Returns the square root of the value.
|
|
175
|
+
#
|
|
176
|
+
# Result has at least prec significant digits.
|
|
177
|
+
#
|
|
178
|
+
# @raise [FloatDomainError]
|
|
179
|
+
#
|
|
180
|
+
# source://bigdecimal//lib/bigdecimal.rb#212
|
|
181
|
+
def sqrt(prec); end
|
|
182
|
+
|
|
183
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
184
|
+
def sub(_arg0, _arg1); end
|
|
185
|
+
|
|
186
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
187
|
+
def to_f; end
|
|
188
|
+
|
|
189
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
190
|
+
def to_i; end
|
|
191
|
+
|
|
192
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
193
|
+
def to_int; end
|
|
194
|
+
|
|
195
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
196
|
+
def to_r; end
|
|
197
|
+
|
|
198
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
199
|
+
def to_s(*_arg0); end
|
|
200
|
+
|
|
201
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
202
|
+
def truncate(*_arg0); end
|
|
203
|
+
|
|
204
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
205
|
+
def zero?; end
|
|
206
|
+
|
|
207
|
+
class << self
|
|
208
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
209
|
+
def _load(_arg0); end
|
|
210
|
+
|
|
211
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
212
|
+
def double_fig; end
|
|
213
|
+
|
|
214
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
215
|
+
def interpret_loosely(_arg0); end
|
|
216
|
+
|
|
217
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
218
|
+
def limit(*_arg0); end
|
|
219
|
+
|
|
220
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
221
|
+
def mode(*_arg0); end
|
|
222
|
+
|
|
223
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
224
|
+
def save_exception_mode; end
|
|
225
|
+
|
|
226
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
227
|
+
def save_limit; end
|
|
228
|
+
|
|
229
|
+
# source://bigdecimal//lib/bigdecimal.rb#10
|
|
230
|
+
def save_rounding_mode; end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# source://bigdecimal//lib/bigdecimal.rb#14
|
|
235
|
+
module BigDecimal::Internal
|
|
236
|
+
class << self
|
|
237
|
+
# Coerce x to BigDecimal with the specified precision.
|
|
238
|
+
# TODO: some methods (example: BigMath.exp) require more precision than specified to coerce.
|
|
239
|
+
#
|
|
240
|
+
# @raise [ArgumentError]
|
|
241
|
+
#
|
|
242
|
+
# source://bigdecimal//lib/bigdecimal.rb#18
|
|
243
|
+
def coerce_to_bigdecimal(x, prec, method_name); end
|
|
244
|
+
|
|
245
|
+
# source://bigdecimal//lib/bigdecimal.rb#30
|
|
246
|
+
def coerce_validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end
|
|
247
|
+
|
|
248
|
+
# source://bigdecimal//lib/bigdecimal.rb#50
|
|
249
|
+
def infinity_computation_result; end
|
|
250
|
+
|
|
251
|
+
# source://bigdecimal//lib/bigdecimal.rb#57
|
|
252
|
+
def nan_computation_result; end
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
BigDecimal::VERSION = T.let(T.unsafe(nil), String)
|
|
257
|
+
|
|
258
|
+
# Core BigMath methods for BigDecimal (log, exp) are defined here.
|
|
259
|
+
# Other methods (sin, cos, atan) are defined in 'bigdecimal/math.rb'.
|
|
260
|
+
#
|
|
261
|
+
# source://bigdecimal//lib/bigdecimal.rb#240
|
|
262
|
+
module BigMath
|
|
263
|
+
private
|
|
264
|
+
|
|
265
|
+
# source://bigdecimal//lib/bigdecimal.rb#310
|
|
266
|
+
def _exp_taylor(x, prec); end
|
|
267
|
+
|
|
268
|
+
# call-seq:
|
|
269
|
+
# BigMath.exp(decimal, numeric) -> BigDecimal
|
|
270
|
+
#
|
|
271
|
+
# Computes the value of e (the base of natural logarithms) raised to the
|
|
272
|
+
# power of +decimal+, to the specified number of digits of precision.
|
|
273
|
+
#
|
|
274
|
+
# If +decimal+ is infinity, returns Infinity.
|
|
275
|
+
#
|
|
276
|
+
# If +decimal+ is NaN, returns NaN.
|
|
277
|
+
#
|
|
278
|
+
# source://bigdecimal//lib/bigdecimal.rb#332
|
|
279
|
+
def exp(x, prec); end
|
|
280
|
+
|
|
281
|
+
# call-seq:
|
|
282
|
+
# BigMath.log(decimal, numeric) -> BigDecimal
|
|
283
|
+
#
|
|
284
|
+
# Computes the natural logarithm of +decimal+ to the specified number of
|
|
285
|
+
# digits of precision, +numeric+.
|
|
286
|
+
#
|
|
287
|
+
# If +decimal+ is zero or negative, raises Math::DomainError.
|
|
288
|
+
#
|
|
289
|
+
# If +decimal+ is positive infinity, returns Infinity.
|
|
290
|
+
#
|
|
291
|
+
# If +decimal+ is NaN, returns NaN.
|
|
292
|
+
#
|
|
293
|
+
# source://bigdecimal//lib/bigdecimal.rb#255
|
|
294
|
+
def log(x, prec); end
|
|
295
|
+
|
|
296
|
+
class << self
|
|
297
|
+
# call-seq:
|
|
298
|
+
# BigMath.exp(decimal, numeric) -> BigDecimal
|
|
299
|
+
#
|
|
300
|
+
# Computes the value of e (the base of natural logarithms) raised to the
|
|
301
|
+
# power of +decimal+, to the specified number of digits of precision.
|
|
302
|
+
#
|
|
303
|
+
# If +decimal+ is infinity, returns Infinity.
|
|
304
|
+
#
|
|
305
|
+
# If +decimal+ is NaN, returns NaN.
|
|
306
|
+
#
|
|
307
|
+
# source://bigdecimal//lib/bigdecimal.rb#332
|
|
308
|
+
def exp(x, prec); end
|
|
309
|
+
|
|
310
|
+
# call-seq:
|
|
311
|
+
# BigMath.log(decimal, numeric) -> BigDecimal
|
|
312
|
+
#
|
|
313
|
+
# Computes the natural logarithm of +decimal+ to the specified number of
|
|
314
|
+
# digits of precision, +numeric+.
|
|
315
|
+
#
|
|
316
|
+
# If +decimal+ is zero or negative, raises Math::DomainError.
|
|
317
|
+
#
|
|
318
|
+
# If +decimal+ is positive infinity, returns Infinity.
|
|
319
|
+
#
|
|
320
|
+
# If +decimal+ is NaN, returns NaN.
|
|
321
|
+
#
|
|
322
|
+
# @raise [Math::DomainError]
|
|
323
|
+
#
|
|
324
|
+
# source://bigdecimal//lib/bigdecimal.rb#255
|
|
325
|
+
def log(x, prec); end
|
|
326
|
+
|
|
327
|
+
private
|
|
328
|
+
|
|
329
|
+
# source://bigdecimal//lib/bigdecimal.rb#310
|
|
330
|
+
def _exp_taylor(x, prec); end
|
|
331
|
+
end
|
|
332
|
+
end
|