orthoses 1.7.0 → 1.8.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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -3
  3. data/lib/orthoses/builder.rb +7 -3
  4. data/lib/orthoses/content/duplication_checker.rb +50 -35
  5. data/lib/orthoses/content/environment.rb +1 -1
  6. data/lib/orthoses/create_file_by_name.rb +38 -7
  7. data/lib/orthoses/missing_name.rb +81 -0
  8. data/lib/orthoses/mixin.rb +9 -4
  9. data/lib/orthoses/rbs_prototype_runtime.rb +21 -2
  10. data/lib/orthoses/utils.rb +1 -1
  11. data/lib/orthoses/version.rb +1 -1
  12. data/lib/orthoses.rb +1 -0
  13. data/sig/orthoses/_call.rbs +1 -1
  14. data/sig/orthoses/_middle_ware.rbs +1 -1
  15. data/sig/orthoses/attribute/hook.rbs +1 -1
  16. data/sig/orthoses/attribute.rbs +1 -1
  17. data/sig/orthoses/autoload/hook.rbs +1 -1
  18. data/sig/orthoses/autoload.rbs +1 -1
  19. data/sig/orthoses/builder/call_logable.rbs +1 -1
  20. data/sig/orthoses/builder.rbs +5 -4
  21. data/sig/orthoses/call_tracer/capturable.rbs +1 -1
  22. data/sig/orthoses/call_tracer/capture.rbs +2 -2
  23. data/sig/orthoses/call_tracer/lazy.rbs +2 -2
  24. data/sig/orthoses/call_tracer.rbs +1 -1
  25. data/sig/orthoses/const_load_error.rbs +1 -1
  26. data/sig/orthoses/constant.rbs +1 -1
  27. data/sig/orthoses/content/array_io.rbs +1 -1
  28. data/sig/orthoses/content/duplication_checker.rbs +5 -3
  29. data/sig/orthoses/content/environment.rbs +8 -3
  30. data/sig/orthoses/content/header_builder.rbs +1 -1
  31. data/sig/orthoses/content.rbs +2 -1
  32. data/sig/orthoses/create_file_by_name.rbs +2 -2
  33. data/sig/orthoses/delegate_class/hook.rbs +1 -1
  34. data/sig/orthoses/delegate_class.rbs +1 -1
  35. data/sig/orthoses/filter.rbs +1 -1
  36. data/sig/orthoses/lazy_trace_point.rbs +1 -1
  37. data/sig/orthoses/load_rbs.rbs +1 -1
  38. data/sig/orthoses/missing_name/missing_class.rbs +7 -0
  39. data/sig/orthoses/missing_name/missing_module.rbs +7 -0
  40. data/sig/orthoses/missing_name.rbs +6 -0
  41. data/sig/orthoses/mixin/hook.rbs +2 -2
  42. data/sig/orthoses/mixin.rbs +2 -2
  43. data/sig/orthoses/name_space_error.rbs +1 -1
  44. data/sig/orthoses/object_space_all.rbs +1 -1
  45. data/sig/orthoses/outputable/avoid_recursive_ancestor_error.rbs +1 -1
  46. data/sig/orthoses/outputable/constantizable_filter.rbs +1 -1
  47. data/sig/orthoses/outputable/uniq_content_body.rbs +1 -1
  48. data/sig/orthoses/outputable.rbs +1 -1
  49. data/sig/orthoses/path_helper.rbs +1 -1
  50. data/sig/orthoses/pp.rbs +1 -1
  51. data/sig/orthoses/rbs_prototype_rb.rbs +5 -3
  52. data/sig/orthoses/rbs_prototype_runtime.rbs +10 -3
  53. data/sig/orthoses/sort.rbs +1 -1
  54. data/sig/orthoses/store.rbs +1 -1
  55. data/sig/orthoses/tap.rbs +1 -1
  56. data/sig/orthoses/trace/attribute.rbs +1 -1
  57. data/sig/orthoses/trace/method/info.rbs +1 -1
  58. data/sig/orthoses/trace/method.rbs +1 -1
  59. data/sig/orthoses/trace/targetable.rbs +1 -1
  60. data/sig/orthoses/trace.rbs +1 -1
  61. data/sig/orthoses/utils/type_list.rbs +1 -1
  62. data/sig/orthoses/utils/underscore.rbs +1 -1
  63. data/sig/orthoses/utils.rbs +2 -2
  64. data/sig/orthoses/walk.rbs +1 -1
  65. data/sig/orthoses/writer.rbs +1 -1
  66. data/sig/orthoses.rbs +2 -2
  67. metadata +6 -21
  68. data/Gemfile +0 -16
  69. data/Gemfile.lock +0 -86
  70. data/examples/minitest/Rakefile +0 -56
  71. data/examples/rack-test/Gemfile +0 -8
  72. data/examples/rack-test/Gemfile.lock +0 -30
  73. data/examples/rack-test/Rakefile +0 -7
  74. data/examples/rack-test/generate.rb +0 -31
  75. data/examples/rack-test/out/rack/test/cookie.rbs +0 -28
  76. data/examples/rack-test/out/rack/test/cookie_jar.rbs +0 -28
  77. data/examples/rack-test/out/rack/test/fake_app.rbs +0 -13
  78. data/examples/rack-test/out/rack/test/input_rewinder.rbs +0 -8
  79. data/examples/rack-test/out/rack/test/methods.rbs +0 -98
  80. data/examples/rack-test/out/rack/test/session.rbs +0 -186
  81. data/examples/rack-test/out/rack/test/uploaded_file.rbs +0 -18
  82. data/examples/rack-test/out/rack/test/utils.rbs +0 -112
  83. data/examples/rack-test/out/rack/test.rbs +0 -3
  84. data/examples/simple_middleware.rb +0 -11
  85. data/examples/simple_middleware.rbs +0 -7
  86. data/orthoses.gemspec +0 -36
@@ -1,28 +0,0 @@
1
- class Rack::Test::CookieJar
2
- private def initialize: (?Array[untyped] cookies, ?String default_host) -> void
3
- private def each_cookie_for: (URI::Generic uri) -> (Array[untyped] | String | bool)
4
- | (URI::HTTP uri) -> (Array[untyped] | String | bool)
5
- | (nil uri) -> String
6
- | (URI::HTTPS uri) -> (Array[untyped] | String)
7
- def for: (URI::Generic uri) -> (Array[Rack::Test::Cookie] | String | Time)
8
- | (URI::HTTP uri) -> (Array[Rack::Test::Cookie] | String | Time)
9
- | (nil uri) -> String
10
- | (URI::HTTPS uri) -> (Array[Rack::Test::Cookie] | String)
11
- def merge: (nil raw_cookies, ?URI::Generic uri) -> nil
12
- | (String raw_cookies, ?URI::Generic uri) -> Rack::QueryParser::Params
13
- | (nil raw_cookies, ?URI::HTTP uri) -> nil
14
- | (String raw_cookies, ?nil uri) -> Array[nil]
15
- | (nil raw_cookies, ?URI::HTTPS uri) -> nil
16
- | (Array[String] raw_cookies, ?URI::Generic uri) -> Rack::QueryParser::Params
17
- | (String raw_cookies, ?URI::HTTPS uri) -> Rack::QueryParser::Params
18
- | (String raw_cookies, ?URI::HTTP uri) -> Rack::QueryParser::Params
19
- | (Array[String] raw_cookies, ?nil uri) -> Array[nil]
20
- def []: (String name) -> String?
21
- | (Symbol name) -> String
22
- private def initialize_copy: (Rack::Test::CookieJar other) -> Array[untyped]
23
- def <<: (Rack::Test::Cookie new_cookie) -> (Array[Rack::Test::Cookie] | String)
24
- def []=: (String name, String value) -> String
25
- def to_hash: () -> (Hash[untyped, untyped] | String)
26
- def get_cookie: (String name) -> String?
27
- def delete: (String name) -> String
28
- end
@@ -1,13 +0,0 @@
1
- class Rack::Test::FakeApp
2
- private def handle: (Hash[String, Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
3
- | (Hash[String, Hash[Symbol, Symbol] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
4
- | (Hash[String, Hash[Symbol, String] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
5
- | (Hash[String, Hash[untyped, untyped] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
6
- | (Hash[String, Hash[String, String] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
7
- def call: (Hash[String, Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
8
- | (Hash[String, Hash[Symbol, Symbol] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
9
- | (Hash[String, Hash[Symbol, String] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
10
- | (Hash[String, Hash[untyped, untyped] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
11
- | (Hash[String, Hash[String, String] | Rack::Lint::Wrapper::InputWrapper | Rack::Lint::Wrapper::ErrorWrapper | String | bool] env) -> nil
12
- private def new_cookie_count: (Rack::Request req) -> Hash[untyped, untyped]
13
- end
@@ -1,8 +0,0 @@
1
- class Rack::Test::InputRewinder
2
- private def initialize: (Rack::Lint app) -> void
3
- def call: (Hash[String, StringIO | String | bool] env) -> Integer
4
- | (Hash[String, Hash[Symbol, Symbol] | StringIO | String | bool] env) -> Integer
5
- | (Hash[String, Hash[Symbol, String] | StringIO | String | bool] env) -> Integer
6
- | (Hash[String, Hash[untyped, untyped] | StringIO | String | bool] env) -> Integer
7
- | (Hash[String, Hash[String, String] | StringIO | String | bool] env) -> Integer
8
- end
@@ -1,98 +0,0 @@
1
- module Rack::Test::Methods
2
- attr_accessor _rack_test_current_session: Rack::Test::Session?
3
-
4
- def build_rack_test_session: (Symbol _name) -> (Rack::Test::InputRewinder | Proc | Rack::Test::Session)
5
- | (bool _name) -> Rack::Test::InputRewinder
6
- | (nil _name) -> Rack::Test::InputRewinder
7
-
8
- def rack_test_session: (?Symbol name) -> (Rack::Test::Session | String)
9
- | (?bool name) -> Rack::Test::Session
10
- | (?nil name) -> Rack::Test::Session
11
-
12
- def current_session: () -> Rack::Test::Session
13
-
14
- def request: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> (Array[nil] | Rack::Test::Session)
15
- | (*Array[Hash[String, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> (Array[nil] | Rack::Test::Session)
16
- | (*Array[Hash[Symbol, Hash[String, String]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
17
- | (*Array[Hash[Symbol, Hash[untyped, untyped]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
18
- | (*Array[Hash[Symbol, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
19
- | (*Array[Hash[Symbol, Hash[String, String] | Symbol] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
20
- | (*Array[Hash[Symbol, Hash[Symbol, Hash[Symbol, String]]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
21
- | (*Array[Hash[Symbol, Symbol] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
22
- | (*Array[Hash[Symbol, Hash[Symbol, Hash[Symbol, String]] | Symbol] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
23
- | (*Array[Hash[Symbol, Symbol | String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
24
- | (*Array[Hash[Symbol | String, Hash[String, String] | Symbol | String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
25
- | (*Array[Hash[Symbol, Hash[String, String] | Symbol | bool] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
26
- | (*Array[Hash[Symbol, Hash[Symbol, Integer]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
27
- | (*Array[Hash[Symbol, bool] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
28
- | (*Array[Hash[String, Hash[Symbol, Symbol]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Array[nil]
29
-
30
- def last_request: (*Array[untyped] args, **untyped) ?{ (*untyped) -> untyped } -> (Rack::Request | Rack::Test::Session)
31
-
32
- def get: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> (Array[nil] | Rack::Test::Session)
33
- | (*Array[Hash[String, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> (Array[nil] | Rack::Test::Session)
34
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
35
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
36
- | (*Array[Hash[Symbol, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
37
- | (*Array[Hash[String, Hash[String, String]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
38
- | (*Array[(Hash[String, String] | String)?] args, **untyped) ?{ (*untyped) -> untyped } -> Array[nil]
39
-
40
- def last_response: (*Array[untyped] args, **untyped) ?{ (*untyped) -> untyped } -> (Rack::MockResponse | Rack::Test::Session)
41
-
42
- def options: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
43
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
44
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
45
-
46
- def custom_request: (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
47
- | (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
48
-
49
- def delete: (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
50
- | (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
51
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
52
- | (*Array[Hash[Symbol, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
53
-
54
- def patch: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
55
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
56
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
57
-
58
- def put: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
59
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
60
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
61
-
62
- def post: (*Array[Hash[String, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
63
- | (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
64
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
65
- | (*Array[Hash[Symbol, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
66
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
67
- | (*Array[Hash[String, Array[Rack::Test::UploadedFile]] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
68
- | (*Array[Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
69
- | (*Array[Hash[String, Hash[String, String] | Rack::Test::UploadedFile] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
70
- | (*Array[Hash[String, Rack::Test::UploadedFile | String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
71
- | (*Array[Hash[String, Rack::Test::UploadedFile] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
72
- | (*Array[Hash[String, Rack::Test::UploadedFile] | Hash[String, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
73
- | (*Array[Hash[String, Array[String] | Rack::Test::UploadedFile] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
74
-
75
- def env: (*Array[Hash[Symbol, String] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
76
- | (*Array[Hash[Symbol, Symbol] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Hash[Symbol, Symbol]
77
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Hash[Symbol, String]
78
-
79
- def follow_redirect!: (*Array[untyped] args, **untyped) ?{ (*untyped) -> untyped } -> (Rack::Test::Session | String)
80
-
81
- def header: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> (Rack::Test::Session | String)
82
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> String
83
-
84
- def head: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
85
- | (*Array[String?] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
86
- | (*Array[Hash[untyped, untyped] | String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
87
-
88
- def basic_authorize: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
89
-
90
- def set_cookie: (*Array[String] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
91
- | (*Array[Array[String]] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::Session
92
-
93
- def with_session: (Symbol name) -> Rack::Test::Session?
94
-
95
- def clear_cookies: (*Array[untyped] args, **untyped) ?{ (*untyped) -> untyped } -> Rack::Test::CookieJar
96
-
97
- alias rack_mock_session rack_test_session
98
- end
@@ -1,186 +0,0 @@
1
- class Rack::Test::Session
2
- attr_accessor cookie_jar: Rack::Test::CookieJar
3
- def clear_cookies: () -> Rack::Test::CookieJar
4
- private def initialize: (Rack::Test::InputRewinder app, ?String default_host) -> void
5
- | (Proc app, ?String default_host) -> void
6
- def self.new: (Rack::Test::InputRewinder app, ?String default_host) -> Rack::Test::Session
7
- | (Proc app, ?String default_host) -> Rack::Test::Session
8
- | (Rack::Test::Session app, ?String default_host) -> Rack::Test::Session
9
- private def parse_uri: (String path, Hash[untyped, untyped] env) -> Array[String?]
10
- | (String path, Hash[String, String] env) -> Array[String?]
11
- | (String path, Hash[Symbol, bool] env) -> Array[String?]
12
- | (String path, Hash[Symbol, Hash[String, String]] env) -> Array[String?]
13
- | (String path, Hash[Symbol, Hash[untyped, untyped]] env) -> Array[String?]
14
- | (String path, Hash[Symbol, String] env) -> Array[String?]
15
- | (String path, Hash[Symbol, Hash[String, String] | Symbol] env) -> Array[String?]
16
- | (String path, Hash[Symbol, Hash[Symbol, Hash[Symbol, String]]] env) -> Array[String?]
17
- | (String path, Hash[Symbol, Symbol] env) -> Array[String?]
18
- | (String path, Hash[Symbol, Hash[Symbol, Hash[Symbol, String]] | Symbol] env) -> Array[String?]
19
- | (String path, Hash[Symbol, Symbol | String] env) -> Array[String?]
20
- | (String path, Hash[Symbol | String, Hash[String, String] | Symbol | String] env) -> Array[String?]
21
- | (String path, Hash[Symbol, Hash[String, String] | Symbol | bool] env) -> Array[String?]
22
- | (String path, Hash[Symbol, Hash[Symbol, Integer]] env) -> Array[String?]
23
- | (String path, Hash[String, Hash[Symbol, Symbol]] env) -> Array[String?]
24
- | (String path, Hash[String, Hash[untyped, untyped] | String] env) -> Array[String?]
25
- | (String path, Hash[String, Hash[String, String]] env) -> Array[String?]
26
- def request: (String uri, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> String?
27
- | (String uri, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> nil
28
- | (String uri, ?Hash[Symbol, Hash[String, String]] env) ?{ (*untyped) -> untyped } -> nil
29
- | (String uri, ?Hash[Symbol, Hash[untyped, untyped]] env) ?{ (*untyped) -> untyped } -> nil
30
- | (String uri, ?Hash[Symbol, String] env) ?{ (*untyped) -> untyped } -> nil
31
- | (String uri, ?Hash[Symbol, Hash[String, String] | Symbol] env) ?{ (*untyped) -> untyped } -> nil
32
- | (String uri, ?Hash[Symbol, Hash[Symbol, Hash[Symbol, String]]] env) ?{ (*untyped) -> untyped } -> nil
33
- | (String uri, ?Hash[Symbol, Symbol] env) ?{ (*untyped) -> untyped } -> nil
34
- | (String uri, ?Hash[Symbol, Hash[Symbol, Hash[Symbol, String]] | Symbol] env) ?{ (*untyped) -> untyped } -> nil
35
- | (String uri, ?Hash[Symbol, Symbol | String] env) ?{ (*untyped) -> untyped } -> nil
36
- | (String uri, ?Hash[Symbol | String, Hash[String, String] | Symbol | String] env) ?{ (*untyped) -> untyped } -> nil
37
- | (String uri, ?Hash[Symbol, Hash[String, String] | Symbol | bool] env) ?{ (*untyped) -> untyped } -> nil
38
- | (String uri, ?Hash[Symbol, Hash[Symbol, Integer]] env) ?{ (*untyped) -> untyped } -> nil
39
- | (String uri, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> nil
40
- | (String uri, ?Hash[String, Hash[Symbol, Symbol]] env) ?{ (*untyped) -> untyped } -> nil
41
- private def env_for: (URI::Generic uri, Hash[untyped, untyped] env) -> (singleton(URI::Generic) | String)
42
- | (URI::Generic uri, Hash[Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::Generic)
43
- | (URI::Generic uri, Hash[Symbol, String?] env) -> singleton(URI::Generic)
44
- | (URI::Generic uri, Hash[String | Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::Generic)
45
- | (URI::HTTP uri, Hash[Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::HTTP)
46
- | (URI::Generic uri, Hash[Symbol, Hash[untyped, untyped] | bool | String] env) -> singleton(URI::Generic)
47
- | (URI::Generic uri, Hash[Symbol, String] env) -> singleton(URI::Generic)
48
- | (URI::Generic uri, Hash[Symbol, Hash[Symbol, String] | String] env) -> singleton(URI::Generic)
49
- | (URI::Generic uri, Hash[Symbol, Hash[String, String] | String] env) -> singleton(URI::Generic)
50
- | (URI::Generic uri, Hash[Symbol, Hash[String, Array[Rack::Test::UploadedFile]] | String] env) -> singleton(URI::Generic)
51
- | (URI::Generic uri, Hash[String, String] env) -> (singleton(URI::Generic) | String)
52
- | (URI::Generic uri, Hash[Symbol, Hash[String, String]] env) -> singleton(URI::Generic)
53
- | (URI::HTTPS uri, Hash[untyped, untyped] env) -> singleton(URI::HTTPS)
54
- | (URI::Generic uri, Hash[Symbol, Hash[untyped, untyped]] env) -> singleton(URI::Generic)
55
- | (URI::HTTP uri, Hash[untyped, untyped] env) -> singleton(URI::HTTP)
56
- | (URI::Generic uri, Hash[Symbol, Hash[String, String] | Symbol] env) -> singleton(URI::Generic)
57
- | (URI::Generic uri, Hash[Symbol, Hash[Symbol, Hash[Symbol, String]]] env) -> singleton(URI::Generic)
58
- | (URI::Generic uri, Hash[Symbol, Symbol] env) -> singleton(URI::Generic)
59
- | (URI::Generic uri, Hash[Symbol, Hash[Symbol, Hash[Symbol, String]] | Symbol] env) -> singleton(URI::Generic)
60
- | (URI::Generic uri, Hash[Symbol, Symbol | String] env) -> singleton(URI::Generic)
61
- | (URI::Generic uri, Hash[Symbol | String, Hash[String, String] | Symbol | String] env) -> singleton(URI::Generic)
62
- | (URI::Generic uri, Hash[Symbol, Hash[String, String] | Symbol | bool] env) -> singleton(URI::Generic)
63
- | (URI::Generic uri, Hash[Symbol, Hash[Symbol, Integer]] env) -> singleton(URI::Generic)
64
- | (URI::Generic uri, Hash[Symbol, bool] env) -> singleton(URI::Generic)
65
- | (URI::Generic uri, Hash[Symbol, Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] | String] env) -> singleton(URI::Generic)
66
- | (URI::Generic uri, Hash[Symbol, Hash[String, Hash[String, String] | Rack::Test::UploadedFile] | String] env) -> singleton(URI::Generic)
67
- | (URI::Generic uri, Hash[Symbol, Hash[String, Rack::Test::UploadedFile | String] | String] env) -> singleton(URI::Generic)
68
- | (URI::Generic uri, Hash[Symbol, Hash[String, Rack::Test::UploadedFile] | String] env) -> singleton(URI::Generic)
69
- | (URI::Generic uri, Hash[String | Symbol, Hash[String, Rack::Test::UploadedFile] | String] env) -> singleton(URI::Generic)
70
- | (URI::Generic uri, Hash[Symbol, Hash[String, Array[String] | Rack::Test::UploadedFile] | String] env) -> singleton(URI::Generic)
71
- | (URI::Generic uri, Hash[String, Hash[Symbol, Symbol]] env) -> singleton(URI::Generic)
72
- | (URI::HTTP uri, Hash[String | Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::HTTP)
73
- | (URI::HTTPS uri, Hash[String | Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::HTTPS)
74
- | (URI::Generic uri, Hash[Symbol, Hash[String, Hash[String, String]] | String] env) -> singleton(URI::Generic)
75
- | (URI::Generic uri, Hash[String | Symbol, Hash[String, String] | String] env) -> singleton(URI::Generic)
76
- | (URI::Generic uri, Hash[String | Symbol, String?] env) -> singleton(URI::Generic)
77
- | (URI::HTTPS uri, Hash[Symbol, Hash[String, String] | String] env) -> singleton(URI::HTTPS)
78
- | (URI::HTTPS uri, Hash[Symbol, Hash[untyped, untyped] | String] env) -> singleton(URI::HTTPS)
79
- | (URI::HTTP uri, Hash[Symbol, Hash[String, String] | String] env) -> singleton(URI::HTTP)
80
- private def process_request: (URI::Generic uri, Hash[String, StringIO | String | bool] env) -> Rack::Test::CookieJar
81
- | (URI::HTTP uri, Hash[String, StringIO | String | bool] env) -> Rack::Test::CookieJar
82
- | (URI::HTTPS uri, Hash[String, StringIO | String | bool] env) -> Rack::Test::CookieJar
83
- | (URI::Generic uri, Hash[String, Hash[Symbol, Symbol] | StringIO | String | bool] env) -> Rack::Test::CookieJar
84
- | (URI::Generic uri, Hash[String, Hash[Symbol, String] | StringIO | String | bool] env) -> Rack::Test::CookieJar
85
- | (URI::HTTP uri, Hash[String, Hash[untyped, untyped] | StringIO | String | bool] env) -> Rack::Test::CookieJar
86
- | (URI::HTTPS uri, Hash[String, Hash[untyped, untyped] | StringIO | String | bool] env) -> Rack::Test::CookieJar
87
- | (URI::Generic uri, Hash[String, Hash[String, String] | StringIO | String | bool] env) -> Rack::Test::CookieJar
88
- private def close_body: (Rack::Lint::Wrapper body) -> nil
89
- | (untyped body) -> nil
90
- | (Array[String] body) -> nil
91
- | (Array[untyped] body) -> nil
92
- def last_response: () -> Rack::MockResponse
93
- def last_request: () -> Rack::Request
94
- def after_request: () ?{ (*untyped) -> untyped } -> Array[Proc]
95
- def custom_request: (String verb, String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> String?
96
- | (String verb, String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
97
- | (String verb, String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> nil
98
- | (String verb, String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> nil
99
- | (String verb, String uri, ?String params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
100
- | (String verb, String uri, ?Hash[Symbol, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
101
- | (String verb, String uri, ?Hash[String, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> String?
102
- | (String verb, String uri, ?Hash[String, Array[Rack::Test::UploadedFile]] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
103
- | (String verb, String uri, ?Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
104
- | (String verb, String uri, ?Hash[String, Hash[String, String] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
105
- | (String verb, String uri, ?Hash[String, Rack::Test::UploadedFile | String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
106
- | (String verb, String uri, ?Hash[String, Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
107
- | (String verb, String uri, ?Hash[String, Rack::Test::UploadedFile] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> nil
108
- | (String verb, String uri, ?Hash[String, Array[String] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
109
- | (String verb, String uri, ?Hash[untyped, untyped] params, ?Hash[String, Hash[untyped, untyped] | String] env) ?{ (*untyped) -> untyped } -> String
110
- | (String verb, String uri, ?Hash[String, String] params, ?Hash[String, Hash[untyped, untyped] | String] env) ?{ (*untyped) -> untyped } -> String
111
- | (String verb, String uri, ?Hash[untyped, untyped] params, ?Hash[String, Hash[String, String]] env) ?{ (*untyped) -> untyped } -> nil
112
- | (String verb, String uri, ?Hash[String, Hash[String, String]] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> nil
113
- | (String verb, String uri, ?Hash[String, String] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> nil
114
- | (String verb, String uri, ?nil params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> nil
115
- def get: (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
116
- | (String uri, ?Hash[String, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
117
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, Hash[String, String]] env) ?{ (*untyped) -> untyped } -> Array[nil]
118
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
119
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
120
- | (String uri, ?Hash[Symbol, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
121
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
122
- | (String uri, ?Hash[String, Hash[String, String]] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
123
- | (String uri, ?Hash[String, String] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
124
- | (String uri, ?nil params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
125
- private def append_query_params: (Array[nil] query_array, Hash[untyped, untyped] query_params) -> Array[String?]
126
- | (Array[String] query_array, Hash[untyped, untyped] query_params) -> Array[String]
127
- | (Array[nil] query_array, Hash[String, String] query_params) -> String
128
- | (Array[String] query_array, String query_params) -> Hash[untyped, untyped]
129
- | (Array[String?] query_array, Hash[String, String] query_params) -> String
130
- | (Array[String] query_array, Hash[Symbol, Hash[Symbol, String]] query_params) -> String
131
- | (Array[String] query_array, Hash[Symbol, Integer] query_params) -> String
132
- | (Array[nil] query_array, Hash[Symbol, String] query_params) -> String
133
- | (Array[nil] query_array, Hash[String, Hash[String, String]] query_params) -> String
134
- def restore_state: () -> nil
135
- def options: (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
136
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
137
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
138
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
139
- def delete: (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
140
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
141
- | (String uri, ?String params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
142
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
143
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
144
- | (String uri, ?Hash[Symbol, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
145
- def patch: (String uri, ?String params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
146
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
147
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
148
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
149
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
150
- def put: (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
151
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
152
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
153
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
154
- | (String uri, ?String params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
155
- def post: (String uri, ?Hash[String, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
156
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
157
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
158
- | (String uri, ?Hash[Symbol, String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
159
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
160
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
161
- | (String uri, ?String params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
162
- | (String uri, ?Hash[String, Array[Rack::Test::UploadedFile]] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
163
- | (String uri, ?Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
164
- | (String uri, ?Hash[String, Hash[String, String] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
165
- | (String uri, ?Hash[String, Rack::Test::UploadedFile | String] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
166
- | (String uri, ?Hash[String, Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
167
- | (String uri, ?Hash[String, Rack::Test::UploadedFile] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
168
- | (String uri, ?Hash[String, Array[String] | Rack::Test::UploadedFile] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
169
- private def multipart_content_type: (Hash[String | Symbol, bool | String] env) -> String
170
- | (Hash[String | Symbol, bool | String | Symbol] env) -> String
171
- def env: (String name, Hash[Symbol, String] value) -> Hash[Symbol, String]
172
- | (String name, Hash[Symbol, Symbol] value) -> Hash[Symbol, Symbol]
173
- | (String name, nil value) -> (Hash[Symbol, String] | String)
174
- | (String name, String value) -> String
175
- def follow_redirect!: () -> bool?
176
- def header: (String name, String value) -> String
177
- | (String name, nil value) -> String
178
- def head: (String uri, ?Hash[untyped, untyped] params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
179
- | (String uri, ?nil params, ?Hash[untyped, untyped] env) ?{ (*untyped) -> untyped } -> Array[nil]
180
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[String, String] env) ?{ (*untyped) -> untyped } -> Array[nil]
181
- | (String uri, ?Hash[untyped, untyped] params, ?Hash[Symbol, bool] env) ?{ (*untyped) -> untyped } -> Array[nil]
182
- def basic_authorize: (String username, String password) -> String
183
- def set_cookie: (String cookie, ?nil uri) -> Rack::Test::CookieJar
184
- | (String cookie, ?URI::Generic uri) -> Rack::Test::CookieJar
185
- | (Array[String] cookie, ?nil uri) -> Rack::Test::CookieJar
186
- end
@@ -1,18 +0,0 @@
1
- class Rack::Test::UploadedFile
2
- attr_reader tempfile: Tempfile?
3
- attr_reader original_filename: String
4
- attr_accessor content_type: String
5
- private def initialize_from_file_path: (String path) -> singleton(File)
6
- private def initialize: (String content, ?String content_type, ?bool binary, ?original_filename: nil) -> void
7
- | (StringIO content, ?String content_type, ?bool binary, ?original_filename: String) -> void
8
- | (String content, ?String content_type, ?bool binary, ?original_filename: String) -> void
9
- | (StringIO content, ?String content_type, ?bool binary, ?original_filename: nil) -> void
10
- def self.finalize: (Tempfile file) -> Proc
11
- private def respond_to_missing?: (Symbol method_name, ?bool include_private) -> Tempfile?
12
- def method_missing: (Symbol method_name, *Array[untyped] args) ?{ (*untyped) -> untyped } -> Tempfile
13
- | (Symbol method_name, *Array[Encoding] args) ?{ (*untyped) -> untyped } -> Tempfile
14
- def append_to: (String buffer) -> Tempfile
15
- private def initialize_from_stringio: (StringIO stringio) -> StringIO
16
- def path: () -> Tempfile
17
- def self.actually_finalize: (Tempfile file) -> nil
18
- end
@@ -1,112 +0,0 @@
1
- module Rack::Test::Utils
2
- def build_nested_query: (Hash[Symbol, Hash[Symbol, Array[Integer]]] value, ?nil prefix) -> String
3
- | (Hash[Symbol, Array[Integer]] value, ?String prefix) -> String
4
- | (Array[Integer] value, ?String prefix) -> String
5
- | (Integer value, ?String prefix) -> String
6
- | (Hash[Symbol, nil] value, ?nil prefix) -> String
7
- | (nil value, ?String prefix) -> String
8
- | (Hash[Symbol, Integer] value, ?nil prefix) -> String
9
- | (Hash[String, Array[Integer]] value, ?nil prefix) -> String
10
- | (nil value, ?nil prefix) -> String
11
- | (Hash[Symbol, Array[Integer]] value, ?nil prefix) -> String
12
- | (Hash[Symbol, Hash[Symbol, Integer]] value, ?nil prefix) -> String
13
- | (Hash[Symbol, Integer] value, ?String prefix) -> String
14
- | (Hash[Symbol, Array[untyped]] value, ?nil prefix) -> String
15
- | (Array[untyped] value, ?String prefix) -> String
16
- | (String value, ?nil prefix) -> String
17
- | (Hash[Symbol, Array[Hash[Symbol, Integer]]] value, ?nil prefix) -> String
18
- | (Array[Hash[Symbol, Integer]] value, ?String prefix) -> String
19
- | (Hash[untyped, untyped] value, ?nil prefix) -> String
20
- | (Hash[Symbol, String] value, ?nil prefix) -> String
21
- | (String value, ?String prefix) -> String
22
- | (Hash[String, String] value, ?nil prefix) -> String
23
- | (Hash[String, Hash[String, String]] value, ?nil prefix) -> String
24
- | (Hash[String, String] value, ?String prefix) -> String
25
- | (Hash[Symbol, Hash[Symbol, String]] value, ?nil prefix) -> String
26
- | (Hash[Symbol, String] value, ?String prefix) -> String
27
-
28
- def build_multipart: (Hash[untyped, untyped] params, ?bool _first, ?bool multipart) -> nil
29
- | (Hash[Symbol, String] params, ?bool _first, ?bool multipart) -> nil
30
- | (Hash[String, String] params, ?bool _first, ?bool multipart) -> String?
31
- | (Hash[String, Array[Rack::Test::UploadedFile]] params, ?bool _first, ?bool multipart) -> bool
32
- | (Hash[Symbol, Hash[Symbol, String]] params, ?bool _first, ?bool multipart) -> nil
33
- | (Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
34
- | (Hash[String, Hash[String, String] | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
35
- | (Hash[String, Rack::Test::UploadedFile | String] params, ?bool _first, ?bool multipart) -> bool
36
- | (Hash[String, Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
37
- | (Hash[String, Array[String] | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
38
- | (Hash[String, Array[Hash[String, String]]] params, ?bool _first, ?bool multipart) -> nil
39
- | (Hash[String, Array[Rack::Test::UploadedFile] | String] params, ?bool _first, ?bool multipart) -> bool
40
- | (Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile]] | Array[String]] params, ?bool _first, ?bool multipart) -> bool
41
- | (Hash[String, Array[Rack::Test::UploadedFile | String]] params, ?bool _first, ?bool multipart) -> bool
42
- | (Hash[String, Hash[String, String] | String | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
43
- | (Hash[String, untyped] params, ?bool _first, ?bool multipart) -> bool
44
- | (Hash[String, Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]]] | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
45
- | (Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile] | Hash[String, Array[String] | String]]] params, ?bool _first, ?bool multipart) -> bool
46
- | (Hash[String, Array[Hash[String, String]] | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
47
- | (Hash[String, String | Rack::Test::UploadedFile] params, ?bool _first, ?bool multipart) -> bool
48
- | (Hash[String, Array[Hash[String, Rack::Test::UploadedFile | String]] | Array[String]] params, ?bool _first, ?bool multipart) -> bool
49
- | (Hash[String, Array[Hash[String, Array[String] | String]]] params, ?bool _first, ?bool multipart) -> String
50
-
51
- private def normalize_multipart_params: (Hash[String, Array[Rack::Test::UploadedFile]] params, ?bool first) -> Hash[String, Array[Rack::Test::UploadedFile]]
52
- | (Hash[String, String] params, ?bool first) -> Hash[String, String]
53
- | (Hash[String, Hash[String, String]] params, ?bool first) -> Hash[String, String]
54
- | (Hash[String, Hash[String, Hash[String, String]] | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Rack::Test::UploadedFile | String]
55
- | (Hash[String, Hash[String, String] | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Rack::Test::UploadedFile | String]
56
- | (Hash[String, Rack::Test::UploadedFile | String] params, ?bool first) -> Hash[String, Rack::Test::UploadedFile | String]
57
- | (Hash[String, Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Rack::Test::UploadedFile]
58
- | (Hash[String, Array[String] | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Array[String] | Rack::Test::UploadedFile]
59
- | (Hash[String, Array[Rack::Test::UploadedFile] | String] params, ?bool first) -> Hash[String, Array[Rack::Test::UploadedFile] | String]
60
- | (Hash[String, String | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, String | Rack::Test::UploadedFile]
61
- | (Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile]] | Array[String]] params, ?bool first) -> Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile]] | Array[String]]
62
- | (Hash[String, Array[Rack::Test::UploadedFile | String]] params, ?bool first) -> Hash[String, Array[Rack::Test::UploadedFile | String]]
63
- | (Hash[String, Hash[String, String] | String | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, String | Rack::Test::UploadedFile]
64
- | (Hash[String, untyped] params, ?bool first) -> Hash[String, untyped]
65
- | (Hash[String, Array[Hash[String, String]] | String] params, ?bool first) -> Hash[String, Array[Hash[String, String]] | String]
66
- | (Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]]] params, ?bool first) -> Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]]]
67
- | (Hash[String, Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]]] | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]] | Rack::Test::UploadedFile]
68
- | (Hash[String, Array[String] | String] params, ?bool first) -> Hash[String, Array[String] | String]
69
- | (Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile] | Hash[String, Array[String] | String]]] params, ?bool first) -> Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile] | Hash[String, Array[String] | String]]]
70
- | (Hash[String, Array[Hash[String, String]] | Rack::Test::UploadedFile] params, ?bool first) -> Hash[String, Array[Hash[String, String]] | Rack::Test::UploadedFile]
71
- | (Hash[String, Array[Hash[String, Rack::Test::UploadedFile | String]] | Array[String]] params, ?bool first) -> Hash[String, Array[Hash[String, Rack::Test::UploadedFile | String]] | Array[String]]
72
- | (Hash[String, Array[Hash[String, Array[String] | String]]] params, ?bool first) -> Hash[String, Array[Hash[String, Array[String] | String]]]
73
-
74
- private def _build_parts: (String buffer, Hash[String, Array[Rack::Test::UploadedFile]] parameters) -> File
75
- | (String buffer, Hash[String, String] parameters) -> Array[Array[String]]
76
- | (String buffer, Hash[String, Rack::Test::UploadedFile | String] parameters) -> File
77
- | (String buffer, Hash[String, Rack::Test::UploadedFile] parameters) -> File
78
- | (String buffer, Hash[String, Array[String] | Rack::Test::UploadedFile] parameters) -> File
79
- | (String buffer, Hash[String, Array[Rack::Test::UploadedFile] | String] parameters) -> File
80
- | (String buffer, Hash[String, String | Rack::Test::UploadedFile] parameters) -> File
81
- | (String buffer, Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile]] | Array[String]] parameters) -> singleton(Object)
82
- | (String buffer, Hash[String, Array[Rack::Test::UploadedFile | String]] parameters) -> File
83
- | (String buffer, Hash[String, untyped] parameters) -> bool
84
- | (String buffer, Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]] | Rack::Test::UploadedFile] parameters) -> File
85
- | (String buffer, Hash[String, Array[Hash[String, String]] | String] parameters) -> Array[Array[String] | Array[Hash[String, String]]]
86
- | (String buffer, Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile] | Hash[String, Array[String] | String]]] parameters) -> singleton(Object)
87
- | (String buffer, Hash[String, Array[String] | String] parameters) -> Array[Array[String]]
88
- | (String buffer, Hash[String, Array[Hash[String, String]] | Rack::Test::UploadedFile] parameters) -> File
89
- | (String buffer, Hash[String, Array[Hash[String, Rack::Test::UploadedFile | String]] | Array[String]] parameters) -> singleton(Object)
90
- | (String buffer, Hash[String, Array[Hash[String, Array[String] | String]]] parameters) -> Array[Array[Hash[String, Array[String] | String]]]
91
-
92
- private def build_parts: (String buffer, Hash[String, Array[Rack::Test::UploadedFile]] parameters) -> singleton(Object)
93
- | (String buffer, Hash[String, String] parameters) -> String
94
- | (String buffer, Hash[String, Rack::Test::UploadedFile | String] parameters) -> singleton(Object)
95
- | (String buffer, Hash[String, Rack::Test::UploadedFile] parameters) -> singleton(Object)
96
- | (String buffer, Hash[String, Array[String] | Rack::Test::UploadedFile] parameters) -> singleton(Object)
97
- | (String buffer, Hash[String, Array[Rack::Test::UploadedFile] | String] parameters) -> singleton(Object)
98
- | (String buffer, Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile]] | Array[String]] parameters) -> bool
99
- | (String buffer, Hash[String, Array[Rack::Test::UploadedFile | String]] parameters) -> singleton(Object)
100
- | (String buffer, Hash[String, String | Rack::Test::UploadedFile] parameters) -> singleton(Object)
101
- | (String buffer, Hash[String, untyped] parameters) -> bool
102
- | (String buffer, Hash[String, Array[Hash[String, String] | Hash[String, Array[Hash[String, String]] | String]] | Rack::Test::UploadedFile] parameters) -> singleton(Object)
103
- | (String buffer, Hash[String, Array[Hash[String, String | Rack::Test::UploadedFile] | Hash[String, Array[String] | String]]] parameters) -> bool
104
- | (String buffer, Hash[String, Array[Hash[String, String]] | Rack::Test::UploadedFile] parameters) -> singleton(Object)
105
- | (String buffer, Hash[String, Array[Hash[String, Rack::Test::UploadedFile | String]] | Array[String]] parameters) -> bool
106
- | (String buffer, Hash[String, Array[Hash[String, Array[String] | String]]] parameters) -> String
107
-
108
- private def build_file_part: (String buffer, String parameter_name, Rack::Test::UploadedFile uploaded_file) -> String
109
- | (String buffer, String parameter_name, untyped uploaded_file) -> String
110
-
111
- private def build_primitive_part: (String buffer, String parameter_name, String value) -> String
112
- end
@@ -1,3 +0,0 @@
1
- module Rack::Test
2
- def self.encoding_aware_strings?: () -> String
3
- end
@@ -1,11 +0,0 @@
1
- module Orthoses
2
- class Simple
3
- def initialize(loader)
4
- @loader = loader
5
- end
6
-
7
- def call
8
- @loader.call
9
- end
10
- end
11
- end
@@ -1,7 +0,0 @@
1
- module Orthoses
2
- class Simple
3
- @loader: Orthoses::_Call
4
- include Orthoses::_MiddleWare
5
- def initialize: (Orthoses::_Call loader) -> void
6
- end
7
- end
data/orthoses.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/orthoses/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "orthoses"
7
- spec.version = Orthoses::VERSION
8
- spec.authors = ["ksss"]
9
- spec.email = ["co000ri@gmail.com"]
10
-
11
- spec.summary = "Framework for Generate RBS"
12
- spec.description = "Build RBS by Rack base architecture"
13
- spec.homepage = "https://github.com/ksss/orthoses"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
-
20
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
- `git ls-files -z`.split("\x0").reject do |f|
22
- next true if (f == __FILE__)
23
- next true if f.match?(%r{\A(?:bin|known_sig)/}) # dir
24
- next true if f.match?(%r{\A\.(?:git)}) # git
25
- next true if f.match?(%r{\A(?:rbs_collection|Steepfile|Rakefile)}) # top file
26
- next true if f.match?(%r{_test\.rb\z}) # test
27
- false
28
- end
29
- end
30
-
31
- spec.bindir = "exe"
32
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33
- spec.require_paths = ["lib"]
34
-
35
- spec.add_dependency "rbs", "~> 3.0"
36
- end