js_rails_routes 0.10.1 → 1.1.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +43 -0
- data/.rubocop.yml +4 -1
- data/.rubocop_todo.yml +7 -0
- data/CHANGELOG.md +18 -1
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/js_rails_routes.gemspec +8 -7
- data/lib/js_rails_routes/configuration.rb +2 -2
- data/lib/js_rails_routes/generator.rb +5 -1
- data/lib/js_rails_routes/language/base.rb +1 -1
- data/lib/js_rails_routes/language/javascript.rb +5 -4
- data/lib/js_rails_routes/language/typescript.rb +1 -1
- data/lib/js_rails_routes/version.rb +1 -1
- data/spec/js_rails_routes/builder_spec.rb +1 -1
- data/spec/js_rails_routes/configuration_spec.rb +8 -8
- data/spec/js_rails_routes/generator_spec.rb +2 -2
- data/spec/js_rails_routes/language/javascript_spec.rb +1 -1
- data/spec/js_rails_routes/language/typescript_spec.rb +1 -1
- data/spec/js_rails_routes/route_set_spec.rb +5 -1
- data/spec/js_rails_routes_spec.rb +6 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/support/test_app.rb +1 -2
- metadata +68 -19
- data/.codeclimate.yml +0 -16
- data/.travis.yml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c11d8e6af1565c2c53a41fae11b7f802862abdc0fdf025d91c55b06718b69f42
|
4
|
+
data.tar.gz: 44d767c56274bf63c53d241dfd84feb1f2bac1e56f59e68d8b28ff3e6852ec98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba97b9bb129f473f3c50fb5bd4fc5804c95c77ae48a5acf34d6b02dd8fe5f8250af895915f3d834feb69a7878d3e01bb376fec2b6b85c4f1ca93d6c831e687bc
|
7
|
+
data.tar.gz: 9ad1938f061504f09dd194e991a352dcee227d07f6a6be2cfc633ed6b558386898e71fae6345f4a58c2622092a4a93dc2b2ea4f7cc37846a84a4c4039b40fb46
|
@@ -0,0 +1,43 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
workflow_dispatch:
|
9
|
+
|
10
|
+
permissions:
|
11
|
+
contents: read
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
os: ['ubuntu-18.04', 'ubuntu-latest', 'macos-latest']
|
19
|
+
ruby: [2.6, 2.7, 3.0, 3.1]
|
20
|
+
experimental: [false]
|
21
|
+
include:
|
22
|
+
- os: 'ubuntu-latest'
|
23
|
+
ruby: 'head'
|
24
|
+
experimental: true
|
25
|
+
runs-on: ${{ matrix.os }}
|
26
|
+
continue-on-error: ${{ matrix.experimental }}
|
27
|
+
steps:
|
28
|
+
- name: Get branch names
|
29
|
+
id: branch-name
|
30
|
+
uses: tj-actions/branch-names@v4.9
|
31
|
+
- uses: actions/checkout@v2
|
32
|
+
- uses: ruby/setup-ruby@v1
|
33
|
+
with:
|
34
|
+
ruby-version: ${{ matrix.ruby }}
|
35
|
+
bundler-cache: true
|
36
|
+
- name: Test & publish code coverage
|
37
|
+
uses: paambaati/codeclimate-action@v2.7.5
|
38
|
+
env:
|
39
|
+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
40
|
+
GIT_BRANCH: ${{ steps.branch-name.outputs.current_branch }}
|
41
|
+
GIT_COMMIT_SHA: ${{ github.sha }}
|
42
|
+
with:
|
43
|
+
coverageCommand: bundle exec rake
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-05-10 07:01:52 UTC using RuboCop version 1.27.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,22 @@ This change log adheres to [keepachangelog.com](http://keepachangelog.com).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.0] - 2024-02-09
|
10
|
+
### Changed
|
11
|
+
- Add eslint-disable comment not to affect eslint format
|
12
|
+
- Update generated scripts to adopt eslint rule
|
13
|
+
|
14
|
+
## [1.0.0] - 2022-05-13
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- Remove codeclimate and execute rubocop in github actions
|
18
|
+
- Update corporate name from Increments Inc. to Qiita Inc.
|
19
|
+
- Update gem authors and emails in gemspec file
|
20
|
+
- Change ci from travis.ci to github actions
|
21
|
+
- Drop supporting legacy Ruby versions
|
22
|
+
- Add supporting new ruby versions
|
23
|
+
- Depend on rails >= 6.0
|
24
|
+
|
9
25
|
## [0.10.1] - 2020-03-09
|
10
26
|
### Fixed
|
11
27
|
- Improved TypeScript typing
|
@@ -78,7 +94,8 @@ This change log adheres to [keepachangelog.com](http://keepachangelog.com).
|
|
78
94
|
### Added
|
79
95
|
- Implement "js:rails:routes" task
|
80
96
|
|
81
|
-
[Unreleased]: https://github.com/increments/js_rails_routes/compare/
|
97
|
+
[Unreleased]: https://github.com/increments/js_rails_routes/compare/v1.0.0...HEAD
|
98
|
+
[1.0.0]: https://github.com/increments/js_rails_routes/compare/v0.10.1...v1.0.0
|
82
99
|
[0.10.1]: https://github.com/increments/js_rails_routes/compare/v0.10.0...v0.10.1
|
83
100
|
[0.10.0]: https://github.com/increments/js_rails_routes/compare/v0.9.0...v0.10.0
|
84
101
|
[0.9.0]: https://github.com/increments/js_rails_routes/compare/v0.8.1...v0.9.0
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# rake js:routes
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/js_rails_routes)
|
4
|
-
|
4
|
+

|
5
5
|
[](https://codeclimate.com/github/increments/js_rails_routes)
|
6
6
|
[](https://codeclimate.com/github/increments/js_rails_routes/coverage)
|
7
7
|
[](https://github.com/increments/js_rails_routes/blob/master/LICENSE)
|
@@ -38,7 +38,7 @@ then `rake js:routes` generates "app/assets/javascripts/rails-routes.js" as:
|
|
38
38
|
// Don't edit manually. `rake js:routes` generates this file.
|
39
39
|
function process(route, params, keys) {
|
40
40
|
var query = [];
|
41
|
-
for (var param in params) if (
|
41
|
+
for (var param in params) if (Object.prototype.hasOwnProperty.call(params, param)) {
|
42
42
|
if (keys.indexOf(param) === -1) {
|
43
43
|
query.push(param + "=" + encodeURIComponent(params[param]));
|
44
44
|
}
|
data/js_rails_routes.gemspec
CHANGED
@@ -7,21 +7,22 @@ require 'js_rails_routes/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'js_rails_routes'
|
9
9
|
spec.version = JSRailsRoutes::VERSION
|
10
|
-
spec.authors = ['
|
11
|
-
spec.email = ['
|
10
|
+
spec.authors = ['Qiita Inc.']
|
11
|
+
spec.email = ['engineers@qiita.com']
|
12
12
|
spec.summary = 'Generate a ES6 module that contains Rails routes.'
|
13
13
|
spec.homepage = 'https://github.com/increments/js_rails_routes'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
16
16
|
spec.require_paths = ['lib']
|
17
|
-
spec.required_ruby_version = '>= 2.
|
17
|
+
spec.required_ruby_version = '>= 2.6.0'
|
18
18
|
|
19
|
-
spec.add_dependency 'rails', '>=
|
19
|
+
spec.add_dependency 'rails', '>= 6.0'
|
20
20
|
spec.add_development_dependency 'bundler', '>= 1.16'
|
21
21
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
|
22
22
|
spec.add_development_dependency 'rake', '~> 12.3'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.8'
|
24
|
-
spec.add_development_dependency 'rubocop', '~>
|
25
|
-
spec.add_development_dependency 'rubocop-rspec', '~>
|
26
|
-
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
24
|
+
spec.add_development_dependency 'rubocop', '~> 1.27.0'
|
25
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
|
26
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1', '!= 0.18.0', '!= 0.18.1', '!= 0.18.2', '!= 0.18.3', '!= 0.18.4', '!= 0.18.5', '!= 0.19.0', '!= 0.19.1' # rubocop:disable Metrics/LineLength
|
27
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
27
28
|
end
|
@@ -13,7 +13,7 @@ module JSRailsRoutes
|
|
13
13
|
:route_filter,
|
14
14
|
:route_set_filter
|
15
15
|
|
16
|
-
def initialize
|
16
|
+
def initialize # rubocop:disable Metrics/AbcSize
|
17
17
|
self.include_paths = /.*/
|
18
18
|
self.exclude_paths = /^$/
|
19
19
|
self.include_names = /.*/
|
@@ -27,7 +27,7 @@ module JSRailsRoutes
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param env [Hash{String=>String}]
|
30
|
-
def configure_with_env_vars(env = ENV)
|
30
|
+
def configure_with_env_vars(env = ENV) # rubocop:disable Metrics/AbcSize
|
31
31
|
%w[include_paths exclude_paths include_names exclude_names exclude_engines].each do |name|
|
32
32
|
public_send("#{name}=", Regexp.new(env[name])) if env[name]
|
33
33
|
end
|
@@ -17,7 +17,11 @@ module JSRailsRoutes
|
|
17
17
|
def generate(task)
|
18
18
|
builder.build.each do |artifact|
|
19
19
|
file_name = File.join(config.output_dir, artifact.file_name)
|
20
|
-
file_body =
|
20
|
+
file_body = <<~FILE_BODY.chomp
|
21
|
+
/* eslint-disable */
|
22
|
+
// Don't edit manually. `rake #{task}` generates this file.
|
23
|
+
#{artifact.body}
|
24
|
+
FILE_BODY
|
21
25
|
writable.write(file_name, file_body)
|
22
26
|
end
|
23
27
|
end
|
@@ -9,7 +9,7 @@ module JSRailsRoutes
|
|
9
9
|
PROCESS_FUNC = <<~JAVASCRIPT
|
10
10
|
function process(route, params, keys) {
|
11
11
|
var query = [];
|
12
|
-
for (var param in params) if (
|
12
|
+
for (var param in params) if (Object.prototype.hasOwnProperty.call(params, param)) {
|
13
13
|
if (keys.indexOf(param) === -1) {
|
14
14
|
query.push(param + "=" + encodeURIComponent(params[param]));
|
15
15
|
}
|
@@ -20,9 +20,10 @@ module JSRailsRoutes
|
|
20
20
|
|
21
21
|
# @note Implementation for {JSRailsRoutes::Language::Base#generate}
|
22
22
|
def handle_route_set(routes)
|
23
|
-
routes.each_with_object([self.class::PROCESS_FUNC]) do |route, lines|
|
23
|
+
set = routes.each_with_object([self.class::PROCESS_FUNC]) do |route, lines|
|
24
24
|
lines.push(handle_route(route))
|
25
|
-
end.join("\n")
|
25
|
+
end.join("\n")
|
26
|
+
"#{set}\n"
|
26
27
|
end
|
27
28
|
|
28
29
|
# @param route [JSRailsRoutes::Route]
|
@@ -56,7 +57,7 @@ module JSRailsRoutes
|
|
56
57
|
# @param route_name [String]
|
57
58
|
# @return [String]
|
58
59
|
def function_name(route_name)
|
59
|
-
url_helper_name = route_name
|
60
|
+
url_helper_name = "#{route_name}_path"
|
60
61
|
config.camelize.nil? ? url_helper_name : url_helper_name.camelize(config.camelize)
|
61
62
|
end
|
62
63
|
|
@@ -12,7 +12,7 @@ module JSRailsRoutes
|
|
12
12
|
function process(route: string, params: Record<string, Value> | undefined, keys: string[]): string {
|
13
13
|
if (!params) return route
|
14
14
|
var query: string[] = [];
|
15
|
-
for (var param in params) if (
|
15
|
+
for (var param in params) if (Object.prototype.hasOwnProperty.call(params, param)) {
|
16
16
|
if (keys.indexOf(param) === -1) {
|
17
17
|
query.push(param + "=" + encodeURIComponent(params[param].toString()));
|
18
18
|
}
|
@@ -5,7 +5,7 @@ RSpec.describe JSRailsRoutes::Builder do
|
|
5
5
|
|
6
6
|
include_context 'run in a sandbox'
|
7
7
|
|
8
|
-
let(:language) { instance_double(
|
8
|
+
let(:language) { instance_double(JSRailsRoutes::Language::Base, handle_route_set: body, ext: %w[js ts].sample) }
|
9
9
|
let(:body) { 'hello' }
|
10
10
|
let(:route_set_list) { [rails_route_set, engine_route_set] }
|
11
11
|
|
@@ -7,7 +7,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
7
7
|
subject { config.configure_with_env_vars(env) }
|
8
8
|
|
9
9
|
context 'with empty env' do
|
10
|
-
let(:env) {
|
10
|
+
let(:env) { {} }
|
11
11
|
|
12
12
|
it 'does not change' do
|
13
13
|
expect { subject }.to not_change(config, :include_paths)
|
@@ -21,7 +21,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
context 'with include_paths env' do
|
24
|
-
let(:env) {
|
24
|
+
let(:env) { { 'include_paths' => 'a' } }
|
25
25
|
|
26
26
|
it 'changes #include_paths' do
|
27
27
|
expect { subject }.to change(config, :include_paths).to eq(/a/)
|
@@ -29,7 +29,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
29
29
|
end
|
30
30
|
|
31
31
|
context 'with exclude_paths env' do
|
32
|
-
let(:env) {
|
32
|
+
let(:env) { { 'exclude_paths' => 'a' } }
|
33
33
|
|
34
34
|
it 'changes #exclude_paths' do
|
35
35
|
expect { subject }.to change(config, :exclude_paths).to eq(/a/)
|
@@ -37,7 +37,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
context 'with include_names env' do
|
40
|
-
let(:env) {
|
40
|
+
let(:env) { { 'include_names' => 'a' } }
|
41
41
|
|
42
42
|
it 'changes #include_names' do
|
43
43
|
expect { subject }.to change(config, :include_names).to eq(/a/)
|
@@ -45,7 +45,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
context 'with exclude_names env' do
|
48
|
-
let(:env) {
|
48
|
+
let(:env) { { 'exclude_names' => 'a' } }
|
49
49
|
|
50
50
|
it 'changes #exclude_names' do
|
51
51
|
expect { subject }.to change(config, :exclude_names).to eq(/a/)
|
@@ -53,7 +53,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
context 'with exclude_engines env' do
|
56
|
-
let(:env) {
|
56
|
+
let(:env) { { 'exclude_engines' => 'a' } }
|
57
57
|
|
58
58
|
it 'changes #exclude_engines' do
|
59
59
|
expect { subject }.to change(config, :exclude_engines).to eq(/a/)
|
@@ -61,7 +61,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
context 'with output_dir env' do
|
64
|
-
let(:env) {
|
64
|
+
let(:env) { { 'output_dir' => 'path' } }
|
65
65
|
|
66
66
|
it 'changes #output_dir' do
|
67
67
|
expect { subject }.to change(config, :output_dir).to eq 'path'
|
@@ -69,7 +69,7 @@ RSpec.describe JSRailsRoutes::Configuration do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
context 'with camelize env' do
|
72
|
-
let(:env) {
|
72
|
+
let(:env) { { 'camelize' => 'lower' } }
|
73
73
|
|
74
74
|
it 'changes #camelize' do
|
75
75
|
expect { subject }.to change(config, :camelize).to eq :lower
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
RSpec.describe JSRailsRoutes::Generator do
|
4
|
-
include_context 'run in a sandbox'
|
5
|
-
|
6
4
|
subject(:generator) { described_class.new(builder, writable: writable) }
|
7
5
|
|
6
|
+
include_context 'run in a sandbox'
|
7
|
+
|
8
8
|
let(:writable) { spy('writable') }
|
9
9
|
let(:builder) { double('builder', build: result) }
|
10
10
|
let(:result) do
|
@@ -12,7 +12,7 @@ RSpec.describe JSRailsRoutes::Language::JavaScript do
|
|
12
12
|
expect(subject).to eq <<~JAVASCRIPT
|
13
13
|
function process(route, params, keys) {
|
14
14
|
var query = [];
|
15
|
-
for (var param in params) if (
|
15
|
+
for (var param in params) if (Object.prototype.hasOwnProperty.call(params, param)) {
|
16
16
|
if (keys.indexOf(param) === -1) {
|
17
17
|
query.push(param + "=" + encodeURIComponent(params[param]));
|
18
18
|
}
|
@@ -15,7 +15,7 @@ RSpec.describe JSRailsRoutes::Language::TypeScript do
|
|
15
15
|
function process(route: string, params: Record<string, Value> | undefined, keys: string[]): string {
|
16
16
|
if (!params) return route
|
17
17
|
var query: string[] = [];
|
18
|
-
for (var param in params) if (
|
18
|
+
for (var param in params) if (Object.prototype.hasOwnProperty.call(params, param)) {
|
19
19
|
if (keys.indexOf(param) === -1) {
|
20
20
|
query.push(param + "=" + encodeURIComponent(params[param].toString()));
|
21
21
|
}
|
@@ -78,7 +78,11 @@ RSpec.describe JSRailsRoutes::RouteSet do
|
|
78
78
|
end
|
79
79
|
|
80
80
|
context 'when routes are empty' do
|
81
|
-
|
81
|
+
let(:routes) do
|
82
|
+
ActionDispatch::Routing::RouteSet.new.tap do |routes|
|
83
|
+
routes.draw {} # rubocop:disable Lint/EmptyBlock
|
84
|
+
end
|
85
|
+
end
|
82
86
|
|
83
87
|
it { is_expected.to be false }
|
84
88
|
end
|
@@ -25,10 +25,10 @@ RSpec.describe JSRailsRoutes do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
describe '.generate' do
|
28
|
-
include_context 'run in a sandbox'
|
29
|
-
|
30
28
|
subject { described_class.generate(task) }
|
31
29
|
|
30
|
+
include_context 'run in a sandbox'
|
31
|
+
|
32
32
|
let(:task) { 'js:routes' }
|
33
33
|
let(:app_root) { JSRailsRoutes::SpecHelper::TestApp.root }
|
34
34
|
|
@@ -42,6 +42,7 @@ RSpec.describe JSRailsRoutes do
|
|
42
42
|
subject
|
43
43
|
|
44
44
|
expect(File.read(app_root.join('app/assets/javascripts/rails-routes.js'))).to eq <<~JAVASCRIPT
|
45
|
+
/* eslint-disable */
|
45
46
|
// Don't edit manually. `rake #{task}` generates this file.
|
46
47
|
#{JSRailsRoutes::Language::JavaScript::PROCESS_FUNC}
|
47
48
|
export function blogs_path(params) { return process('/blogs', params, []); }
|
@@ -55,6 +56,7 @@ RSpec.describe JSRailsRoutes do
|
|
55
56
|
JAVASCRIPT
|
56
57
|
|
57
58
|
expect(File.read(app_root.join('app/assets/javascripts/admin-routes.js'))).to eq <<~JAVASCRIPT
|
59
|
+
/* eslint-disable */
|
58
60
|
// Don't edit manually. `rake #{task}` generates this file.
|
59
61
|
#{JSRailsRoutes::Language::JavaScript::PROCESS_FUNC}
|
60
62
|
export function notes_path(params) { return process('/notes', params, []); }
|
@@ -94,6 +96,7 @@ RSpec.describe JSRailsRoutes do
|
|
94
96
|
subject
|
95
97
|
|
96
98
|
expect(File.read(app_root.join('app/assets/javascripts/rails-routes.ts'))).to eq <<~TYPESCRIPT
|
99
|
+
/* eslint-disable */
|
97
100
|
// Don't edit manually. `rake #{task}` generates this file.
|
98
101
|
#{JSRailsRoutes::Language::TypeScript::PROCESS_FUNC}
|
99
102
|
export function blogs_path(params?: Record<string, Value>) { return process('/blogs', params, []); }
|
@@ -107,6 +110,7 @@ RSpec.describe JSRailsRoutes do
|
|
107
110
|
TYPESCRIPT
|
108
111
|
|
109
112
|
expect(File.read(app_root.join('app/assets/javascripts/admin-routes.ts'))).to eq <<~TYPESCRIPT
|
113
|
+
/* eslint-disable */
|
110
114
|
// Don't edit manually. `rake #{task}` generates this file.
|
111
115
|
#{JSRailsRoutes::Language::TypeScript::PROCESS_FUNC}
|
112
116
|
export function notes_path(params?: Record<string, Value>) { return process('/notes', params, []); }
|
data/spec/spec_helper.rb
CHANGED
@@ -8,7 +8,7 @@ SimpleCov.start
|
|
8
8
|
require 'rails/all'
|
9
9
|
require 'js_rails_routes'
|
10
10
|
|
11
|
-
Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }
|
11
|
+
Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each { |f| require f }
|
12
12
|
|
13
13
|
RSpec.configure do |config|
|
14
14
|
config.expect_with :rspec do |expectations|
|
data/spec/support/test_app.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js_rails_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Qiita Inc.
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.27.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.27.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '2.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '2.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,6 +115,30 @@ dependencies:
|
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.16.1
|
118
|
+
- - "!="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.18.0
|
121
|
+
- - "!="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.18.1
|
124
|
+
- - "!="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 0.18.2
|
127
|
+
- - "!="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 0.18.3
|
130
|
+
- - "!="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.18.4
|
133
|
+
- - "!="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 0.18.5
|
136
|
+
- - "!="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.19.0
|
139
|
+
- - "!="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.19.1
|
118
142
|
type: :development
|
119
143
|
prerelease: false
|
120
144
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -122,18 +146,42 @@ dependencies:
|
|
122
146
|
- - "~>"
|
123
147
|
- !ruby/object:Gem::Version
|
124
148
|
version: 0.16.1
|
125
|
-
|
149
|
+
- - "!="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.18.0
|
152
|
+
- - "!="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.18.1
|
155
|
+
- - "!="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.18.2
|
158
|
+
- - "!="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 0.18.3
|
161
|
+
- - "!="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: 0.18.4
|
164
|
+
- - "!="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.18.5
|
167
|
+
- - "!="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 0.19.0
|
170
|
+
- - "!="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.19.1
|
173
|
+
description:
|
126
174
|
email:
|
127
|
-
-
|
175
|
+
- engineers@qiita.com
|
128
176
|
executables: []
|
129
177
|
extensions: []
|
130
178
|
extra_rdoc_files: []
|
131
179
|
files:
|
132
|
-
- ".
|
180
|
+
- ".github/workflows/test.yml"
|
133
181
|
- ".gitignore"
|
134
182
|
- ".rspec"
|
135
183
|
- ".rubocop.yml"
|
136
|
-
- ".
|
184
|
+
- ".rubocop_todo.yml"
|
137
185
|
- CHANGELOG.md
|
138
186
|
- Gemfile
|
139
187
|
- LICENSE
|
@@ -169,8 +217,9 @@ files:
|
|
169
217
|
homepage: https://github.com/increments/js_rails_routes
|
170
218
|
licenses:
|
171
219
|
- MIT
|
172
|
-
metadata:
|
173
|
-
|
220
|
+
metadata:
|
221
|
+
rubygems_mfa_required: 'true'
|
222
|
+
post_install_message:
|
174
223
|
rdoc_options: []
|
175
224
|
require_paths:
|
176
225
|
- lib
|
@@ -178,15 +227,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
227
|
requirements:
|
179
228
|
- - ">="
|
180
229
|
- !ruby/object:Gem::Version
|
181
|
-
version: 2.
|
230
|
+
version: 2.6.0
|
182
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
232
|
requirements:
|
184
233
|
- - ">="
|
185
234
|
- !ruby/object:Gem::Version
|
186
235
|
version: '0'
|
187
236
|
requirements: []
|
188
|
-
rubygems_version: 3.
|
189
|
-
signing_key:
|
237
|
+
rubygems_version: 3.4.1
|
238
|
+
signing_key:
|
190
239
|
specification_version: 4
|
191
240
|
summary: Generate a ES6 module that contains Rails routes.
|
192
241
|
test_files: []
|
data/.codeclimate.yml
DELETED