muina 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) 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 -226
  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 -172
  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 -31
  43. data/lib/muina/action/step/failure.rb +0 -18
  44. data/lib/muina/action/step/query.rb +0 -31
  45. data/lib/muina/action/step/result.rb +0 -51
  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/module.rb +0 -6
  51. data/lib/muina/parameters.rb +0 -7
  52. data/lib/muina/params.rb +0 -19
  53. data/lib/muina/private_creation.rb +0 -12
  54. data/lib/muina/result/factory.rb +0 -37
  55. data/lib/muina/result/failure.rb +0 -31
  56. data/lib/muina/result/null.rb +0 -25
  57. data/lib/muina/result/success.rb +0 -31
  58. data/lib/muina/result.rb +0 -17
  59. data/lib/muina/service.rb +0 -37
  60. data/lib/muina/symbol_hash.rb +0 -7
  61. data/lib/muina/unit.rb +0 -10
  62. data/lib/muina/untyped_array.rb +0 -7
  63. data/lib/muina/untyped_hash.rb +0 -7
  64. data/lib/muina/value.rb +0 -16
  65. data/muina.gemspec +0 -35
  66. data/rbi/muina.rbi +0 -268
  67. data/sorbet/config +0 -2
  68. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
  69. data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
  70. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
  71. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  72. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
  73. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
  74. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
  75. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  76. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  77. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  78. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  79. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
  80. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  81. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
  82. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
  83. data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
  84. data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
  85. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  86. data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
  87. data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
  88. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  89. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
  90. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
  91. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
  92. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
  93. data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
  94. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  95. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
  96. data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
  97. data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
  98. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
  99. data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
  100. data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
  101. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
  102. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  103. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  104. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
  105. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
  106. data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
  107. data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
  108. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
  109. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
  110. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  111. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
  112. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
  113. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
  114. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
  115. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  116. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  117. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
  118. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
  119. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
  120. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
  121. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  122. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
  123. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  124. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
  125. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
  126. data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
  127. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
  128. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
  129. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  130. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  131. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
  132. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
  133. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
  134. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
  135. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
  136. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
  137. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
  138. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
  139. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  140. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
  141. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
  142. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
  143. data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
  144. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  145. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  146. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  147. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
  148. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
  149. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
  150. data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
  151. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
  152. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  153. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
  154. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
  155. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
  156. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
  157. data/sorbet/rbi/todo.rbi +0 -8
  158. data/sorbet/rbi/typed_params.rbi +0 -7
  159. data/sorbet/tapioca/require.rb +0 -16
data/.rubocop.yml DELETED
@@ -1,172 +0,0 @@
1
- ---
2
- inherit_mode:
3
- merge:
4
- - Exclude
5
- - IgnoredMethods
6
-
7
- require:
8
- - rubocop-performance
9
- - rubocop-rake
10
- - rubocop-rspec
11
- - rubocop-sorbet
12
-
13
- AllCops:
14
- NewCops: enable
15
- Exclude:
16
- - bin/*
17
- - vendor/**/*
18
-
19
- Bundler/GemComment:
20
- Enabled: false
21
-
22
- Bundler/GemVersion:
23
- Enabled: true
24
- EnforcedStyle: forbidden
25
-
26
- Layout/ClassStructure:
27
- Enabled: true
28
- Categories:
29
- module_inclusion:
30
- - include
31
- - prepend
32
- - extend
33
- ExpectedOrder:
34
- - module_inclusion
35
- - constants
36
- - public_class_methods
37
- - initializer
38
- - public_methods
39
- - protected_methods
40
- - private_methods
41
-
42
- Lint/ConstantResolution:
43
- Enabled: false
44
- Only: []
45
- Ignore: []
46
-
47
- Metrics/MethodLength:
48
- Max: 5
49
-
50
- Metrics/ParameterLists:
51
- Max: 4
52
-
53
- Performance/SelectMap:
54
- Enabled: true
55
-
56
- RSpec/AlignLeftLetBrace:
57
- Enabled: true
58
-
59
- RSpec/AlignRightLetBrace:
60
- Enabled: true
61
-
62
- RSpec/DescribedClassModuleWrapping:
63
- Enabled: true
64
-
65
- RSpec/MessageExpectation:
66
- Description: Checks for consistent message expectation style.
67
- Enabled: false
68
- EnforcedStyle: allow
69
- SupportedStyles:
70
- - allow
71
- - expect
72
-
73
- RSpec/Pending:
74
- Enabled: true
75
-
76
- Sorbet/EnforceSignatures:
77
- Enabled: false
78
-
79
- Sorbet/ForbidIncludeConstLiteral:
80
- Enabled: true
81
-
82
- Sorbet/ForbidSuperclassConstLiteral:
83
- Enabled: true
84
-
85
- Sorbet/ForbidTUnsafe:
86
- Enabled: true
87
-
88
- Sorbet/StrictSigil:
89
- Enabled: true
90
- Exclude: [ 'spec/**/*' ]
91
-
92
- Style/Alias:
93
- EnforcedStyle: prefer_alias_method
94
-
95
- Style/ArrayCoercion:
96
- Safe: false
97
- Enabled: true
98
-
99
- Style/AutoResourceCleanup:
100
- Enabled: true
101
-
102
- Style/ClassMethodsDefinitions:
103
- Enabled: true
104
- EnforcedStyle: def_self
105
-
106
- Style/CollectionMethods:
107
- Enabled: true
108
-
109
- Style/ConstantVisibility:
110
- Enabled: true
111
-
112
- Style/DisableCopsWithinSourceCodeDirective:
113
- Description: Forbids disabling/enabling cops within source code.
114
- Enabled: false
115
- AllowedCops: []
116
-
117
- Style/DocumentationMethod:
118
- Enabled: false
119
- RequireForNonPublicMethods: true
120
-
121
- Style/EmptyCaseCondition:
122
- Enabled: false
123
-
124
- Style/ImplicitRuntimeError:
125
- Enabled: true
126
-
127
- Style/InlineComment:
128
- Enabled: false
129
-
130
- Style/LambdaCall:
131
- Enabled: false
132
-
133
- Style/MethodCallWithArgsParentheses:
134
- Enabled: false
135
-
136
- Style/MethodCalledOnDoEndBlock:
137
- Enabled: true
138
-
139
- Style/MissingElse:
140
- Enabled: true
141
- EnforcedStyle: both
142
-
143
- Style/MultilineMethodSignature:
144
- Enabled: true
145
-
146
- Style/OptionHash:
147
- Enabled: true
148
-
149
- # Supports --auto-correct
150
- Style/ReturnNil:
151
- Enabled: true
152
-
153
- Style/Send:
154
- Enabled: true
155
-
156
- Style/SingleLineBlockParams:
157
- Enabled: true
158
-
159
- Style/StaticClass:
160
- Enabled: true
161
-
162
- Style/StringHashKeys:
163
- Enabled: true
164
-
165
- Style/TopLevelMethodDefinition:
166
- Enabled: true
167
-
168
- Style/TrailingCommaInBlockArgs:
169
- Enabled: false
170
-
171
- Style/UnlessLogicalOperators:
172
- Enabled: false
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.6.6
data/.simplecov DELETED
@@ -1,14 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- SimpleCov.start do
5
- enable_coverage :branch
6
- primary_coverage :branch
7
-
8
- minimum_coverage line: 100, branch: 100
9
- minimum_coverage_by_file line: 100, branch: 100
10
-
11
- refuse_coverage_drop :line, :branch
12
-
13
- add_filter '/spec/'
14
- end
data/CHANGELOG.md DELETED
@@ -1,38 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.2.0] - 2021-06-28
11
-
12
- ### Added
13
-
14
- * Muina::Action: step based result returning services
15
- * Muina::Result#{value!,error!,and_then,or_else}: safe and unsafe ways of unwrapping values and errors
16
-
17
- ### Removed
18
-
19
- * Muina::Result#{value,error}
20
-
21
-
22
- ## [0.1.1] - 2021-06-22
23
-
24
- ### Fixed
25
-
26
- * Add missing `zeitwerk` dependency to gemspec
27
-
28
-
29
- ## [0.1.0] - 2021-06-21
30
-
31
- ### Added
32
-
33
- * Muina::Params: self extracting typed params
34
- * Muina::PrivateCreation: mixin to make `.new` and `.allocate` private
35
- * Muina::Result: type safe result monad
36
- * Muina::Service: service object with typesafe constants and attributes
37
- * Muina::Value: typesafe immutable struct-like objects
38
- * `muina` CLI: to copy bundled rbi file
data/Gemfile DELETED
@@ -1,34 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- source 'https://rubygems.org'
5
-
6
- gemspec
7
-
8
- gem 'awesome_print'
9
- gem 'byebug'
10
- gem 'faker'
11
- gem 'flay'
12
- gem 'flog'
13
- gem 'guard'
14
- gem 'guard-rspec'
15
- gem 'guard-rubocop'
16
- gem 'guard-shell'
17
- gem 'irb'
18
- gem 'lefthook'
19
- gem 'mutant'
20
- gem 'mutant-rspec'
21
- gem 'parlour'
22
- gem 'rake'
23
- gem 'rspec'
24
- gem 'rubocop'
25
- gem 'rubocop-performance'
26
- gem 'rubocop-rake'
27
- gem 'rubocop-rspec'
28
- gem 'rubocop-sorbet'
29
- gem 'simplecov'
30
- gem 'tapioca'
31
-
32
- source 'https://com:KpggqCgIwNtt64FWb4dEMTx9xupW3w8D@gem.mutant.dev' do
33
- gem 'mutant-license', require: false
34
- end
data/Gemfile.lock DELETED
@@ -1,265 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- muina (0.2.7)
5
- actionpack
6
- sorbet-rails
7
- sorbet-runtime
8
- sorbet-struct-comparable
9
- zeitwerk
10
-
11
- GEM
12
- remote: https://com:KpggqCgIwNtt64FWb4dEMTx9xupW3w8D@gem.mutant.dev/
13
- specs:
14
- mutant-license (0.1.1.1.4043027289354708743625974235631451632228.0)
15
-
16
- GEM
17
- remote: https://rubygems.org/
18
- specs:
19
- actionpack (6.1.4)
20
- actionview (= 6.1.4)
21
- activesupport (= 6.1.4)
22
- rack (~> 2.0, >= 2.0.9)
23
- rack-test (>= 0.6.3)
24
- rails-dom-testing (~> 2.0)
25
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
26
- actionview (6.1.4)
27
- activesupport (= 6.1.4)
28
- builder (~> 3.1)
29
- erubi (~> 1.4)
30
- rails-dom-testing (~> 2.0)
31
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
32
- activesupport (6.1.4)
33
- concurrent-ruby (~> 1.0, >= 1.0.2)
34
- i18n (>= 1.6, < 2)
35
- minitest (>= 5.1)
36
- tzinfo (~> 2.0)
37
- zeitwerk (~> 2.3)
38
- ast (2.4.2)
39
- awesome_print (1.9.2)
40
- builder (3.2.4)
41
- byebug (11.1.3)
42
- coderay (1.1.3)
43
- colorize (0.8.1)
44
- commander (4.6.0)
45
- highline (~> 2.0.0)
46
- concurrent-ruby (1.1.9)
47
- crass (1.0.6)
48
- diff-lcs (1.4.4)
49
- docile (1.4.0)
50
- erubi (1.10.0)
51
- erubis (2.7.0)
52
- faker (2.18.0)
53
- i18n (>= 1.6, < 2)
54
- ffi (1.15.3)
55
- flay (2.12.1)
56
- erubis (~> 2.7.0)
57
- path_expander (~> 1.0)
58
- ruby_parser (~> 3.0)
59
- sexp_processor (~> 4.0)
60
- flog (4.6.4)
61
- path_expander (~> 1.0)
62
- ruby_parser (~> 3.1, > 3.1.0)
63
- sexp_processor (~> 4.8)
64
- formatador (0.3.0)
65
- guard (2.18.0)
66
- formatador (>= 0.2.4)
67
- listen (>= 2.7, < 4.0)
68
- lumberjack (>= 1.0.12, < 2.0)
69
- nenv (~> 0.1)
70
- notiffany (~> 0.0)
71
- pry (>= 0.13.0)
72
- shellany (~> 0.0)
73
- thor (>= 0.18.1)
74
- guard-compat (1.2.1)
75
- guard-rspec (4.7.3)
76
- guard (~> 2.1)
77
- guard-compat (~> 1.1)
78
- rspec (>= 2.99.0, < 4.0)
79
- guard-rubocop (1.4.0)
80
- guard (~> 2.0)
81
- rubocop (< 2.0)
82
- guard-shell (0.7.2)
83
- guard (>= 2.0.0)
84
- guard-compat (~> 1.0)
85
- highline (2.0.3)
86
- i18n (1.8.10)
87
- concurrent-ruby (~> 1.0)
88
- io-console (0.5.9)
89
- irb (1.3.6)
90
- reline (>= 0.2.5)
91
- lefthook (0.7.6)
92
- listen (3.6.0)
93
- rb-fsevent (~> 0.10, >= 0.10.3)
94
- rb-inotify (~> 0.9, >= 0.9.10)
95
- loofah (2.12.0)
96
- crass (~> 1.0.2)
97
- nokogiri (>= 1.5.9)
98
- lumberjack (1.2.8)
99
- method_source (1.0.0)
100
- minitest (5.14.4)
101
- mutant (0.10.32)
102
- diff-lcs (~> 1.3)
103
- parser (~> 3.0.0)
104
- regexp_parser (~> 2.0, >= 2.0.3)
105
- unparser (~> 0.6.0)
106
- mutant-rspec (0.10.32)
107
- mutant (= 0.10.32)
108
- rspec-core (>= 3.8.0, < 4.0.0)
109
- nenv (0.3.0)
110
- nokogiri (1.12.3-x86_64-darwin)
111
- racc (~> 1.4)
112
- nokogiri (1.12.3-x86_64-linux)
113
- racc (~> 1.4)
114
- notiffany (0.1.3)
115
- nenv (~> 0.1)
116
- shellany (~> 0.0)
117
- parallel (1.20.1)
118
- parlour (6.0.1)
119
- commander (~> 4.5)
120
- parser
121
- rainbow (~> 3.0)
122
- sorbet-runtime (>= 0.5)
123
- parser (3.0.2.0)
124
- ast (~> 2.4.1)
125
- path_expander (1.1.0)
126
- polyfill (1.9.0)
127
- pry (0.14.1)
128
- coderay (~> 1.1)
129
- method_source (~> 1.0)
130
- racc (1.5.2)
131
- rack (2.2.3)
132
- rack-test (1.1.0)
133
- rack (>= 1.0, < 3)
134
- rails-dom-testing (2.0.3)
135
- activesupport (>= 4.2.0)
136
- nokogiri (>= 1.6)
137
- rails-html-sanitizer (1.3.0)
138
- loofah (~> 2.3)
139
- rainbow (3.0.0)
140
- rake (13.0.6)
141
- rb-fsevent (0.11.0)
142
- rb-inotify (0.10.1)
143
- ffi (~> 1.0)
144
- regexp_parser (2.1.1)
145
- reline (0.2.6)
146
- io-console (~> 0.5)
147
- rexml (3.2.5)
148
- rspec (3.10.0)
149
- rspec-core (~> 3.10.0)
150
- rspec-expectations (~> 3.10.0)
151
- rspec-mocks (~> 3.10.0)
152
- rspec-core (3.10.1)
153
- rspec-support (~> 3.10.0)
154
- rspec-expectations (3.10.1)
155
- diff-lcs (>= 1.2.0, < 2.0)
156
- rspec-support (~> 3.10.0)
157
- rspec-mocks (3.10.2)
158
- diff-lcs (>= 1.2.0, < 2.0)
159
- rspec-support (~> 3.10.0)
160
- rspec-support (3.10.2)
161
- rubocop (1.18.4)
162
- parallel (~> 1.10)
163
- parser (>= 3.0.0.0)
164
- rainbow (>= 2.2.2, < 4.0)
165
- regexp_parser (>= 1.8, < 3.0)
166
- rexml
167
- rubocop-ast (>= 1.8.0, < 2.0)
168
- ruby-progressbar (~> 1.7)
169
- unicode-display_width (>= 1.4.0, < 3.0)
170
- rubocop-ast (1.9.1)
171
- parser (>= 3.0.1.1)
172
- rubocop-performance (1.11.4)
173
- rubocop (>= 1.7.0, < 2.0)
174
- rubocop-ast (>= 0.4.0)
175
- rubocop-rake (0.6.0)
176
- rubocop (~> 1.0)
177
- rubocop-rspec (2.4.0)
178
- rubocop (~> 1.0)
179
- rubocop-ast (>= 1.1.0)
180
- rubocop-sorbet (0.6.2)
181
- rubocop
182
- ruby-progressbar (1.11.0)
183
- ruby_parser (3.17.0)
184
- sexp_processor (~> 4.15, >= 4.15.1)
185
- safe_type (1.1.1)
186
- sexp_processor (4.15.3)
187
- shellany (0.0.1)
188
- simplecov (0.21.2)
189
- docile (~> 1.1)
190
- simplecov-html (~> 0.11)
191
- simplecov_json_formatter (~> 0.1)
192
- simplecov-html (0.12.3)
193
- simplecov_json_formatter (0.1.3)
194
- sorbet (0.5.9030)
195
- sorbet-static (= 0.5.9030)
196
- sorbet-coerce (0.5.0)
197
- polyfill (~> 1.8)
198
- safe_type (~> 1.1, >= 1.1.1)
199
- sorbet-runtime (>= 0.4.4704)
200
- sorbet-rails (0.7.4)
201
- method_source (>= 0.9.2)
202
- parlour (>= 4.0.1)
203
- parser (>= 2.7)
204
- sorbet-coerce (>= 0.2.6)
205
- sorbet-runtime (>= 0.5)
206
- sorbet-runtime (0.5.9030)
207
- sorbet-static (0.5.9030-universal-darwin-20)
208
- sorbet-static (0.5.9030-x86_64-linux)
209
- sorbet-struct-comparable (1.1.0)
210
- sorbet-runtime (>= 0.5)
211
- spoom (1.1.2)
212
- colorize
213
- sorbet (>= 0.5.6347)
214
- sorbet-runtime
215
- thor (>= 0.19.2)
216
- tapioca (0.4.24)
217
- bundler (>= 1.17.3)
218
- parlour (>= 2.1.0)
219
- pry (>= 0.12.2)
220
- sorbet-runtime
221
- sorbet-static (>= 0.4.4471)
222
- spoom
223
- thor (>= 0.19.2)
224
- thor (1.1.0)
225
- tzinfo (2.0.4)
226
- concurrent-ruby (~> 1.0)
227
- unicode-display_width (2.0.0)
228
- unparser (0.6.0)
229
- diff-lcs (~> 1.3)
230
- parser (>= 3.0.0)
231
- zeitwerk (2.4.2)
232
-
233
- PLATFORMS
234
- x86_64-darwin-20
235
- x86_64-linux
236
-
237
- DEPENDENCIES
238
- awesome_print
239
- byebug
240
- faker
241
- flay
242
- flog
243
- guard
244
- guard-rspec
245
- guard-rubocop
246
- guard-shell
247
- irb
248
- lefthook
249
- muina!
250
- mutant
251
- mutant-license!
252
- mutant-rspec
253
- parlour
254
- rake
255
- rspec
256
- rubocop
257
- rubocop-performance
258
- rubocop-rake
259
- rubocop-rspec
260
- rubocop-sorbet
261
- simplecov
262
- tapioca
263
-
264
- BUNDLED WITH
265
- 2.2.20
data/Guardfile DELETED
@@ -1,24 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- guard :rspec, cmd: 'bin/rspec' do
5
- require 'guard/rspec/dsl'
6
- dsl = Guard::RSpec::Dsl.new(self)
7
-
8
- # RSpec files
9
- rspec = dsl.rspec
10
- watch(rspec.spec_helper) { rspec.spec_dir }
11
- watch(rspec.spec_support) { rspec.spec_dir }
12
- watch(rspec.spec_files)
13
-
14
- # Ruby files
15
- ruby = dsl.ruby
16
- dsl.watch_spec_files_for(ruby.lib_files)
17
- end
18
-
19
- guard :rubocop do
20
- watch(/.+\.rb$/)
21
- watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
22
- end
23
-
24
- guard(:shell) { watch(/(.*)_spec.rb/) { `mutant run --fail-fast` } }
data/Rakefile DELETED
@@ -1,13 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/gem_tasks'
5
- require 'rspec/core/rake_task'
6
-
7
- RSpec::Core::RakeTask.new(:spec)
8
-
9
- require 'rubocop/rake_task'
10
-
11
- RuboCop::RakeTask.new
12
-
13
- task default: %i[spec rubocop]
data/SECURITY.md DELETED
@@ -1,14 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- Currently supported version are:
6
-
7
- | Version | Supported |
8
- | ------- | ------------------ |
9
- | 0.2.0 | :white_check_mark: |
10
- | 0.1.x | :x: |
11
-
12
- ## Reporting a Vulnerability
13
-
14
- If you find any vulnerability please open an issue.
data/bin/bundle DELETED
@@ -1,114 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'bundle' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "rubygems"
12
-
13
- m = Module.new do
14
- module_function
15
-
16
- def invoked_as_script?
17
- File.expand_path($0) == File.expand_path(__FILE__)
18
- end
19
-
20
- def env_var_version
21
- ENV["BUNDLER_VERSION"]
22
- end
23
-
24
- def cli_arg_version
25
- return unless invoked_as_script? # don't want to hijack other binstubs
26
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
- bundler_version = nil
28
- update_index = nil
29
- ARGV.each_with_index do |a, i|
30
- if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
- bundler_version = a
32
- end
33
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
- bundler_version = $1
35
- update_index = i
36
- end
37
- bundler_version
38
- end
39
-
40
- def gemfile
41
- gemfile = ENV["BUNDLE_GEMFILE"]
42
- return gemfile if gemfile && !gemfile.empty?
43
-
44
- File.expand_path("../../Gemfile", __FILE__)
45
- end
46
-
47
- def lockfile
48
- lockfile =
49
- case File.basename(gemfile)
50
- when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
- else "#{gemfile}.lock"
52
- end
53
- File.expand_path(lockfile)
54
- end
55
-
56
- def lockfile_version
57
- return unless File.file?(lockfile)
58
- lockfile_contents = File.read(lockfile)
59
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
- Regexp.last_match(1)
61
- end
62
-
63
- def bundler_version
64
- @bundler_version ||=
65
- env_var_version || cli_arg_version ||
66
- lockfile_version
67
- end
68
-
69
- def bundler_requirement
70
- return "#{Gem::Requirement.default}.a" unless bundler_version
71
-
72
- bundler_gem_version = Gem::Version.new(bundler_version)
73
-
74
- requirement = bundler_gem_version.approximate_recommendation
75
-
76
- return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77
-
78
- requirement += ".a" if bundler_gem_version.prerelease?
79
-
80
- requirement
81
- end
82
-
83
- def load_bundler!
84
- ENV["BUNDLE_GEMFILE"] ||= gemfile
85
-
86
- activate_bundler
87
- end
88
-
89
- def activate_bundler
90
- gem_error = activation_error_handling do
91
- gem "bundler", bundler_requirement
92
- end
93
- return if gem_error.nil?
94
- require_error = activation_error_handling do
95
- require "bundler/version"
96
- end
97
- return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
- warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99
- exit 42
100
- end
101
-
102
- def activation_error_handling
103
- yield
104
- nil
105
- rescue StandardError, LoadError => e
106
- e
107
- end
108
- end
109
-
110
- m.load_bundler!
111
-
112
- if m.invoked_as_script?
113
- load Gem.bin_path("bundler", "bundle")
114
- end
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'muina'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)