muina 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +25 -0
  3. data/README.md +0 -35
  4. data/lib/muina/maybe/none.rb +57 -0
  5. data/lib/muina/maybe/some.rb +61 -0
  6. data/lib/muina/maybe.rb +13 -0
  7. data/lib/muina/version.rb +1 -2
  8. data/lib/muina.rb +0 -32
  9. metadata +24 -228
  10. data/.github/workflows/main.yml +0 -16
  11. data/.gitignore +0 -5
  12. data/.mutant.yml +0 -38
  13. data/.rspec +0 -4
  14. data/.rubocop.yml +0 -181
  15. data/.ruby-version +0 -1
  16. data/.simplecov +0 -14
  17. data/CHANGELOG.md +0 -38
  18. data/Gemfile +0 -34
  19. data/Gemfile.lock +0 -265
  20. data/Guardfile +0 -24
  21. data/Rakefile +0 -13
  22. data/SECURITY.md +0 -14
  23. data/bin/bundle +0 -114
  24. data/bin/console +0 -15
  25. data/bin/flay +0 -29
  26. data/bin/flog +0 -29
  27. data/bin/guard +0 -29
  28. data/bin/irb +0 -29
  29. data/bin/lefthook +0 -29
  30. data/bin/mutant +0 -29
  31. data/bin/parlour +0 -29
  32. data/bin/rake +0 -29
  33. data/bin/rspec +0 -29
  34. data/bin/rubocop +0 -29
  35. data/bin/setup +0 -8
  36. data/bin/srb +0 -29
  37. data/bin/srb-rbi +0 -29
  38. data/bin/tapioca +0 -29
  39. data/exe/muina +0 -11
  40. data/lefthook.yml +0 -39
  41. data/lib/muina/action/params_factory.rb +0 -17
  42. data/lib/muina/action/step/command.rb +0 -33
  43. data/lib/muina/action/step/failure.rb +0 -18
  44. data/lib/muina/action/step/query.rb +0 -35
  45. data/lib/muina/action/step/result.rb +0 -56
  46. data/lib/muina/action/step.rb +0 -13
  47. data/lib/muina/action.rb +0 -73
  48. data/lib/muina/any.rb +0 -7
  49. data/lib/muina/classes.rb +0 -7
  50. data/lib/muina/deprecator.rb +0 -93
  51. data/lib/muina/entity.rb +0 -20
  52. data/lib/muina/module.rb +0 -6
  53. data/lib/muina/parameters.rb +0 -7
  54. data/lib/muina/params.rb +0 -19
  55. data/lib/muina/private_creation.rb +0 -12
  56. data/lib/muina/result/factory.rb +0 -37
  57. data/lib/muina/result/failure.rb +0 -31
  58. data/lib/muina/result/null.rb +0 -25
  59. data/lib/muina/result/success.rb +0 -31
  60. data/lib/muina/result.rb +0 -17
  61. data/lib/muina/service.rb +0 -25
  62. data/lib/muina/symbol_hash.rb +0 -7
  63. data/lib/muina/unit.rb +0 -10
  64. data/lib/muina/untyped_array.rb +0 -7
  65. data/lib/muina/untyped_hash.rb +0 -7
  66. data/lib/muina/value.rb +0 -24
  67. data/muina.gemspec +0 -35
  68. data/rbi/muina.rbi +0 -311
  69. data/sorbet/config +0 -2
  70. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
  71. data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
  72. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
  73. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  74. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
  75. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
  76. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
  77. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  78. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  79. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  80. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  81. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
  82. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  83. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
  84. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
  85. data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
  86. data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
  87. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  88. data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
  89. data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
  90. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  91. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
  92. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
  93. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
  94. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
  95. data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
  96. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  97. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
  98. data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
  99. data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
  100. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
  101. data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
  102. data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
  103. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
  104. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  105. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  106. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
  107. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
  108. data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
  109. data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
  110. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
  111. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
  112. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  113. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
  114. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
  115. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
  116. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
  117. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  118. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  119. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
  120. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
  121. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
  122. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
  123. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  124. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
  125. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  126. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
  127. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
  128. data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
  129. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
  130. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
  131. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  132. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  133. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
  134. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
  135. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
  136. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
  137. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
  138. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
  139. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
  140. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
  141. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  142. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
  143. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
  144. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
  145. data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
  146. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  147. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  148. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  149. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
  150. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
  151. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
  152. data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
  153. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
  154. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  155. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
  156. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
  157. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
  158. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
  159. data/sorbet/rbi/todo.rbi +0 -8
  160. data/sorbet/rbi/typed_params.rbi +0 -7
  161. data/sorbet/tapioca/require.rb +0 -16
@@ -1,173 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `zeitwerk` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module Kernel
8
- private
9
-
10
- def require(path); end
11
-
12
- class << self
13
- def require(path); end
14
- end
15
- end
16
-
17
- module Zeitwerk; end
18
- class Zeitwerk::Error < ::StandardError; end
19
-
20
- module Zeitwerk::ExplicitNamespace
21
- extend ::Zeitwerk::RealModName
22
-
23
- class << self
24
- def cpaths; end
25
- def mutex; end
26
- def register(cpath, loader); end
27
- def tracer; end
28
- def unregister(loader); end
29
-
30
- private
31
-
32
- def disable_tracer_if_unneeded; end
33
- def tracepoint_class_callback(event); end
34
- end
35
- end
36
-
37
- class Zeitwerk::GemInflector < ::Zeitwerk::Inflector
38
- def initialize(root_file); end
39
-
40
- def camelize(basename, abspath); end
41
- end
42
-
43
- class Zeitwerk::Inflector
44
- def camelize(basename, _abspath); end
45
- def inflect(inflections); end
46
-
47
- private
48
-
49
- def overrides; end
50
- end
51
-
52
- class Zeitwerk::Loader
53
- include ::Zeitwerk::RealModName
54
- include ::Zeitwerk::Loader::Callbacks
55
-
56
- def initialize; end
57
-
58
- def autoloaded_dirs; end
59
- def autoloads; end
60
- def collapse(*glob_patterns); end
61
- def collapse_dirs; end
62
- def collapse_glob_patterns; end
63
- def dirs; end
64
- def do_not_eager_load(*paths); end
65
- def eager_load; end
66
- def eager_load_exclusions; end
67
- def enable_reloading; end
68
- def ignore(*glob_patterns); end
69
- def ignored_glob_patterns; end
70
- def ignored_paths; end
71
- def inflector; end
72
- def inflector=(_arg0); end
73
- def lazy_subdirs; end
74
- def log!; end
75
- def logger; end
76
- def logger=(_arg0); end
77
- def manages?(dir); end
78
- def mutex; end
79
- def mutex2; end
80
- def on_load(cpath, &block); end
81
- def on_load_callbacks; end
82
- def preload(*paths); end
83
- def preloads; end
84
- def push_dir(path, namespace: T.unsafe(nil)); end
85
- def reload; end
86
- def reloading_enabled?; end
87
- def root_dirs; end
88
- def setup; end
89
- def tag; end
90
- def tag=(tag); end
91
- def to_unload; end
92
- def unload; end
93
- def unloadable_cpath?(cpath); end
94
- def unloadable_cpaths; end
95
-
96
- private
97
-
98
- def actual_root_dirs; end
99
- def autoload_file(parent, cname, file); end
100
- def autoload_for?(parent, cname); end
101
- def autoload_subdir(parent, cname, subdir); end
102
- def cdef?(parent, cname); end
103
- def cpath(parent, cname); end
104
- def dir?(path); end
105
- def do_preload; end
106
- def do_preload_abspath(abspath); end
107
- def do_preload_dir(dir); end
108
- def do_preload_file(file); end
109
- def expand_glob_patterns(glob_patterns); end
110
- def expand_paths(paths); end
111
- def log(message); end
112
- def ls(dir); end
113
- def promote_namespace_from_implicit_to_explicit(dir:, file:, parent:, cname:); end
114
- def raise_if_conflicting_directory(dir); end
115
- def recompute_collapse_dirs; end
116
- def recompute_ignored_paths; end
117
- def register_explicit_namespace(cpath); end
118
- def ruby?(path); end
119
- def set_autoload(parent, cname, abspath); end
120
- def set_autoloads_in_dir(dir, parent); end
121
- def strict_autoload_path(parent, cname); end
122
- def unload_autoload(parent, cname); end
123
- def unload_cref(parent, cname); end
124
-
125
- class << self
126
- def all_dirs; end
127
- def default_logger; end
128
- def default_logger=(_arg0); end
129
- def eager_load_all; end
130
- def for_gem; end
131
- def mutex; end
132
- def mutex=(_arg0); end
133
- end
134
- end
135
-
136
- module Zeitwerk::Loader::Callbacks
137
- include ::Zeitwerk::RealModName
138
-
139
- def on_dir_autoloaded(dir); end
140
- def on_file_autoloaded(file); end
141
- def on_namespace_loaded(namespace); end
142
-
143
- private
144
-
145
- def run_on_load_callbacks(cpath); end
146
- end
147
-
148
- class Zeitwerk::NameError < ::NameError; end
149
-
150
- module Zeitwerk::RealModName
151
- def real_mod_name(mod); end
152
- end
153
-
154
- Zeitwerk::RealModName::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod)
155
-
156
- module Zeitwerk::Registry
157
- class << self
158
- def autoloads; end
159
- def inception?(cpath); end
160
- def inceptions; end
161
- def loader_for(path); end
162
- def loader_for_gem(root_file); end
163
- def loaders; end
164
- def loaders_managing_gems; end
165
- def on_unload(loader); end
166
- def register_autoload(loader, realpath); end
167
- def register_inception(cpath, realpath, loader); end
168
- def register_loader(loader); end
169
- def unregister_autoload(realpath); end
170
- end
171
- end
172
-
173
- class Zeitwerk::ReloadingDisabledError < ::Zeitwerk::Error; end
data/sorbet/rbi/todo.rbi DELETED
@@ -1,8 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for unresolved constants.
3
- # Please instead update this file by running `bin/tapioca todo`.
4
-
5
- # typed: false
6
-
7
- module Fiddle::CParser; end
8
- module Fiddle::Importer; end
@@ -1,7 +0,0 @@
1
- # typed: strict
2
-
3
- class TypedParams
4
- sig { params(klass: T.untyped).returns(T.untyped) }
5
- def self.[](klass)
6
- end
7
- end
@@ -1,16 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- # DO NOT EDIT MANUALLY
5
- # This is an autogenerated file for explicit gem requires.
6
- # Please instead update this file by running `bin/tapioca require`.
7
-
8
- require 'action_controller'
9
- require 'action_controller/metal/exceptions'
10
- require 'byebug'
11
- require 'muina/module'
12
- require 'simplecov'
13
- require 'sorbet-rails/typed_params'
14
- require 'sorbet-runtime'
15
- require 'sorbet-struct-comparable'
16
- require 'zeitwerk'