js-routes 2.2.3 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.js +1 -1
- data/.github/workflows/ci.yml +36 -0
- data/Appraisals +2 -4
- data/CHANGELOG.md +7 -0
- data/Readme.md +50 -43
- data/gemfiles/rails50_sprockets_3.gemfile +1 -1
- data/gemfiles/rails51_sprockets_3.gemfile +1 -1
- data/gemfiles/rails52_sprockets_3.gemfile +1 -1
- data/gemfiles/rails70_sprockets_4.gemfile +8 -0
- data/lib/js_routes/engine.rb +6 -1
- data/lib/js_routes/generators/middleware.rb +1 -1
- data/lib/js_routes/instance.rb +2 -2
- data/lib/js_routes/middleware.rb +6 -2
- data/lib/js_routes/version.rb +1 -1
- data/lib/routes.d.ts +2 -0
- data/lib/routes.js +23 -5
- data/lib/routes.ts +34 -17
- data/package.json +7 -6
- data/spec/js_routes/default_serializer_spec.rb +5 -5
- data/spec/js_routes/module_types/amd_spec.rb +3 -3
- data/spec/js_routes/module_types/cjs_spec.rb +1 -1
- data/spec/js_routes/module_types/dts/routes.spec.d.ts +2 -0
- data/spec/js_routes/module_types/dts_spec.rb +1 -1
- data/spec/js_routes/module_types/esm_spec.rb +2 -2
- data/spec/js_routes/module_types/nil_spec.rb +7 -7
- data/spec/js_routes/module_types/umd_spec.rb +1 -1
- data/spec/js_routes/options_spec.rb +81 -81
- data/spec/js_routes/rails_routes_compatibility_spec.rb +127 -138
- data/spec/js_routes/route_specification_spec.rb +40 -0
- data/spec/js_routes/zzz_last_post_rails_init_spec.rb +8 -2
- data/spec/spec_helper.rb +5 -5
- data/yarn.lock +760 -448
- metadata +6 -10
- data/.travis.yml +0 -67
- data/gemfiles/rails40_sprockets_2.gemfile +0 -8
- data/gemfiles/rails40_sprockets_3.gemfile +0 -8
- data/gemfiles/rails41_sprockets_2.gemfile +0 -8
- data/gemfiles/rails41_sprockets_3.gemfile +0 -8
- data/gemfiles/rails42_sprockets_2.gemfile +0 -8
- data/gemfiles/rails42_sprockets_3.gemfile +0 -8
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Gusiev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -146,10 +146,10 @@ extra_rdoc_files:
|
|
146
146
|
files:
|
147
147
|
- ".document"
|
148
148
|
- ".eslintrc.js"
|
149
|
+
- ".github/workflows/ci.yml"
|
149
150
|
- ".gitignore"
|
150
151
|
- ".nvmrc"
|
151
152
|
- ".rspec"
|
152
|
-
- ".travis.yml"
|
153
153
|
- Appraisals
|
154
154
|
- CHANGELOG.md
|
155
155
|
- Gemfile
|
@@ -158,15 +158,10 @@ files:
|
|
158
158
|
- Readme.md
|
159
159
|
- VERSION_2_UPGRADE.md
|
160
160
|
- app/assets/javascripts/js-routes.js.erb
|
161
|
-
- gemfiles/rails40_sprockets_2.gemfile
|
162
|
-
- gemfiles/rails40_sprockets_3.gemfile
|
163
|
-
- gemfiles/rails41_sprockets_2.gemfile
|
164
|
-
- gemfiles/rails41_sprockets_3.gemfile
|
165
|
-
- gemfiles/rails42_sprockets_2.gemfile
|
166
|
-
- gemfiles/rails42_sprockets_3.gemfile
|
167
161
|
- gemfiles/rails50_sprockets_3.gemfile
|
168
162
|
- gemfiles/rails51_sprockets_3.gemfile
|
169
163
|
- gemfiles/rails52_sprockets_3.gemfile
|
164
|
+
- gemfiles/rails70_sprockets_4.gemfile
|
170
165
|
- js-routes.gemspec
|
171
166
|
- lib/js-routes.rb
|
172
167
|
- lib/js_routes.rb
|
@@ -200,6 +195,7 @@ files:
|
|
200
195
|
- spec/js_routes/module_types/umd_spec.rb
|
201
196
|
- spec/js_routes/options_spec.rb
|
202
197
|
- spec/js_routes/rails_routes_compatibility_spec.rb
|
198
|
+
- spec/js_routes/route_specification_spec.rb
|
203
199
|
- spec/js_routes/zzz_last_post_rails_init_spec.rb
|
204
200
|
- spec/spec_helper.rb
|
205
201
|
- spec/support/routes.rb
|
@@ -225,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
221
|
- !ruby/object:Gem::Version
|
226
222
|
version: '0'
|
227
223
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
224
|
+
rubygems_version: 3.3.7
|
229
225
|
signing_key:
|
230
226
|
specification_version: 4
|
231
227
|
summary: Brings Rails named routes to javascript
|
data/.travis.yml
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
|
4
|
-
before_install:
|
5
|
-
- gem install bundler # need for jruby and ruby-head
|
6
|
-
|
7
|
-
rvm:
|
8
|
-
- 2.4.1
|
9
|
-
- 2.5.3
|
10
|
-
- 2.6.0
|
11
|
-
- ruby-head
|
12
|
-
- jruby
|
13
|
-
|
14
|
-
gemfile:
|
15
|
-
- gemfiles/rails40_sprockets_2.gemfile
|
16
|
-
- gemfiles/rails40_sprockets_3.gemfile
|
17
|
-
- gemfiles/rails41_sprockets_2.gemfile
|
18
|
-
- gemfiles/rails41_sprockets_3.gemfile
|
19
|
-
- gemfiles/rails42_sprockets_2.gemfile
|
20
|
-
- gemfiles/rails42_sprockets_3.gemfile
|
21
|
-
- gemfiles/rails50_sprockets_3.gemfile
|
22
|
-
- gemfiles/rails51_sprockets_3.gemfile
|
23
|
-
- gemfiles/rails52_sprockets_3.gemfile
|
24
|
-
env:
|
25
|
-
TRAVIS_CI: true
|
26
|
-
|
27
|
-
sudo: false
|
28
|
-
dist: xenial
|
29
|
-
|
30
|
-
notifications:
|
31
|
-
email:
|
32
|
-
- agresso@gmail.com
|
33
|
-
|
34
|
-
branches:
|
35
|
-
only:
|
36
|
-
- master
|
37
|
-
|
38
|
-
matrix:
|
39
|
-
fast_finish: true
|
40
|
-
allow_failures:
|
41
|
-
- rvm: ruby-head
|
42
|
-
- rvm: jruby
|
43
|
-
exclude:
|
44
|
-
- rvm: 2.6.0
|
45
|
-
gemfile: gemfiles/rails40_sprockets_2.gemfile # Segmentation fault
|
46
|
-
- rvm: 2.6.0
|
47
|
-
gemfile: gemfiles/rails40_sprockets_3.gemfile # Segmentation fault
|
48
|
-
- rvm: 2.6.0
|
49
|
-
gemfile: gemfiles/rails41_sprockets_2.gemfile # Segmentation fault
|
50
|
-
- rvm: 2.6.0
|
51
|
-
gemfile: gemfiles/rails41_sprockets_3.gemfile # Segmentation fault
|
52
|
-
- rvm: 2.5.3
|
53
|
-
gemfile: gemfiles/rails40_sprockets_2.gemfile # Segmentation fault
|
54
|
-
- rvm: 2.5.3
|
55
|
-
gemfile: gemfiles/rails40_sprockets_3.gemfile # Segmentation fault
|
56
|
-
- rvm: 2.5.3
|
57
|
-
gemfile: gemfiles/rails41_sprockets_2.gemfile # Segmentation fault
|
58
|
-
- rvm: 2.5.3
|
59
|
-
gemfile: gemfiles/rails41_sprockets_3.gemfile # Segmentation fault
|
60
|
-
- rvm: 2.4.1
|
61
|
-
gemfile: gemfiles/rails40_sprockets_2.gemfile # Segmentation fault
|
62
|
-
- rvm: 2.4.1
|
63
|
-
gemfile: gemfiles/rails40_sprockets_3.gemfile # Segmentation fault
|
64
|
-
- rvm: 2.4.1
|
65
|
-
gemfile: gemfiles/rails41_sprockets_2.gemfile # Segmentation fault
|
66
|
-
- rvm: 2.4.1
|
67
|
-
gemfile: gemfiles/rails41_sprockets_3.gemfile # Segmentation fault
|