js-routes 2.3.7 → 2.4.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +112 -0
- data/Readme.md +51 -1
- data/lib/js_routes/configuration.rb +62 -5
- data/lib/js_routes/generators/base.rb +5 -4
- data/lib/js_routes/instance.rb +99 -29
- data/lib/js_routes/route.rb +39 -7
- data/lib/js_routes/utils.rb +6 -1
- data/lib/js_routes/version.rb +1 -1
- data/lib/js_routes.rb +11 -1
- data/lib/router.d.ts +63 -0
- data/lib/router.js +449 -0
- data/lib/router.ts +665 -0
- data/lib/routes.d.ts +1 -78
- data/lib/routes.js +101 -502
- data/lib/routes.ts +121 -703
- data/lib/templates/initializer.rb +12 -2
- metadata +9 -9
|
@@ -15,13 +15,23 @@ JsRoutes.setup do |c|
|
|
|
15
15
|
# c.camel_case = true
|
|
16
16
|
|
|
17
17
|
# Generate only helpers that match specific pattern.
|
|
18
|
-
# c.exclude = /^api_/
|
|
19
|
-
# c.include = /^admin_/
|
|
18
|
+
# c.exclude = [ /^api_/ ]
|
|
19
|
+
# c.include = [ /^admin_/ ]
|
|
20
20
|
|
|
21
21
|
# Generate `*_url` helpers besides `*_path`
|
|
22
22
|
# for apps that work on multiple domains.
|
|
23
23
|
# c.url_links = true
|
|
24
24
|
|
|
25
|
+
# Setup default URL options similar to rails equivalent.
|
|
26
|
+
# c.default_url_options = {
|
|
27
|
+
# host: 'example.com', protocol: 'https', format: 'json'
|
|
28
|
+
# }
|
|
29
|
+
|
|
30
|
+
# Omit query parameters whose value is undefined.
|
|
31
|
+
# This option is transitional to introduce new behaviour to old apps.
|
|
32
|
+
# Recommended to stay false for new apps.
|
|
33
|
+
c.include_undefined_query_parameters = false
|
|
34
|
+
|
|
25
35
|
# More options:
|
|
26
36
|
# @see https://github.com/railsware/js-routes#available-options
|
|
27
37
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: js-routes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bogdan Gusiev
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: railties
|
|
@@ -132,6 +131,9 @@ files:
|
|
|
132
131
|
- lib/js_routes/types.rb
|
|
133
132
|
- lib/js_routes/utils.rb
|
|
134
133
|
- lib/js_routes/version.rb
|
|
134
|
+
- lib/router.d.ts
|
|
135
|
+
- lib/router.js
|
|
136
|
+
- lib/router.ts
|
|
135
137
|
- lib/routes.d.ts
|
|
136
138
|
- lib/routes.js
|
|
137
139
|
- lib/routes.ts
|
|
@@ -144,12 +146,11 @@ licenses:
|
|
|
144
146
|
- MIT
|
|
145
147
|
metadata:
|
|
146
148
|
bug_tracker_uri: https://github.com/railsware/js-routes/issues
|
|
147
|
-
changelog_uri: https://github.com/railsware/js-routes/blob/v2.
|
|
149
|
+
changelog_uri: https://github.com/railsware/js-routes/blob/v2.4.1/CHANGELOG.md
|
|
148
150
|
documentation_uri: https://github.com/railsware/js-routes
|
|
149
|
-
source_code_uri: https://github.com/railsware/js-routes/tree/v2.
|
|
151
|
+
source_code_uri: https://github.com/railsware/js-routes/tree/v2.4.1
|
|
150
152
|
rubygems_mfa_required: 'true'
|
|
151
153
|
github_repo: ssh://github.com/railsware/js-routes
|
|
152
|
-
post_install_message:
|
|
153
154
|
rdoc_options: []
|
|
154
155
|
require_paths:
|
|
155
156
|
- lib
|
|
@@ -157,15 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
157
158
|
requirements:
|
|
158
159
|
- - ">="
|
|
159
160
|
- !ruby/object:Gem::Version
|
|
160
|
-
version: 2.
|
|
161
|
+
version: '2.7'
|
|
161
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
163
|
requirements:
|
|
163
164
|
- - ">="
|
|
164
165
|
- !ruby/object:Gem::Version
|
|
165
166
|
version: '0'
|
|
166
167
|
requirements: []
|
|
167
|
-
rubygems_version:
|
|
168
|
-
signing_key:
|
|
168
|
+
rubygems_version: 4.0.10
|
|
169
169
|
specification_version: 4
|
|
170
170
|
summary: Brings Rails named routes to javascript
|
|
171
171
|
test_files: []
|