js-routes 2.2.9 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -3
- data/Readme.md +16 -15
- data/lib/js_routes/configuration.rb +7 -5
- data/lib/js_routes/generators/base.rb +6 -1
- data/lib/js_routes/generators/middleware.rb +2 -3
- data/lib/js_routes/generators/webpacker.rb +2 -1
- data/lib/js_routes/instance.rb +21 -6
- data/lib/js_routes/middleware.rb +5 -4
- data/lib/js_routes/route.rb +7 -3
- data/lib/js_routes/types.rb +10 -0
- data/lib/js_routes/utils.rb +18 -0
- data/lib/js_routes/version.rb +1 -1
- data/lib/js_routes.rb +12 -4
- data/lib/routes.d.ts +7 -6
- data/lib/routes.js +19 -18
- data/lib/routes.ts +33 -27
- data/lib/tasks/js_routes.rake +4 -2
- metadata +12 -145
- data/.document +0 -5
- data/.eslintrc.js +0 -15
- data/.github/workflows/ci.yml +0 -36
- data/.gitignore +0 -65
- data/.nvmrc +0 -1
- data/.rspec +0 -1
- data/Appraisals +0 -17
- data/Gemfile +0 -9
- data/Rakefile +0 -37
- data/VERSION_2_UPGRADE.md +0 -66
- data/bin/tapioca +0 -27
- data/gemfiles/rails50_sprockets_3.gemfile +0 -8
- data/gemfiles/rails51_sprockets_3.gemfile +0 -8
- data/gemfiles/rails52_sprockets_3.gemfile +0 -8
- data/gemfiles/rails70_sprockets_4.gemfile +0 -8
- data/js-routes.gemspec +0 -42
- data/package.json +0 -38
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/actionpack.rbi +0 -428
- data/sorbet/rbi/annotations/actionview.rbi +0 -75
- data/sorbet/rbi/annotations/activesupport.rbi +0 -421
- data/sorbet/rbi/annotations/railties.rbi +0 -61
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actionpack@7.0.4.1.rbi +0 -303
- data/sorbet/rbi/gems/actionview@7.0.4.1.rbi +0 -8
- data/sorbet/rbi/gems/activesupport@7.0.4.1.rbi +0 -16424
- data/sorbet/rbi/gems/appraisal@2.4.1.rbi +0 -584
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -168
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3606
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
- data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +0 -11570
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +0 -145
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -2296
- data/sorbet/rbi/gems/libv8-node@16.10.0.0.rbi +0 -8
- data/sorbet/rbi/gems/loofah@2.19.1.rbi +0 -8
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
- data/sorbet/rbi/gems/mini_racer@0.6.3.rbi +0 -224
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +0 -1457
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
- data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +0 -280
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -29744
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1150
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10075
- data/sorbet/rbi/gems/racc@1.6.2.rbi +0 -150
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +0 -8
- data/sorbet/rbi/gems/rack@2.2.6.2.rbi +0 -5585
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +0 -8
- data/sorbet/rbi/gems/railties@7.0.4.1.rbi +0 -1959
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3072
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10868
- data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +0 -8100
- data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +0 -5299
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1611
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -82
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
- data/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi +0 -14
- data/sorbet/rbi/gems/sprockets@4.2.0.rbi +0 -8
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
- data/sorbet/rbi/gems/tapioca@0.12.0.rbi +0 -3510
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3956
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5914
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -428
- data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18332
- data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -8
- data/sorbet/rbi/todo.rbi +0 -31
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/assets/javascripts/.gitkeep +0 -0
- data/spec/dummy/config/routes.rb +0 -55
- data/spec/js_routes/default_serializer_spec.rb +0 -31
- data/spec/js_routes/module_types/amd_spec.rb +0 -35
- data/spec/js_routes/module_types/cjs_spec.rb +0 -15
- data/spec/js_routes/module_types/dts/routes.spec.d.ts +0 -115
- data/spec/js_routes/module_types/dts/test.spec.ts +0 -56
- data/spec/js_routes/module_types/dts_spec.rb +0 -126
- data/spec/js_routes/module_types/esm_spec.rb +0 -45
- data/spec/js_routes/module_types/nil_spec.rb +0 -87
- data/spec/js_routes/module_types/umd_spec.rb +0 -85
- data/spec/js_routes/options_spec.rb +0 -508
- data/spec/js_routes/rails_routes_compatibility_spec.rb +0 -473
- data/spec/js_routes/route_specification_spec.rb +0 -37
- data/spec/js_routes/zzz_sprockets_spec.rb +0 -152
- data/spec/spec_helper.rb +0 -135
- data/spec/support/routes.rb +0 -81
- data/spec/tsconfig.json +0 -4
- data/tsconfig.json +0 -28
- data/yarn.lock +0 -2457
@@ -1,150 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `racc` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem racc`.
|
6
|
-
|
7
|
-
# source://racc//racc/parser.rb#23
|
8
|
-
ParseError = Racc::ParseError
|
9
|
-
|
10
|
-
# source://racc//racc/info.rb#16
|
11
|
-
Racc::Copyright = T.let(T.unsafe(nil), String)
|
12
|
-
|
13
|
-
class Racc::Parser
|
14
|
-
# source://racc//racc/parser.rb#281
|
15
|
-
def _racc_do_parse_rb(arg, in_debug); end
|
16
|
-
|
17
|
-
# source://racc//racc/parser.rb#481
|
18
|
-
def _racc_do_reduce(arg, act); end
|
19
|
-
|
20
|
-
# common
|
21
|
-
#
|
22
|
-
# source://racc//racc/parser.rb#384
|
23
|
-
def _racc_evalact(act, arg); end
|
24
|
-
|
25
|
-
# source://racc//racc/parser.rb#234
|
26
|
-
def _racc_init_sysvars; end
|
27
|
-
|
28
|
-
# source://racc//racc/parser.rb#222
|
29
|
-
def _racc_setup; end
|
30
|
-
|
31
|
-
# source://racc//racc/parser.rb#331
|
32
|
-
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
|
33
|
-
|
34
|
-
# The method to fetch next token.
|
35
|
-
# If you use #do_parse method, you must implement #next_token.
|
36
|
-
#
|
37
|
-
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
38
|
-
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
39
|
-
# for 'IDENT'. ";" (String) for ';'.
|
40
|
-
#
|
41
|
-
# The final symbol (End of file) must be false.
|
42
|
-
#
|
43
|
-
# @raise [NotImplementedError]
|
44
|
-
#
|
45
|
-
# source://racc//racc/parser.rb#277
|
46
|
-
def next_token; end
|
47
|
-
|
48
|
-
# This method is called when a parse error is found.
|
49
|
-
#
|
50
|
-
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
51
|
-
# You can get string representation of this ID by calling
|
52
|
-
# #token_to_str.
|
53
|
-
#
|
54
|
-
# ERROR_VALUE is a value of error token.
|
55
|
-
#
|
56
|
-
# value_stack is a stack of symbol values.
|
57
|
-
# DO NOT MODIFY this object.
|
58
|
-
#
|
59
|
-
# This method raises ParseError by default.
|
60
|
-
#
|
61
|
-
# If this method returns, parsers enter "error recovering mode".
|
62
|
-
#
|
63
|
-
# @raise [ParseError]
|
64
|
-
#
|
65
|
-
# source://racc//racc/parser.rb#537
|
66
|
-
def on_error(t, val, vstack); end
|
67
|
-
|
68
|
-
# source://racc//racc/parser.rb#586
|
69
|
-
def racc_accept; end
|
70
|
-
|
71
|
-
# source://racc//racc/parser.rb#591
|
72
|
-
def racc_e_pop(state, tstack, vstack); end
|
73
|
-
|
74
|
-
# source://racc//racc/parser.rb#598
|
75
|
-
def racc_next_state(curstate, state); end
|
76
|
-
|
77
|
-
# source://racc//racc/parser.rb#604
|
78
|
-
def racc_print_stacks(t, v); end
|
79
|
-
|
80
|
-
# source://racc//racc/parser.rb#613
|
81
|
-
def racc_print_states(s); end
|
82
|
-
|
83
|
-
# For debugging output
|
84
|
-
#
|
85
|
-
# source://racc//racc/parser.rb#560
|
86
|
-
def racc_read_token(t, tok, val); end
|
87
|
-
|
88
|
-
# source://racc//racc/parser.rb#573
|
89
|
-
def racc_reduce(toks, sim, tstack, vstack); end
|
90
|
-
|
91
|
-
# source://racc//racc/parser.rb#567
|
92
|
-
def racc_shift(tok, tstack, vstack); end
|
93
|
-
|
94
|
-
# source://racc//racc/parser.rb#620
|
95
|
-
def racc_token2str(tok); end
|
96
|
-
|
97
|
-
# Convert internal ID of token symbol to the string.
|
98
|
-
#
|
99
|
-
# source://racc//racc/parser.rb#626
|
100
|
-
def token_to_str(t); end
|
101
|
-
|
102
|
-
# Exit parser.
|
103
|
-
# Return value is +Symbol_Value_Stack[0]+.
|
104
|
-
#
|
105
|
-
# source://racc//racc/parser.rb#550
|
106
|
-
def yyaccept; end
|
107
|
-
|
108
|
-
# Leave error recovering mode.
|
109
|
-
#
|
110
|
-
# source://racc//racc/parser.rb#555
|
111
|
-
def yyerrok; end
|
112
|
-
|
113
|
-
# Enter error recovering mode.
|
114
|
-
# This method does not call #on_error.
|
115
|
-
#
|
116
|
-
# source://racc//racc/parser.rb#544
|
117
|
-
def yyerror; end
|
118
|
-
|
119
|
-
class << self
|
120
|
-
# source://racc//racc/parser.rb#218
|
121
|
-
def racc_runtime_type; end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
# source://racc//racc/parser.rb#207
|
126
|
-
Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
|
127
|
-
|
128
|
-
# source://racc//racc/parser.rb#209
|
129
|
-
Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
|
130
|
-
|
131
|
-
# source://racc//racc/parser.rb#189
|
132
|
-
Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
|
133
|
-
|
134
|
-
# source://racc//racc/parser.rb#210
|
135
|
-
Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
|
136
|
-
|
137
|
-
# source://racc//racc/parser.rb#188
|
138
|
-
Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
|
139
|
-
|
140
|
-
# source://racc//racc/parser.rb#208
|
141
|
-
Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
|
142
|
-
|
143
|
-
# source://racc//racc/parser.rb#183
|
144
|
-
Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
|
145
|
-
|
146
|
-
# source://racc//racc/info.rb#14
|
147
|
-
Racc::VERSION = T.let(T.unsafe(nil), String)
|
148
|
-
|
149
|
-
# source://racc//racc/info.rb#15
|
150
|
-
Racc::Version = T.let(T.unsafe(nil), String)
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `rack-test` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rack-test`.
|
6
|
-
|
7
|
-
# THIS IS AN EMPTY RBI FILE.
|
8
|
-
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|