js-routes 2.2.4 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.js +1 -1
  3. data/.github/workflows/ci.yml +36 -0
  4. data/Appraisals +2 -4
  5. data/CHANGELOG.md +6 -0
  6. data/Readme.md +54 -46
  7. data/gemfiles/rails50_sprockets_3.gemfile +1 -1
  8. data/gemfiles/rails51_sprockets_3.gemfile +1 -1
  9. data/gemfiles/rails52_sprockets_3.gemfile +1 -1
  10. data/gemfiles/rails70_sprockets_4.gemfile +8 -0
  11. data/lib/js_routes/engine.rb +6 -1
  12. data/lib/js_routes/generators/base.rb +16 -0
  13. data/lib/js_routes/generators/middleware.rb +9 -8
  14. data/lib/js_routes/generators/webpacker.rb +3 -1
  15. data/lib/js_routes/instance.rb +1 -1
  16. data/lib/js_routes/version.rb +1 -1
  17. data/lib/routes.d.ts +1 -0
  18. data/lib/routes.js +10 -3
  19. data/lib/routes.ts +22 -15
  20. data/package.json +7 -6
  21. data/spec/js_routes/default_serializer_spec.rb +1 -1
  22. data/spec/js_routes/module_types/amd_spec.rb +2 -2
  23. data/spec/js_routes/module_types/dts/routes.spec.d.ts +1 -0
  24. data/spec/js_routes/module_types/dts_spec.rb +1 -1
  25. data/spec/js_routes/module_types/umd_spec.rb +1 -1
  26. data/spec/js_routes/options_spec.rb +2 -2
  27. data/spec/js_routes/rails_routes_compatibility_spec.rb +4 -2
  28. data/spec/js_routes/route_specification_spec.rb +1 -1
  29. data/spec/js_routes/zzz_last_post_rails_init_spec.rb +8 -2
  30. data/spec/spec_helper.rb +1 -5
  31. data/yarn.lock +760 -448
  32. metadata +6 -10
  33. data/.travis.yml +0 -67
  34. data/gemfiles/rails40_sprockets_2.gemfile +0 -8
  35. data/gemfiles/rails40_sprockets_3.gemfile +0 -8
  36. data/gemfiles/rails41_sprockets_2.gemfile +0 -8
  37. data/gemfiles/rails41_sprockets_3.gemfile +0 -8
  38. data/gemfiles/rails42_sprockets_2.gemfile +0 -8
  39. 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
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-18 00:00:00.000000000 Z
11
+ date: 2023-07-05 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,20 +158,16 @@ 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
173
168
  - lib/js_routes/configuration.rb
174
169
  - lib/js_routes/engine.rb
170
+ - lib/js_routes/generators/base.rb
175
171
  - lib/js_routes/generators/middleware.rb
176
172
  - lib/js_routes/generators/webpacker.rb
177
173
  - lib/js_routes/instance.rb
@@ -226,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
222
  - !ruby/object:Gem::Version
227
223
  version: '0'
228
224
  requirements: []
229
- rubygems_version: 3.2.0
225
+ rubygems_version: 3.3.7
230
226
  signing_key:
231
227
  specification_version: 4
232
228
  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
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.0.13"
6
- gem "sprockets", "~> 2.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.0.13"
6
- gem "sprockets", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.1.16"
6
- gem "sprockets", "~> 2.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.1.16"
6
- gem "sprockets", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.2.9"
6
- gem "sprockets", "~> 2.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "railties", "~> 4.2.9"
6
- gem "sprockets", "~> 3.0"
7
-
8
- gemspec :path => "../"