active_cached_resource 0.0.1.pre → 0.1.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -1
  3. data/Rakefile +22 -14
  4. data/lib/active_cached_resource/version.rb +3 -3
  5. data/lib/activeresource/examples/performance.rb +1 -1
  6. data/lib/activeresource/lib/active_resource/collection.rb +14 -1
  7. data/lib/activeresource/lib/active_resource/railtie.rb +2 -2
  8. data/lib/activeresource/lib/active_resource.rb +1 -1
  9. data/lib/activeresource/test/abstract_unit.rb +2 -1
  10. data/lib/activeresource/test/cases/active_job_serializer_test.rb +1 -1
  11. data/lib/activeresource/test/cases/collection_test.rb +24 -0
  12. data/lib/activeresource/test/cases/log_subscriber_test.rb +2 -1
  13. data/lib/activeresource/test/fixtures/fixtures.rbi +46 -0
  14. data/sorbet/config +2 -0
  15. data/sorbet/rbi/gems/{actioncable@8.0.0.rbi → actioncable@8.0.1.rbi} +51 -51
  16. data/sorbet/rbi/gems/{actionpack@8.0.0.rbi → actionpack@8.0.1.rbi} +548 -346
  17. data/sorbet/rbi/gems/{actionview@8.0.0.rbi → actionview@8.0.1.rbi} +465 -263
  18. data/sorbet/rbi/gems/activejob@8.0.1.rbi +90 -0
  19. data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +4 -4
  20. data/sorbet/rbi/gems/{activemodel@8.0.0.rbi → activemodel@8.0.1.rbi} +11 -3
  21. data/sorbet/rbi/gems/{activerecord@8.0.0.rbi → activerecord@8.0.1.rbi} +957 -576
  22. data/sorbet/rbi/gems/{activesupport@8.0.0.rbi → activesupport@8.0.1.rbi} +287 -112
  23. data/sorbet/rbi/gems/{json@2.8.2.rbi → json@2.9.0.rbi} +107 -64
  24. data/sorbet/rbi/gems/{logger@1.6.1.rbi → logger@1.6.3.rbi} +31 -11
  25. data/sorbet/rbi/gems/mocha@2.7.1.rbi +12 -0
  26. data/sorbet/rbi/gems/msgpack@1.7.5.rbi +320 -0
  27. data/sorbet/rbi/gems/{nokogiri@1.16.7.rbi → nokogiri@1.17.2.rbi} +1692 -802
  28. data/sorbet/rbi/gems/{psych@5.2.0.rbi → psych@5.2.1.rbi} +47 -47
  29. data/sorbet/rbi/gems/rack@3.1.8.rbi +1 -1
  30. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +22 -22
  31. data/sorbet/rbi/gems/{rails-html-sanitizer@1.6.0.rbi → rails-html-sanitizer@1.6.2.rbi} +100 -100
  32. data/sorbet/rbi/gems/{railties@8.0.0.rbi → railties@8.0.1.rbi} +186 -126
  33. data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -63
  34. data/sorbet/rbi/gems/{rdoc@6.8.1.rbi → rdoc@6.9.1.rbi} +160 -139
  35. data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.9.3.rbi} +35 -35
  36. data/sorbet/rbi/gems/{reline@0.5.12.rbi → reline@0.6.0.rbi} +473 -435
  37. data/sorbet/rbi/gems/{rexml@3.3.9.rbi → rexml@3.4.0.rbi} +87 -74
  38. data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +3 -6
  39. data/sorbet/rbi/gems/{rubocop-ast@1.36.1.rbi → rubocop-ast@1.37.0.rbi} +514 -104
  40. data/sorbet/rbi/gems/rubocop-md@1.2.4.rbi +123 -0
  41. data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +2613 -0
  42. data/sorbet/rbi/gems/rubocop-packaging@0.5.2.rbi +388 -0
  43. data/sorbet/rbi/gems/rubocop-rails@2.27.0.rbi +9535 -0
  44. data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.69.2.rbi} +4058 -2628
  45. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  46. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +78 -0
  47. data/sorbet/rbi/gems/sqlite3@2.3.1.rbi +1824 -0
  48. data/sorbet/rbi/gems/{standard@1.40.0.rbi → standard@1.43.0.rbi} +61 -64
  49. data/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi +130 -0
  50. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  51. data/sorbet/tapioca/require.rb +2 -1
  52. metadata +49 -139
  53. data/sorbet/rbi/gems/activejob@8.0.0.rbi +0 -9
  54. data/sorbet/rbi/gems/activeresource@6.1.4.rbi +0 -3944
  55. data/sorbet/rbi/gems/securerandom@0.3.2.rbi +0 -395
  56. data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +0 -66
  57. /data/sorbet/rbi/gems/{actionmailbox@8.0.0.rbi → actionmailbox@8.0.1.rbi} +0 -0
  58. /data/sorbet/rbi/gems/{actionmailer@8.0.0.rbi → actionmailer@8.0.1.rbi} +0 -0
  59. /data/sorbet/rbi/gems/{actiontext@8.0.0.rbi → actiontext@8.0.1.rbi} +0 -0
  60. /data/sorbet/rbi/gems/{activestorage@8.0.0.rbi → activestorage@8.0.1.rbi} +0 -0
  61. /data/sorbet/rbi/gems/{date@3.4.0.rbi → date@3.4.1.rbi} +0 -0
  62. /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
  63. /data/sorbet/rbi/gems/{minitest@5.25.2.rbi → minitest@5.25.4.rbi} +0 -0
  64. /data/sorbet/rbi/gems/{net-imap@0.5.1.rbi → net-imap@0.5.2.rbi} +0 -0
  65. /data/sorbet/rbi/gems/{rails@8.0.0.rbi → rails@8.0.1.rbi} +0 -0
  66. /data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +0 -0
  67. /data/sorbet/rbi/gems/{rubocop-performance@1.21.1.rbi → rubocop-performance@1.23.0.rbi} +0 -0
  68. /data/sorbet/rbi/gems/{standard-performance@1.4.0.rbi → standard-performance@1.6.0.rbi} +0 -0
  69. /data/sorbet/rbi/gems/{useragent@0.16.10.rbi → useragent@0.16.11.rbi} +0 -0
@@ -1,395 +0,0 @@
1
- # typed: false
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `securerandom` gem.
5
- # Please instead update this file by running `bin/tapioca gem securerandom`.
6
-
7
-
8
- class Random::Base
9
- include ::Random::Formatter
10
- extend ::Random::Formatter
11
-
12
- def initialize(*_arg0); end
13
-
14
- def bytes(_arg0); end
15
- def rand(*_arg0); end
16
- def seed; end
17
- end
18
-
19
- # == \Random number formatter.
20
- #
21
- # Formats generated random numbers in many manners. When <tt>'random/formatter'</tt>
22
- # is required, several methods are added to empty core module <tt>Random::Formatter</tt>,
23
- # making them available as Random's instance and module methods.
24
- #
25
- # Standard library SecureRandom is also extended with the module, and the methods
26
- # described below are available as a module methods in it.
27
- #
28
- # === Examples
29
- #
30
- # Generate random hexadecimal strings:
31
- #
32
- # require 'random/formatter'
33
- #
34
- # prng = Random.new
35
- # prng.hex(10) #=> "52750b30ffbc7de3b362"
36
- # prng.hex(10) #=> "92b15d6c8dc4beb5f559"
37
- # prng.hex(13) #=> "39b290146bea6ce975c37cfc23"
38
- # # or just
39
- # Random.hex #=> "1aed0c631e41be7f77365415541052ee"
40
- #
41
- # Generate random base64 strings:
42
- #
43
- # prng.base64(10) #=> "EcmTPZwWRAozdA=="
44
- # prng.base64(10) #=> "KO1nIU+p9DKxGg=="
45
- # prng.base64(12) #=> "7kJSM/MzBJI+75j8"
46
- # Random.base64(4) #=> "bsQ3fQ=="
47
- #
48
- # Generate random binary strings:
49
- #
50
- # prng.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
51
- # prng.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"
52
- # Random.random_bytes(6) #=> "\xA1\xE6Lr\xC43"
53
- #
54
- # Generate alphanumeric strings:
55
- #
56
- # prng.alphanumeric(10) #=> "S8baxMJnPl"
57
- # prng.alphanumeric(10) #=> "aOxAg8BAJe"
58
- # Random.alphanumeric #=> "TmP9OsJHJLtaZYhP"
59
- #
60
- # Generate UUIDs:
61
- #
62
- # prng.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
63
- # prng.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
64
- # Random.uuid #=> "f14e0271-de96-45cc-8911-8910292a42cd"
65
- #
66
- # All methods are available in the standard library SecureRandom, too:
67
- #
68
- # SecureRandom.hex #=> "05b45376a30c67238eb93b16499e50cf"
69
- #
70
- # source://securerandom//lib/random/formatter.rb#55
71
- module Random::Formatter
72
- # Generate a random alphanumeric string.
73
- #
74
- # The argument _n_ specifies the length, in characters, of the alphanumeric
75
- # string to be generated.
76
- # The argument _chars_ specifies the character list which the result is
77
- # consist of.
78
- #
79
- # If _n_ is not specified or is nil, 16 is assumed.
80
- # It may be larger in the future.
81
- #
82
- # The result may contain A-Z, a-z and 0-9, unless _chars_ is specified.
83
- #
84
- # require 'random/formatter'
85
- #
86
- # Random.alphanumeric #=> "2BuBuLf3WfSKyQbR"
87
- # # or
88
- # prng = Random.new
89
- # prng.alphanumeric(10) #=> "i6K93NdqiH"
90
- #
91
- # Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952"
92
- # # or
93
- # prng = Random.new
94
- # prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."
95
- #
96
- # source://securerandom//lib/random/formatter.rb#368
97
- def alphanumeric(n = T.unsafe(nil), chars: T.unsafe(nil)); end
98
-
99
- # Generate a random base64 string.
100
- #
101
- # The argument _n_ specifies the length, in bytes, of the random number
102
- # to be generated. The length of the result string is about 4/3 of _n_.
103
- #
104
- # If _n_ is not specified or is nil, 16 is assumed.
105
- # It may be larger in the future.
106
- #
107
- # The result may contain A-Z, a-z, 0-9, "+", "/" and "=".
108
- #
109
- # require 'random/formatter'
110
- #
111
- # Random.base64 #=> "/2BuBuLf3+WfSKyQbRcc/A=="
112
- # # or
113
- # prng = Random.new
114
- # prng.base64 #=> "6BbW0pxO0YENxn38HMUbcQ=="
115
- #
116
- # See RFC 3548 for the definition of base64.
117
- #
118
- # source://securerandom//lib/random/formatter.rb#115
119
- def base64(n = T.unsafe(nil)); end
120
-
121
- # Generate a random hexadecimal string.
122
- #
123
- # The argument _n_ specifies the length, in bytes, of the random number to be generated.
124
- # The length of the resulting hexadecimal string is twice of _n_.
125
- #
126
- # If _n_ is not specified or is nil, 16 is assumed.
127
- # It may be larger in the future.
128
- #
129
- # The result may contain 0-9 and a-f.
130
- #
131
- # require 'random/formatter'
132
- #
133
- # Random.hex #=> "eb693ec8252cd630102fd0d0fb7c3485"
134
- # # or
135
- # prng = Random.new
136
- # prng.hex #=> "91dc3bfb4de5b11d029d376634589b61"
137
- #
138
- # source://securerandom//lib/random/formatter.rb#93
139
- def hex(n = T.unsafe(nil)); end
140
-
141
- # Generate a random binary string.
142
- #
143
- # The argument _n_ specifies the length of the result string.
144
- #
145
- # If _n_ is not specified or is nil, 16 is assumed.
146
- # It may be larger in future.
147
- #
148
- # The result may contain any byte: "\x00" - "\xff".
149
- #
150
- # require 'random/formatter'
151
- #
152
- # Random.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6"
153
- # # or
154
- # prng = Random.new
155
- # prng.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97"
156
- #
157
- # source://securerandom//lib/random/formatter.rb#72
158
- def random_bytes(n = T.unsafe(nil)); end
159
-
160
- # Generate a random URL-safe base64 string.
161
- #
162
- # The argument _n_ specifies the length, in bytes, of the random number
163
- # to be generated. The length of the result string is about 4/3 of _n_.
164
- #
165
- # If _n_ is not specified or is nil, 16 is assumed.
166
- # It may be larger in the future.
167
- #
168
- # The boolean argument _padding_ specifies the padding.
169
- # If it is false or nil, padding is not generated.
170
- # Otherwise padding is generated.
171
- # By default, padding is not generated because "=" may be used as a URL delimiter.
172
- #
173
- # The result may contain A-Z, a-z, 0-9, "-" and "_".
174
- # "=" is also used if _padding_ is true.
175
- #
176
- # require 'random/formatter'
177
- #
178
- # Random.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
179
- # # or
180
- # prng = Random.new
181
- # prng.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
182
- #
183
- # prng.urlsafe_base64(nil, true) #=> "i0XQ-7gglIsHGV2_BNPrdQ=="
184
- # prng.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="
185
- #
186
- # See RFC 3548 for the definition of URL-safe base64.
187
- #
188
- # source://securerandom//lib/random/formatter.rb#146
189
- def urlsafe_base64(n = T.unsafe(nil), padding = T.unsafe(nil)); end
190
-
191
- # Generate a random v4 UUID (Universally Unique IDentifier).
192
- #
193
- # require 'random/formatter'
194
- #
195
- # Random.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
196
- # Random.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
197
- # # or
198
- # prng = Random.new
199
- # prng.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
200
- #
201
- # The version 4 UUID is purely random (except the version).
202
- # It doesn't contain meaningful information such as MAC addresses, timestamps, etc.
203
- #
204
- # The result contains 122 random bits (15.25 random bytes).
205
- #
206
- # See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv4.
207
- #
208
- # source://securerandom//lib/random/formatter.rb#170
209
- def uuid; end
210
-
211
- # Generate a random v4 UUID (Universally Unique IDentifier).
212
- #
213
- # require 'random/formatter'
214
- #
215
- # Random.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
216
- # Random.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
217
- # # or
218
- # prng = Random.new
219
- # prng.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
220
- #
221
- # The version 4 UUID is purely random (except the version).
222
- # It doesn't contain meaningful information such as MAC addresses, timestamps, etc.
223
- #
224
- # The result contains 122 random bits (15.25 random bytes).
225
- #
226
- # See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv4.
227
- #
228
- # source://securerandom//lib/random/formatter.rb#170
229
- def uuid_v4; end
230
-
231
- # Generate a random v7 UUID (Universally Unique IDentifier).
232
- #
233
- # require 'random/formatter'
234
- #
235
- # Random.uuid_v7 # => "0188d4c3-1311-7f96-85c7-242a7aa58f1e"
236
- # Random.uuid_v7 # => "0188d4c3-16fe-744f-86af-38fa04c62bb5"
237
- # Random.uuid_v7 # => "0188d4c3-1af8-764f-b049-c204ce0afa23"
238
- # Random.uuid_v7 # => "0188d4c3-1e74-7085-b14f-ef6415dc6f31"
239
- # # |<--sorted-->| |<----- random ---->|
240
- #
241
- # # or
242
- # prng = Random.new
243
- # prng.uuid_v7 # => "0188ca51-5e72-7950-a11d-def7ff977c98"
244
- #
245
- # The version 7 UUID starts with the least significant 48 bits of a 64 bit
246
- # Unix timestamp (milliseconds since the epoch) and fills the remaining bits
247
- # with random data, excluding the version and variant bits.
248
- #
249
- # This allows version 7 UUIDs to be sorted by creation time. Time ordered
250
- # UUIDs can be used for better database index locality of newly inserted
251
- # records, which may have a significant performance benefit compared to random
252
- # data inserts.
253
- #
254
- # The result contains 74 random bits (9.25 random bytes).
255
- #
256
- # Note that this method cannot be made reproducible because its output
257
- # includes not only random bits but also timestamp.
258
- #
259
- # See RFC9562[https://www.rfc-editor.org/rfc/rfc9562] for details of UUIDv7.
260
- #
261
- # ==== Monotonicity
262
- #
263
- # UUIDv7 has millisecond precision by default, so multiple UUIDs created
264
- # within the same millisecond are not issued in monotonically increasing
265
- # order. To create UUIDs that are time-ordered with sub-millisecond
266
- # precision, up to 12 bits of additional timestamp may added with
267
- # +extra_timestamp_bits+. The extra timestamp precision comes at the expense
268
- # of random bits. Setting <tt>extra_timestamp_bits: 12</tt> provides ~244ns
269
- # of precision, but only 62 random bits (7.75 random bytes).
270
- #
271
- # prng = Random.new
272
- # Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 12) }
273
- # # =>
274
- # ["0188d4c7-13da-74f9-8b53-22a786ffdd5a",
275
- # "0188d4c7-13da-753b-83a5-7fb9b2afaeea",
276
- # "0188d4c7-13da-754a-88ea-ac0baeedd8db",
277
- # "0188d4c7-13da-7557-83e1-7cad9cda0d8d"]
278
- # # |<--- sorted --->| |<-- random --->|
279
- #
280
- # Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 8) }
281
- # # =>
282
- # ["0188d4c7-3333-7a95-850a-de6edb858f7e",
283
- # "0188d4c7-3333-7ae8-842e-bc3a8b7d0cf9", # <- out of order
284
- # "0188d4c7-3333-7ae2-995a-9f135dc44ead", # <- out of order
285
- # "0188d4c7-3333-7af9-87c3-8f612edac82e"]
286
- # # |<--- sorted -->||<---- random --->|
287
- #
288
- # Any rollbacks of the system clock will break monotonicity. UUIDv7 is based
289
- # on UTC, which excludes leap seconds and can rollback the clock. To avoid
290
- # this, the system clock can synchronize with an NTP server configured to use
291
- # a "leap smear" approach. NTP or PTP will also be needed to synchronize
292
- # across distributed nodes.
293
- #
294
- # Counters and other mechanisms for stronger guarantees of monotonicity are
295
- # not implemented. Applications with stricter requirements should follow
296
- # {Section 6.2}[https://www.rfc-editor.org/rfc/rfc9562.html#name-monotonicity-and-counters]
297
- # of the specification.
298
- #
299
- # source://securerandom//lib/random/formatter.rb#247
300
- def uuid_v7(extra_timestamp_bits: T.unsafe(nil)); end
301
-
302
- private
303
-
304
- # Generate a string that randomly draws from a
305
- # source array of characters.
306
- #
307
- # The argument _source_ specifies the array of characters from which
308
- # to generate the string.
309
- # The argument _n_ specifies the length, in characters, of the string to be
310
- # generated.
311
- #
312
- # The result may contain whatever characters are in the source array.
313
- #
314
- # require 'random/formatter'
315
- #
316
- # prng.choose([*'l'..'r'], 16) #=> "lmrqpoonmmlqlron"
317
- # prng.choose([*'0'..'9'], 5) #=> "27309"
318
- #
319
- # source://securerandom//lib/random/formatter.rb#313
320
- def choose(source, n); end
321
-
322
- # Internal interface to Random; Generate random data _n_ bytes.
323
- #
324
- # source://securerandom//lib/random/formatter.rb#295
325
- def gen_random(n); end
326
- end
327
-
328
- # == Secure random number generator interface.
329
- #
330
- # This library is an interface to secure random number generators which are
331
- # suitable for generating session keys in HTTP cookies, etc.
332
- #
333
- # You can use this library in your application by requiring it:
334
- #
335
- # require 'securerandom'
336
- #
337
- # It supports the following secure random number generators:
338
- #
339
- # * openssl
340
- # * /dev/urandom
341
- # * Win32
342
- #
343
- # SecureRandom is extended by the Random::Formatter module which
344
- # defines the following methods:
345
- #
346
- # * alphanumeric
347
- # * base64
348
- # * choose
349
- # * gen_random
350
- # * hex
351
- # * rand
352
- # * random_bytes
353
- # * random_number
354
- # * urlsafe_base64
355
- # * uuid
356
- #
357
- # These methods are usable as class methods of SecureRandom such as
358
- # +SecureRandom.hex+.
359
- #
360
- # If a secure random number generator is not available,
361
- # +NotImplementedError+ is raised.
362
- #
363
- # source://securerandom//lib/securerandom.rb#41
364
- module SecureRandom
365
- extend ::Random::Formatter
366
-
367
- class << self
368
- # Returns a random binary string containing +size+ bytes.
369
- #
370
- # See Random.bytes
371
- #
372
- # source://securerandom//lib/securerandom.rb#50
373
- def bytes(n); end
374
-
375
- # source://securerandom//lib/securerandom.rb#64
376
- def gen_random(n); end
377
-
378
- private
379
-
380
- # Implementation using OpenSSL
381
- #
382
- # source://securerandom//lib/securerandom.rb#59
383
- def gen_random_openssl(n); end
384
-
385
- # Implementation using system random device
386
- #
387
- # source://securerandom//lib/securerandom.rb#64
388
- def gen_random_urandom(n); end
389
- end
390
- end
391
-
392
- # The version
393
- #
394
- # source://securerandom//lib/securerandom.rb#44
395
- SecureRandom::VERSION = T.let(T.unsafe(nil), String)
@@ -1,66 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `unicode-display_width` gem.
5
- # Please instead update this file by running `bin/tapioca gem unicode-display_width`.
6
-
7
-
8
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#3
9
- module Unicode; end
10
-
11
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#4
12
- class Unicode::DisplayWidth
13
- # @return [DisplayWidth] a new instance of DisplayWidth
14
- #
15
- # source://unicode-display_width//lib/unicode/display_width.rb#104
16
- def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
17
-
18
- # source://unicode-display_width//lib/unicode/display_width.rb#110
19
- def get_config(**kwargs); end
20
-
21
- # source://unicode-display_width//lib/unicode/display_width.rb#118
22
- def of(string, **kwargs); end
23
-
24
- class << self
25
- # source://unicode-display_width//lib/unicode/display_width/index.rb#14
26
- def decompress_index(index, level); end
27
-
28
- # source://unicode-display_width//lib/unicode/display_width.rb#86
29
- def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end
30
-
31
- # source://unicode-display_width//lib/unicode/display_width.rb#12
32
- def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end
33
-
34
- # Same as .width_no_overwrite - but with applying overwrites for each char
35
- #
36
- # source://unicode-display_width//lib/unicode/display_width.rb#57
37
- def width_all_features(string, ambiguous, overwrite, options); end
38
-
39
- # source://unicode-display_width//lib/unicode/display_width.rb#30
40
- def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end
41
- end
42
- end
43
-
44
- # source://unicode-display_width//lib/unicode/display_width.rb#9
45
- Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
46
-
47
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#7
48
- Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
49
-
50
- # source://unicode-display_width//lib/unicode/display_width.rb#10
51
- Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array)
52
-
53
- # source://unicode-display_width//lib/unicode/display_width/index.rb#11
54
- Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array)
55
-
56
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#8
57
- Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
58
-
59
- # source://unicode-display_width//lib/unicode/display_width.rb#8
60
- Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
61
-
62
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#6
63
- Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
64
-
65
- # source://unicode-display_width//lib/unicode/display_width/constants.rb#5
66
- Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
File without changes