decentworks-date-support 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 (142) hide show
  1. checksums.yaml +7 -0
  2. data/.gem_rbs_collection/actionpack/7.2/.rbs_meta.yaml +9 -0
  3. data/.gem_rbs_collection/actionpack/7.2/actioncontroller-7.2.rbs +14 -0
  4. data/.gem_rbs_collection/actionpack/7.2/actioncontroller.rbs +290 -0
  5. data/.gem_rbs_collection/actionpack/7.2/actiondispatch.rbs +349 -0
  6. data/.gem_rbs_collection/actionpack/7.2/actionpack-generated.rbs +11497 -0
  7. data/.gem_rbs_collection/actionpack/7.2/patch.rbs +77 -0
  8. data/.gem_rbs_collection/actionview/6.0/.rbs_meta.yaml +9 -0
  9. data/.gem_rbs_collection/actionview/6.0/actionview-generated.rbs +8976 -0
  10. data/.gem_rbs_collection/actionview/6.0/actionview.rbs +1940 -0
  11. data/.gem_rbs_collection/actionview/6.0/patch.rbs +57 -0
  12. data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
  13. data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +381 -0
  14. data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +11633 -0
  15. data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +724 -0
  16. data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +15 -0
  17. data/.gem_rbs_collection/activesupport/7.0/patch.rbs +55 -0
  18. data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
  19. data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
  20. data/.gem_rbs_collection/cgi/0.5/.rbs_meta.yaml +9 -0
  21. data/.gem_rbs_collection/cgi/0.5/core.rbs +925 -0
  22. data/.gem_rbs_collection/cgi/0.5/manifest.yaml +3 -0
  23. data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
  24. data/.gem_rbs_collection/concurrent-ruby/1.1/array.rbs +4 -0
  25. data/.gem_rbs_collection/concurrent-ruby/1.1/atomic_reference.rbs +16 -0
  26. data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +96 -0
  27. data/.gem_rbs_collection/concurrent-ruby/1.1/hash.rbs +4 -0
  28. data/.gem_rbs_collection/concurrent-ruby/1.1/map.rbs +68 -0
  29. data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
  30. data/.gem_rbs_collection/concurrent-ruby/1.1/set.rbs +4 -0
  31. data/.gem_rbs_collection/concurrent-ruby/1.1/timer_task.rbs +47 -0
  32. data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
  33. data/.gem_rbs_collection/connection_pool/2.4/.rbs_meta.yaml +9 -0
  34. data/.gem_rbs_collection/connection_pool/2.4/connection_pool.rbs +34 -0
  35. data/.gem_rbs_collection/connection_pool/2.4/manifest.yaml +2 -0
  36. data/.gem_rbs_collection/diff-lcs/1.5/.rbs_meta.yaml +9 -0
  37. data/.gem_rbs_collection/diff-lcs/1.5/diff-lcs.rbs +11 -0
  38. data/.gem_rbs_collection/faker/3.4.2/.rbs_meta.yaml +9 -0
  39. data/.gem_rbs_collection/faker/3.4.2/faker-2.23.rbs +90 -0
  40. data/.gem_rbs_collection/faker/3.4.2/faker.rbs +18 -0
  41. data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
  42. data/.gem_rbs_collection/i18n/1.10/backend.rbs +274 -0
  43. data/.gem_rbs_collection/i18n/1.10/i18n.rbs +116 -0
  44. data/.gem_rbs_collection/lint_roller/1.1/.rbs_meta.yaml +9 -0
  45. data/.gem_rbs_collection/lint_roller/1.1/lint_roller.rbs +48 -0
  46. data/.gem_rbs_collection/minitest/5.25/.rbs_meta.yaml +9 -0
  47. data/.gem_rbs_collection/minitest/5.25/minitest/abstract_reporter.rbs +52 -0
  48. data/.gem_rbs_collection/minitest/5.25/minitest/assertion.rbs +17 -0
  49. data/.gem_rbs_collection/minitest/5.25/minitest/assertions.rbs +590 -0
  50. data/.gem_rbs_collection/minitest/5.25/minitest/backtrace_filter.rbs +23 -0
  51. data/.gem_rbs_collection/minitest/5.25/minitest/bench_spec.rbs +102 -0
  52. data/.gem_rbs_collection/minitest/5.25/minitest/benchmark.rbs +259 -0
  53. data/.gem_rbs_collection/minitest/5.25/minitest/composite_reporter.rbs +25 -0
  54. data/.gem_rbs_collection/minitest/5.25/minitest/compress.rbs +13 -0
  55. data/.gem_rbs_collection/minitest/5.25/minitest/error_on_warning.rbs +3 -0
  56. data/.gem_rbs_collection/minitest/5.25/minitest/expectation.rbs +2 -0
  57. data/.gem_rbs_collection/minitest/5.25/minitest/expectations.rbs +21 -0
  58. data/.gem_rbs_collection/minitest/5.25/minitest/guard.rbs +64 -0
  59. data/.gem_rbs_collection/minitest/5.25/minitest/mock.rbs +64 -0
  60. data/.gem_rbs_collection/minitest/5.25/minitest/parallel/executor.rbs +46 -0
  61. data/.gem_rbs_collection/minitest/5.25/minitest/parallel/test/class_methods.rbs +5 -0
  62. data/.gem_rbs_collection/minitest/5.25/minitest/parallel/test.rbs +3 -0
  63. data/.gem_rbs_collection/minitest/5.25/minitest/parallel.rbs +2 -0
  64. data/.gem_rbs_collection/minitest/5.25/minitest/pride_io.rbs +62 -0
  65. data/.gem_rbs_collection/minitest/5.25/minitest/pride_lol.rbs +19 -0
  66. data/.gem_rbs_collection/minitest/5.25/minitest/progress_reporter.rbs +11 -0
  67. data/.gem_rbs_collection/minitest/5.25/minitest/reportable.rbs +53 -0
  68. data/.gem_rbs_collection/minitest/5.25/minitest/reporter.rbs +5 -0
  69. data/.gem_rbs_collection/minitest/5.25/minitest/result.rbs +28 -0
  70. data/.gem_rbs_collection/minitest/5.25/minitest/runnable.rbs +163 -0
  71. data/.gem_rbs_collection/minitest/5.25/minitest/skip.rbs +6 -0
  72. data/.gem_rbs_collection/minitest/5.25/minitest/spec/dsl/instance_methods.rbs +48 -0
  73. data/.gem_rbs_collection/minitest/5.25/minitest/spec/dsl.rbs +129 -0
  74. data/.gem_rbs_collection/minitest/5.25/minitest/spec.rbs +11 -0
  75. data/.gem_rbs_collection/minitest/5.25/minitest/statistics_reporter.rbs +81 -0
  76. data/.gem_rbs_collection/minitest/5.25/minitest/summary_reporter.rbs +18 -0
  77. data/.gem_rbs_collection/minitest/5.25/minitest/test/lifecycle_hooks.rbs +92 -0
  78. data/.gem_rbs_collection/minitest/5.25/minitest/test.rbs +69 -0
  79. data/.gem_rbs_collection/minitest/5.25/minitest/unexpected_error.rbs +12 -0
  80. data/.gem_rbs_collection/minitest/5.25/minitest/unexpected_warning.rbs +6 -0
  81. data/.gem_rbs_collection/minitest/5.25/minitest/unit/test_case.rbs +3 -0
  82. data/.gem_rbs_collection/minitest/5.25/minitest/unit.rbs +4 -0
  83. data/.gem_rbs_collection/minitest/5.25/minitest.rbs +115 -0
  84. data/.gem_rbs_collection/nokogiri/1.11/.rbs_meta.yaml +9 -0
  85. data/.gem_rbs_collection/nokogiri/1.11/nokogiri.rbs +2332 -0
  86. data/.gem_rbs_collection/nokogiri/1.11/patch.rbs +4 -0
  87. data/.gem_rbs_collection/parallel/1.20/.rbs_meta.yaml +9 -0
  88. data/.gem_rbs_collection/parallel/1.20/parallel.rbs +86 -0
  89. data/.gem_rbs_collection/parser/3.2/.rbs_meta.yaml +9 -0
  90. data/.gem_rbs_collection/parser/3.2/manifest.yaml +7 -0
  91. data/.gem_rbs_collection/parser/3.2/parser.rbs +194 -0
  92. data/.gem_rbs_collection/parser/3.2/polyfill.rbs +4 -0
  93. data/.gem_rbs_collection/rack/2.2/.rbs_meta.yaml +9 -0
  94. data/.gem_rbs_collection/rack/2.2/manifest.yaml +3 -0
  95. data/.gem_rbs_collection/rack/2.2/rack.rbs +1480 -0
  96. data/.gem_rbs_collection/rails-dom-testing/2.0/.rbs_meta.yaml +9 -0
  97. data/.gem_rbs_collection/rails-dom-testing/2.0/rails-dom-testing.rbs +51 -0
  98. data/.gem_rbs_collection/rails-html-sanitizer/1.6/.rbs_meta.yaml +9 -0
  99. data/.gem_rbs_collection/rails-html-sanitizer/1.6/rails-html-sanitizer.rbs +53 -0
  100. data/.gem_rbs_collection/railties/6.0/.rbs_meta.yaml +9 -0
  101. data/.gem_rbs_collection/railties/6.0/manifest.yaml +2 -0
  102. data/.gem_rbs_collection/railties/6.0/patch.rbs +17 -0
  103. data/.gem_rbs_collection/railties/6.0/railties-generated.rbs +4822 -0
  104. data/.gem_rbs_collection/railties/6.0/railties.rbs +44 -0
  105. data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
  106. data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
  107. data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
  108. data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
  109. data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
  110. data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
  111. data/.gem_rbs_collection/rake/13.0/rake.rbs +39 -0
  112. data/.gem_rbs_collection/regexp_parser/2.8/.rbs_meta.yaml +9 -0
  113. data/.gem_rbs_collection/regexp_parser/2.8/regexp_parser.rbs +17 -0
  114. data/.gem_rbs_collection/rubocop/1.57/.rbs_meta.yaml +9 -0
  115. data/.gem_rbs_collection/rubocop/1.57/rubocop.rbs +208 -0
  116. data/.gem_rbs_collection/rubocop-ast/1.46/.rbs_meta.yaml +9 -0
  117. data/.gem_rbs_collection/rubocop-ast/1.46/rubocop-ast.rbs +903 -0
  118. data/.gem_rbs_collection/thor/1.2/.rbs_meta.yaml +9 -0
  119. data/.gem_rbs_collection/thor/1.2/thor.rbs +62 -0
  120. data/.gem_rbs_collection/tzinfo/2.0/.rbs_meta.yaml +9 -0
  121. data/.gem_rbs_collection/tzinfo/2.0/manifest.yaml +7 -0
  122. data/.gem_rbs_collection/tzinfo/2.0/tzinfo.rbs +600 -0
  123. data/.rspec +3 -0
  124. data/.rubocop.yml +8 -0
  125. data/.ruby-version +1 -0
  126. data/CHANGELOG.md +5 -0
  127. data/CODE_OF_CONDUCT.md +132 -0
  128. data/LICENSE +21 -0
  129. data/LICENSE.txt +21 -0
  130. data/README.md +54 -0
  131. data/Rakefile +12 -0
  132. data/Steepfile +43 -0
  133. data/lib/decentworks/active_support/time_with_zone_support.rb +327 -0
  134. data/lib/decentworks/date/support/version.rb +9 -0
  135. data/lib/decentworks/date_support.rb +323 -0
  136. data/lib/decentworks_date_support.rb +4 -0
  137. data/rbs_collection.lock.yaml +288 -0
  138. data/rbs_collection.yaml +41 -0
  139. data/sig/decentworks/active_support/time_with_zone_support.rbs +109 -0
  140. data/sig/decentworks/date/support.rbs +8 -0
  141. data/sig/decentworks/date_support.rbs +107 -0
  142. metadata +197 -0
@@ -0,0 +1,90 @@
1
+ module Faker
2
+ class Base
3
+ def self.unique: () -> (UniqueGenerator & class)
4
+ end
5
+
6
+ class UniqueGenerator
7
+ def self.clear: () -> {}
8
+ def clear: () -> {}
9
+ def exclude: (Symbol, Array[String]|Array[Hash[Symbol, untyped]], Array[String]) -> void
10
+ end
11
+
12
+ class Config
13
+ def self.random=: (Random | nil) -> Random
14
+ def self.locale=: (Symbol | String) -> (Symbol | String)
15
+ end
16
+
17
+ class Alphanumeric < Base
18
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/alphanumeric.rb#L4
19
+ def self.alpha: (?number: Integer) -> String
20
+ def self.alphanumeric: (?number: Integer, ?min_alpha: Integer, ?min_numeric: Integer) -> String
21
+ end
22
+
23
+ class Address < Base
24
+ def self.street_name: () -> String
25
+ def self.secondary_address: () -> String
26
+ def self.building_number: () -> String
27
+ def self.community: () -> String
28
+ def self.mail_box: () -> String
29
+ end
30
+
31
+ class Book < Base
32
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/books/book.rb#L4
33
+ def self.title: () -> String
34
+ end
35
+
36
+ class Educator < Base
37
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/educator.rb#L4
38
+ def self.degree: -> String
39
+ def self.subject: -> String
40
+ end
41
+
42
+ class Internet < Base
43
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/internet.rb#L4
44
+ def self.email: (?name: String?, ?separators: Array[String]?, ?domain: String?) -> String
45
+ def self.private_ip_v4_address: -> String
46
+ def self.public_ip_v4_address: -> String
47
+ def self.url: (?host: String, ?path: String, ?scheme: String) -> String
48
+ def self.uuid: -> String
49
+ def self.username: (?specifier: Integer | Range[Integer] | String | nil, ?separators: Array[String]) -> String
50
+ end
51
+
52
+ class Job < Base
53
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/job.rb#L4
54
+ def self.title: -> String
55
+ end
56
+
57
+ class Company < Base
58
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/company.rb#L4
59
+ def self.name: () -> String
60
+ def self.catch_phrase: () -> String
61
+ def self.bs: () -> String
62
+ end
63
+
64
+ class Lorem < Base
65
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/lorem.rb#L5
66
+ def self.character: -> String
67
+ end
68
+
69
+ class Marketing < Base
70
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/marketing.rb#L4
71
+ def self.buzzwords: -> String
72
+ end
73
+
74
+ class Name < Base
75
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/name.rb#L4
76
+ def self.name: () -> String
77
+ def self.first_name: -> String
78
+ def self.last_name: -> String
79
+ end
80
+
81
+ class PhoneNumber < Base
82
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/phone_number.rb#L4
83
+ def self.cell_phone: -> String
84
+ end
85
+
86
+ class University < Base
87
+ # https://github.com/faker-ruby/faker/blob/v2.23.0/lib/faker/default/university.rb#L4
88
+ def self.name: -> String
89
+ end
90
+ end
@@ -0,0 +1,18 @@
1
+ module Faker
2
+ class Lorem < Faker::Base
3
+ type exclude_words_filter = String | Array[String] | nil
4
+ # https://github.com/faker-ruby/faker/blob/v3.4.2/lib/faker/default/lorem.rb#L5
5
+ def self.word: (?exclude_words: exclude_words_filter) -> String
6
+ def self.words: (?number: Integer, ?supplemental: bool, ?exclude_words: exclude_words_filter) -> Array[String]
7
+ def self.sentence: (?word_count: Integer, ?supplemental: bool, ?random_words_to_add: Integer, ?exclude_words: exclude_words_filter) -> String
8
+ def self.paragraph: (?sentence_count: Integer, ?supplemental: bool, ?random_sentences_to_add: Integer, ?exclude_words: exclude_words_filter) -> String
9
+ end
10
+ class Theater < Faker::Base
11
+ # https://github.com/faker-ruby/faker/blob/main/lib/faker/default/theater.rb#L5
12
+ def self.play: -> String
13
+ end
14
+ class Vehicle < Faker::Base
15
+ # https://github.com/faker-ruby/faker/blob/v3.4.2/lib/faker/default/vehicle.rb#L54
16
+ def self.manufacturer: -> String
17
+ end
18
+ end
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: i18n
3
+ version: '1.10'
4
+ source:
5
+ type: git
6
+ name: ruby/gem_rbs_collection
7
+ revision: 82762423fc5694b82888ea89a972847cf19838c2
8
+ remote: https://github.com/ruby/gem_rbs_collection.git
9
+ repo_dir: gems
@@ -0,0 +1,274 @@
1
+ module I18n
2
+ def self.cache_store: () -> untyped
3
+ def self.cache_store=: (untyped store) -> untyped
4
+ def self.cache_namespace: () -> untyped
5
+ def self.cache_namespace=: (untyped namespace) -> untyped
6
+ def self.cache_key_digest: () -> untyped
7
+ def self.cache_key_digest=: (untyped key_digest) -> untyped
8
+ def self.perform_caching?: () -> bool
9
+
10
+ def self.fallbacks: () -> untyped
11
+ def self.fallbacks=: (untyped fallbacks) -> untyped
12
+
13
+ class JSON
14
+ def self.encode: (untyped value) -> untyped
15
+ def self.decode: (untyped value) -> untyped
16
+ end
17
+
18
+ module Backend
19
+ module Base
20
+ include I18n::Backend::Transliterator
21
+
22
+ def load_translations: (*untyped filenames) { (untyped, untyped) -> untyped } -> untyped
23
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
24
+ def translate: (untyped locale, untyped key, ?untyped options) -> (nil | untyped)
25
+ def exists?: (untyped locale, untyped key, ?untyped options) -> untyped
26
+ def localize: (untyped locale, untyped object, ?::Symbol format, ?untyped options) -> untyped
27
+ def available_locales: () -> untyped
28
+ def reload!: () -> untyped
29
+ def eager_load!: () -> true
30
+ def eager_loaded?: () -> bool
31
+ def lookup: (untyped locale, untyped key, ?untyped scope, ?untyped options) -> untyped
32
+ def subtrees?: () -> true
33
+ def default: (untyped locale, untyped object, untyped subject, ?untyped options) -> untyped
34
+ def resolve: (untyped locale, untyped object, untyped subject, ?untyped options) -> untyped
35
+ def pluralize: (untyped locale, untyped entry, untyped count) -> untyped
36
+ def interpolate: (untyped locale, untyped subject, ?untyped values) -> untyped
37
+ def deep_interpolate: (untyped locale, untyped data, ?untyped values) -> untyped
38
+ def load_file: (String filename) -> Hash[untyped, untyped]
39
+ def load_rb: (String filename) -> [untyped, false]
40
+ def load_yml: (String filename) -> [untyped, bool]
41
+ def load_json: (String filename) -> [untyped, bool]
42
+ def translate_localization_format: (untyped locale, untyped object, untyped format, untyped options) -> untyped
43
+ def pluralization_key: (untyped entry, untyped count) -> Symbol
44
+ end
45
+
46
+ module Cache
47
+ def translate: (untyped locale, untyped key, ?untyped options) -> untyped
48
+ def fetch: (String cache_key) { () -> untyped } -> untyped
49
+ def _fetch: (String cache_key) { () -> untyped } -> untyped
50
+ def cache_key: (untyped locale, untyped key, untyped options) -> String
51
+
52
+ private
53
+
54
+ def digest_item: (untyped key) -> untyped
55
+ end
56
+
57
+ module CacheFile
58
+ attr_accessor path_roots: Array[untyped]
59
+ def load_file: (String filename) -> untyped
60
+ def normalized_path: (String file) -> String
61
+ end
62
+
63
+ module Cascade
64
+ def lookup: (untyped locale, untyped key, ?Array[untyped] scope, ?untyped options) -> untyped
65
+ end
66
+
67
+ class Chain
68
+ include Implementation
69
+
70
+ module Implementation
71
+ attr_accessor backends: untyped
72
+ def initialize: (*untyped backends) -> void
73
+ def initialized?: () -> bool
74
+ def reload!: () -> untyped
75
+ def eager_load!: () -> untyped
76
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
77
+ def available_locales: () -> untyped
78
+ def translate: (untyped locale, untyped key, ?untyped default_options) -> untyped
79
+ def exists?: (untyped locale, untyped key, ?untyped options) -> untyped
80
+ def localize: (untyped locale, untyped object, ?untyped format, ?untyped options) -> untyped
81
+ def init_translations: () -> untyped
82
+ def translations: () -> Hash[untyped, untyped]
83
+ def namespace_lookup?: (untyped result, untyped options) -> bool
84
+
85
+ private
86
+
87
+ def _deep_merge: (Hash[untyped, untyped] hash, Hash[untyped, untyped] other_hash) -> Hash[untyped, untyped]
88
+ end
89
+ end
90
+
91
+ module Fallbacks
92
+ def translate: (untyped locale, untyped key, ?untyped options) -> untyped
93
+ def resolve_entry: (untyped locale, untyped object, untyped subject, ?untyped options) -> untyped
94
+ def extract_non_symbol_default!: (untyped options) -> untyped
95
+ def exists?: (untyped locale, untyped key, ?untyped options) -> bool
96
+
97
+ private
98
+
99
+ def on_fallback: (untyped _original_locale, untyped _fallback_locale, untyped _key, untyped _optoins) -> untyped
100
+ end
101
+
102
+ module Flatten
103
+ SEPARATOR_ESCAPE_CHAR: String
104
+ FLATTEN_SEPARATOR: String
105
+
106
+ def self.normalize_flat_keys: (untyped locale, untyped key, untyped scope, untyped separator) -> String
107
+ def self.escape_default_separator: (untyped key) -> String
108
+ def normalize_flat_keys: (untyped locale, untyped key, untyped scope, untyped separator) -> String
109
+ def links: () -> untyped
110
+ def flatten_keys: (Hash[untyped, untyped] hash, untyped escape, ?untyped? prev_key) { (untyped, untyped) -> void } -> untyped
111
+ def flatten_translations: (untyped locale, untyped data, untyped escape, untyped subtree) -> Hash[untyped, untyped]
112
+ def store_link: (untyped locale, String key, untyped link) -> String
113
+ def resolve_link: (untyped locale, untyped key) -> String
114
+ def find_link: (untyped locale, String key) -> [untyped, untyped]?
115
+ def escape_default_separator: (untyped key) -> untyped
116
+ end
117
+
118
+ module Gettext
119
+ def load_po: (String filename) -> [Hash[Symbol, untyped], false]
120
+ def parse: (String filename) -> untyped
121
+ def normalize: (Symbol locale, untyped data) -> untyped
122
+ def normalize_pluralization: (Symbol locale, String key, untyped value) -> [String, Hash[untyped, untyped]]
123
+
124
+ class PoData < Hash[untyped, untyped]
125
+ def set_comment: (untyped msgid_or_sym, untyped comment) -> void
126
+ end
127
+ end
128
+
129
+ module InterpolationCompiler
130
+ def interpolate: (untyped locale, untyped string, untyped values) -> untyped
131
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
132
+ def compile_all_strings_in: (untyped data) -> untyped
133
+
134
+ module Compiler
135
+ TOKENIZER: Regexp
136
+ INTERPOLATION_SYNTAX_PATTERN: Regexp
137
+ extend Compiler
138
+
139
+ def compile_if_an_interpolation: (untyped string) -> untyped
140
+ def interpolated_str?: (untyped str) -> untyped
141
+ def tokenize: (String str) -> Array[String]
142
+ def compiled_interpolation_body: (String str) -> String
143
+ def handle_interpolation_token: (untyped interpolation, untyped matchdata) -> String
144
+ def compile_interpolation_token: (untyped key) -> String
145
+ def interpolate_or_raise_missing: (untyped key) -> String
146
+ def interpolate_key: (untyped key) -> String
147
+ def direct_key: (untyped key) -> String
148
+ def nil_key: (untyped key) -> String
149
+ def missing_key: (untyped key) -> String
150
+ def reserved_key: (untyped key) -> String
151
+ def escape_plain_str: (String str) -> String
152
+ def escape_key_sym: (untyped key) -> String
153
+ end
154
+ end
155
+
156
+ class KeyValue
157
+ include Implementation
158
+
159
+ module Implementation
160
+ attr_accessor store: untyped
161
+ def initialize: (untyped store, ?bool subtrees) -> void
162
+ def initialized?: () -> bool
163
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
164
+ def available_locales: () -> Array[Symbol]
165
+ def translations: () -> Hash[untyped, untyped]
166
+ def init_translations: () -> void
167
+ def subtrees?: () -> bool
168
+ def lookup: (untyped locale, untyped key, ?Array[untyped] scope, ?untyped options) -> untyped
169
+ def pluralize: (untyped locale, untyped entry, untyped count) -> untyped
170
+ end
171
+
172
+ class SubtreeProxy
173
+ def initialize: (untyped master_key, untyped store) -> void
174
+ def has_key?: (untyped key) -> bool
175
+ def []: (untyped key) -> untyped
176
+ def is_a?: (untyped klass) -> bool
177
+ alias kind_of? is_a?
178
+ def instance_of?: (untyped klass) -> bool
179
+ def nil?: () -> bool
180
+ def inspect: () -> String
181
+ end
182
+ end
183
+
184
+ module Metadata
185
+ def self.included: (untyped base) -> void
186
+ def translate: (untyped locale, untyped key, ?untyped options) -> untyped
187
+ def interpolate: (untyped locale, untyped entry, ?untyped values) -> untyped
188
+ def pluralize: (untyped locale, untyped entry, untyped count) -> untyped
189
+ def with_metadata: (Hash[Symbol, untyped] metadata) { () -> untyped } -> untyped
190
+ end
191
+
192
+ class Simple
193
+ include Implementation
194
+
195
+ module Implementation
196
+ def initialized?: () -> bool
197
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
198
+ def available_locales: () -> untyped
199
+ def reload!: () -> untyped
200
+ def eager_load!: () -> untyped
201
+ def translations: (?do_init: bool) -> untyped
202
+ def init_translations: () -> true
203
+ def lookup: (untyped locale, untyped key, ?Array[untyped] scope, ?untyped options) -> untyped
204
+ end
205
+ end
206
+
207
+ module Transliterator
208
+ DEFAULT_REPLACEMENT_CHAR: String
209
+
210
+ def transliterate: (untyped locale, untyped string, ?untyped replacement) -> untyped
211
+ def self.get: (?untyped rule) -> (HashTransliterator | ProcTransliterator)
212
+
213
+ class ProcTransliterator
214
+ def initialize: (untyped rule) -> void
215
+ def transliterate: (untyped string, ?untyped replacement) -> untyped
216
+ end
217
+
218
+ class HashTransliterator
219
+ DEFAULT_APPROXIMATIONS: Hash[String, String]
220
+
221
+ def initialize: (?untyped rule) -> void
222
+ def transliterate: (String string, ?untyped replacement) -> String
223
+
224
+ private
225
+
226
+ def approximations: () -> Hash[untyped, untyped]
227
+ def add_default_approximations: () -> Hash[String, String]
228
+ def add: (Hash[untyped, untyped] hash) -> untyped
229
+ end
230
+ end
231
+
232
+ module Memoize
233
+ def available_locales: () -> untyped
234
+ def store_translations: (untyped locale, untyped data, ?untyped options) -> untyped
235
+ def reload!: () -> untyped
236
+ def eager_load!: () -> untyped
237
+ def lookup: (untyped locale, untyped key, ?untyped scope, ?untyped options) -> untyped
238
+ def memoized_lookup: () -> untyped
239
+ def reset_memoizations!: (?untyped locale) -> untyped
240
+ end
241
+
242
+ class LazyLoadable
243
+ def initialize: (?lazy_load: bool) -> void
244
+ def initialized?: () -> bool
245
+ def reload!: () -> untyped
246
+ def eager_load!: () -> untyped
247
+ def available_locales: () -> untyped
248
+ def lookup: (untyped locale, untyped key, ?Array[untyped] scope, ?untyped options) -> untyped
249
+ def init_translations: () -> void
250
+ def initialized_locales: () -> Hash[untyped, untyped]
251
+
252
+ private
253
+
254
+ def lazy_load?: () -> bool
255
+ def load_translations_and_collect_file_errors: (untyped files) -> Array[untyped]
256
+ def filenames_for_current_locale: () -> untyped
257
+ def assert_file_named_correctly!: (untyped file, untyped translations) -> void
258
+
259
+ class FilenameIncorrect < StandardError
260
+ def initialize: (untyped file, Symbol? expected_locale, untyped unexpected_locales) -> void
261
+ end
262
+ end
263
+
264
+ class LocaleExtractor
265
+ def self.locale_from_path: (String path) -> Symbol?
266
+ end
267
+
268
+ module Pluralization
269
+ def pluralize: (untyped locale, untyped entry, untyped count) -> untyped
270
+ def pluralizers: () -> Hash[untyped, untyped]
271
+ def pluralizer: (untyped locale) -> untyped
272
+ end
273
+ end
274
+ end
@@ -0,0 +1,116 @@
1
+ module I18n
2
+ extend Base
3
+
4
+ RESERVED_KEYS: Array[Symbol]
5
+ DEFAULT_INTERPOLATION_PATTERNS: [Regexp]
6
+ INTERPOLATION_PATTERN: Regexp
7
+ VERSION: String
8
+
9
+ module Base
10
+ def config: () -> I18n::Config
11
+ def config=: (I18n::Config value) -> I18n::Config
12
+
13
+ def locale: () -> Symbol
14
+ def locale=: (untyped value) -> untyped
15
+ def backend: () -> untyped
16
+ def backend=: (untyped value) -> untyped
17
+ def default_locale: () -> Symbol
18
+ def default_locale=: (untyped value) -> untyped
19
+ def available_locales: () -> Array[String | Symbol]
20
+ def available_locales=: (untyped value) -> untyped
21
+ def default_separator: () -> String
22
+ def default_separator=: (String value) -> String
23
+ def exception_handler: () -> untyped
24
+ def exception_handler=: (untyped value) -> untyped
25
+ def load_path: () -> Array[untyped]
26
+ def load_path=: (untyped value) -> untyped
27
+ def enforce_available_locales: () -> untyped
28
+ def enforce_available_locales=: (untyped value) -> untyped
29
+
30
+ def reload!: () -> void
31
+ def eager_load!: () -> void
32
+ def translate: (String | Symbol | Array[untyped] key, ?throw: bool throw, ?raise: bool raise, ?locale: untyped? locale, **untyped options) -> String
33
+ alias t translate
34
+ def translate!: (untyped key, **untyped options) -> String
35
+ alias t! translate!
36
+ def exists?: (untyped key, ?untyped? _locale, ?locale: untyped locale, **untyped options) -> bool
37
+ def transliterate: (untyped key, ?throw: bool, ?raise: bool, ?locale: untyped?, ?replacement: untyped?, **untyped) -> untyped
38
+ def localize: (untyped object, ?locale: untyped, ?format: untyped, **untyped) -> untyped
39
+ alias l localize
40
+ def with_locale: [T] (?untyped? tmp_locale) { () -> T } -> T
41
+ def normalize_keys: (untyped locale, untyped key, untyped scope, ?untyped separator) -> Array[Symbol]
42
+ def locale_available?: (Symbol | String locale) -> bool
43
+ def enforce_available_locales!: (untyped locale) -> nil
44
+ def available_locales_initialized?: () -> bool
45
+ end
46
+
47
+ class Config
48
+ def locale: () -> Symbol
49
+ def locale=: (untyped locale) -> untyped
50
+ def backend: () -> untyped
51
+ def backend=: (untyped backend) -> untyped
52
+ def default_locale: () -> Symbol
53
+ def default_locale=: (untyped locale) -> untyped
54
+ def available_locales: () -> Array[String | Symbol]
55
+ def available_locales_set: () -> untyped
56
+ def available_locales=: (untyped locales) -> void
57
+ def available_locales_initialized?: () -> bool
58
+ def clear_available_locales_set: () -> void
59
+ def default_separator: () -> String
60
+ def default_separator=: (String separator) -> String
61
+ def exception_handler: () -> untyped
62
+ def exception_handler=: (untyped exception_handler) -> untyped
63
+ def missing_interpolation_argument_handler: () -> untyped
64
+ def missing_interpolation_argument_handler=: (untyped exception_handler) -> untyped
65
+ def load_path: () -> Array[untyped]
66
+ def load_path=: (untyped load_path) -> void
67
+ def enforce_available_locales: () -> untyped
68
+ def enforce_available_locales=: (untyped enforce_available_locales) -> untyped
69
+ def interpolation_patterns: () -> untyped
70
+ def interpolation_patterns=: (untyped interpolation_patterns) -> untyped
71
+ end
72
+
73
+ module Utils
74
+ def self.except: (Hash[untyped, untyped] hash, *untyped keys) -> Hash[untyped, untyped]
75
+ def self.deep_merge: (Hash[untyped, untyped] hash, Hash[untyped, untyped] other_hash) -> Hash[untyped, untyped]
76
+ def self.deep_merge!: (untyped hash, untyped other_hash) -> Hash[untyped, untyped]
77
+ def self.deep_symbolize_keys: (Hash[untyped, untyped] hash) -> Hash[Symbol, untyped]
78
+ def self.deep_symbolize_keys_in_object: (untyped value) -> untyped
79
+ end
80
+
81
+ class ArgumentError < ::ArgumentError
82
+ end
83
+
84
+ class Disabled < ArgumentError
85
+ end
86
+
87
+ class InvalidLocale < ArgumentError
88
+ end
89
+
90
+ class InvalidLocaleData < ArgumentError
91
+ end
92
+
93
+ class MissingTranslation < ArgumentError
94
+ end
95
+
96
+ class MissingTranslationData < ArgumentError
97
+ end
98
+
99
+ class InvalidPluralizationData < ArgumentError
100
+ end
101
+
102
+ class MissingInterpolationArgument < ArgumentError
103
+ end
104
+
105
+ class ReservedInterpolationKey < ArgumentError
106
+ end
107
+
108
+ class UnknownFileType < ArgumentError
109
+ end
110
+
111
+ class UnsupportedMethod < ArgumentError
112
+ end
113
+
114
+ class InvalidFilenames < ArgumentError
115
+ end
116
+ end
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: lint_roller
3
+ version: '1.1'
4
+ source:
5
+ type: git
6
+ name: ruby/gem_rbs_collection
7
+ revision: 82762423fc5694b82888ea89a972847cf19838c2
8
+ remote: https://github.com/ruby/gem_rbs_collection.git
9
+ repo_dir: gems
@@ -0,0 +1,48 @@
1
+ module LintRoller
2
+ class About
3
+ attr_accessor name: String?
4
+ attr_accessor version: String?
5
+ attr_accessor homepage: String?
6
+ attr_accessor description: String?
7
+
8
+ def initialize: (?String name, ?String version, ?String homepage, ?String description) -> void
9
+ | (?name: String, ?version: String, ?homepage: String, ?description: String) -> void
10
+ end
11
+
12
+ class Context
13
+ attr_accessor runner: Symbol?
14
+ attr_accessor runner_version: String?
15
+ attr_accessor engine: Symbol?
16
+ attr_accessor engine_version: String?
17
+ attr_accessor rule_format: Symbol?
18
+ attr_accessor target_ruby_version: Gem::Version?
19
+
20
+ def initialize: (?Symbol runner, ?String runner_version, ?Symbol engine, ?String engine_version, ?Symbol rule_format, ?Gem::Version target_ruby_version) -> void
21
+ | (?runner: Symbol, ?runner_version: String, ?engine: Symbol, ?engine_version: String, ?rule_format: Symbol, ?target_ruby_version: Gem::Version) -> void
22
+ end
23
+
24
+ class Plugin
25
+ def initialize: (?Hash[String, untyped] config) -> void
26
+ def about: () -> About
27
+ def supported?: (Context context) -> bool
28
+ def rules: (Context context) -> Rules
29
+ end
30
+
31
+ class Rules
32
+ type t = :path | :object | :error
33
+
34
+ attr_accessor type: t?
35
+ attr_accessor config_format: Symbol | String | Pathname?
36
+ attr_accessor value: untyped
37
+ attr_accessor error: untyped
38
+
39
+ def initialize: (:path type, ?Symbol config_format, String | Pathname value) -> void
40
+ | (type: :path, ?config_format: Symbol, value: String | Pathname) -> void
41
+ | (:object type, ?config_format: Symbol, value: untyped) -> void
42
+ | (type: :object, ?config_format: Symbol, value: untyped) -> void
43
+ | (:error type, ?Symbol config_format, error: untyped) -> void
44
+ | (type: :error, ?config_format: Symbol, error: untyped) -> void
45
+ | (?t type, ?Symbol config_format, ?value: untyped, ?error: untyped) -> void
46
+ | (?type: t, ?config_format: Symbol, ?value: untyped, ?error: untyped) -> void
47
+ end
48
+ end
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: minitest
3
+ version: '5.25'
4
+ source:
5
+ type: git
6
+ name: ruby/gem_rbs_collection
7
+ revision: 82762423fc5694b82888ea89a972847cf19838c2
8
+ remote: https://github.com/ruby/gem_rbs_collection.git
9
+ repo_dir: gems
@@ -0,0 +1,52 @@
1
+ # <!-- rdoc-file=lib/minitest.rb -->
2
+ # Defines the API for Reporters. Subclass this and override whatever you want.
3
+ # Go nuts.
4
+ #
5
+ class Minitest::AbstractReporter
6
+ @mutex: untyped
7
+ def initialize: () -> void
8
+
9
+ # <!--
10
+ # rdoc-file=lib/minitest.rb
11
+ # - start()
12
+ # -->
13
+ # Starts reporting on the run.
14
+ #
15
+ def start: () -> nil
16
+
17
+ # <!--
18
+ # rdoc-file=lib/minitest.rb
19
+ # - prerecord(klass, name)
20
+ # -->
21
+ # About to start running a test. This allows a reporter to show that it is
22
+ # starting or that we are in the middle of a test run.
23
+ #
24
+ def prerecord: (untyped klass, untyped name) -> nil
25
+
26
+ # <!--
27
+ # rdoc-file=lib/minitest.rb
28
+ # - record(result)
29
+ # -->
30
+ # Output and record the result of the test. Call
31
+ # [result#result_code](rdoc-ref:Runnable#result_code) to get the result
32
+ # character string. Stores the result of the run if the run did not pass.
33
+ #
34
+ def record: (untyped result) -> nil
35
+
36
+ # <!--
37
+ # rdoc-file=lib/minitest.rb
38
+ # - report()
39
+ # -->
40
+ # Outputs the summary of the run.
41
+ #
42
+ def report: () -> nil
43
+
44
+ # <!--
45
+ # rdoc-file=lib/minitest.rb
46
+ # - passed?()
47
+ # -->
48
+ # Did this run pass?
49
+ #
50
+ def passed?: () -> true
51
+ def synchronize: () { (?) -> untyped } -> untyped
52
+ end
@@ -0,0 +1,17 @@
1
+ # <!-- rdoc-file=lib/minitest.rb -->
2
+ # Represents run failures.
3
+ #
4
+ class Minitest::Assertion < ::Exception
5
+ def error: () -> self
6
+
7
+ # <!--
8
+ # rdoc-file=lib/minitest.rb
9
+ # - location()
10
+ # -->
11
+ # Where was this run before an assertion was raised?
12
+ #
13
+ def location: () -> untyped
14
+ def result_code: () -> untyped
15
+ def result_label: () -> "Failure"
16
+ RE: Regexp
17
+ end