js_rails_routes 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -15
- data/README.md +13 -12
- data/Rakefile +1 -1
- data/js_rails_routes.gemspec +6 -6
- data/lib/js_rails_routes/generator.rb +52 -31
- data/lib/js_rails_routes/version.rb +1 -1
- data/lib/tasks/js_rails_routes.rake +2 -2
- data/spec/js_rails_routes/generator_spec.rb +76 -26
- data/spec/spec_helper.rb +11 -2
- data/spec/tmp/.keep +0 -0
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e515560aeebfbed4c3c9e98602e99e146aaaf3c
|
4
|
+
data.tar.gz: b78e6b72b763d058d563e888eabf9db8602d8f3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8b6077597f785d6b8a3080b2a68235dd7ee254dfa983ad69fd06ec8b9ca9b2646ce340cb17d5ef821996fb610159354dd17bbdf0f9e1d0597b15712fc9c57ad
|
7
|
+
data.tar.gz: 7373315966e421c0f0c300c7e14e13fb9e21f4464187d591a745b4783dbda52356a310fbace72aa75310b1d2ea492d4d13489f0c6fc9c9d897944a5a0b8fd568
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,24 +1,9 @@
|
|
1
1
|
Metrics/LineLength:
|
2
2
|
Max: 120
|
3
3
|
|
4
|
-
Metrics/AbcSize:
|
5
|
-
Max: 20
|
6
|
-
|
7
4
|
Metrics/BlockLength:
|
8
5
|
Exclude:
|
9
6
|
- 'spec/**/*'
|
10
7
|
|
11
8
|
Style/Documentation:
|
12
9
|
Enabled: false
|
13
|
-
|
14
|
-
Style/IndentHeredoc:
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
Style/SymbolArray:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Style/TrailingCommaInLiteral:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Style/PerlBackrefs:
|
24
|
-
Enabled: false
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# rake js:routes
|
2
2
|
|
3
3
|
[![Gem](https://img.shields.io/gem/v/js_rails_routes.svg?maxAge=2592000)](https://rubygems.org/gems/js_rails_routes)
|
4
|
-
[![Build Status](https://travis-ci.org/yuku-t/js_rails_routes.svg?branch=master)](https://travis-ci.org/yuku
|
5
|
-
[![Code Climate](https://codeclimate.com/github/yuku-t/js_rails_routes/badges/gpa.svg)](https://codeclimate.com/github/yuku
|
6
|
-
[![Test Coverage](https://codeclimate.com/github/yuku-t/js_rails_routes/badges/coverage.svg)](https://codeclimate.com/github/yuku
|
7
|
-
[![license](https://img.shields.io/github/license/yuku-t/js_rails_routes.svg?maxAge=2592000)](https://github.com/yuku
|
4
|
+
[![Build Status](https://travis-ci.org/yuku-t/js_rails_routes.svg?branch=master)](https://travis-ci.org/yuku/js_rails_routes)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/yuku-t/js_rails_routes/badges/gpa.svg)](https://codeclimate.com/github/yuku/js_rails_routes)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/yuku-t/js_rails_routes/badges/coverage.svg)](https://codeclimate.com/github/yuku/js_rails_routes/coverage)
|
7
|
+
[![license](https://img.shields.io/github/license/yuku-t/js_rails_routes.svg?maxAge=2592000)](https://github.com/yuku/js_rails_routes/blob/master/LICENSE)
|
8
8
|
[![Analytics](https://ga-beacon.appspot.com/UA-4932407-14/js_rails_routes/readme)](https://github.com/igrigorik/ga-beacon)
|
9
9
|
|
10
10
|
Generate a ES6 module that contains Rails routes.
|
@@ -75,13 +75,14 @@ rake js:routes
|
|
75
75
|
|
76
76
|
JSRailsRoutes supports several parameters:
|
77
77
|
|
78
|
-
Name
|
79
|
-
|
80
|
-
`include_paths`
|
81
|
-
`exclude_paths`
|
82
|
-
`include_names`
|
83
|
-
`exclude_names`
|
84
|
-
`
|
78
|
+
Name | Type | Description | Default
|
79
|
+
------------------|----------|------------------------------------------------|----------------------------------------
|
80
|
+
`include_paths` | `Regexp` | Paths match to the regexp are included | `/.*/`
|
81
|
+
`exclude_paths` | `Regexp` | Paths match to the regexp are excluded | `/^$/`
|
82
|
+
`include_names` | `Regexp` | Names match to the regexp are included | `/.*/`
|
83
|
+
`exclude_names` | `Regexp` | Names match to the regexp are excluded | `/^$/`
|
84
|
+
`exclude_engines` | `Regexp` | Rails engines match to the regexp are excluded | `/^$/`
|
85
|
+
`output_dir` | `String` | Output JS file into the specified directory | `Rails.root.join("app", "assets", "javascripts")`
|
85
86
|
|
86
87
|
You can configure via `JSRailsRoutes.configure`.
|
87
88
|
|
@@ -89,7 +90,7 @@ You can configure via `JSRailsRoutes.configure`.
|
|
89
90
|
# Rakefile
|
90
91
|
JSRailsRoutes.configure do |c|
|
91
92
|
c.exclude_paths = %r{^/(rails|sidekiq)}
|
92
|
-
c.
|
93
|
+
c.output_dir = Rails.root.join('client/javascripts')
|
93
94
|
end
|
94
95
|
```
|
95
96
|
|
data/Rakefile
CHANGED
data/js_rails_routes.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$LOAD_PATH << File.expand_path('
|
1
|
+
$LOAD_PATH << File.expand_path('lib', __dir__)
|
2
2
|
|
3
3
|
require 'js_rails_routes/version'
|
4
4
|
|
@@ -13,10 +13,10 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.files = `git ls-files -z`.split("\x0")
|
14
14
|
spec.require_paths = ['lib']
|
15
15
|
spec.add_dependency 'rails', '>= 3.2'
|
16
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
16
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
17
17
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
|
18
|
-
spec.add_development_dependency 'rake', '~>
|
19
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
20
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
21
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
18
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
19
|
+
spec.add_development_dependency 'rspec', '~> 3.7'
|
20
|
+
spec.add_development_dependency 'rubocop', '~> 0.57.2'
|
21
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
22
22
|
end
|
@@ -4,38 +4,43 @@ module JSRailsRoutes
|
|
4
4
|
class Generator
|
5
5
|
COMPARE_REGEXP = %r{:(.*?)(/|$)}
|
6
6
|
|
7
|
-
PROCESS_FUNC = <<-JAVASCRIPT.freeze
|
8
|
-
function process(route, params, keys) {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}
|
7
|
+
PROCESS_FUNC = <<-JAVASCRIPT.strip_heredoc.freeze
|
8
|
+
function process(route, params, keys) {
|
9
|
+
var query = [];
|
10
|
+
for (var param in params) if (params.hasOwnProperty(param)) {
|
11
|
+
if (keys.indexOf(param) === -1) {
|
12
|
+
query.push(param + "=" + encodeURIComponent(params[param]));
|
13
|
+
}
|
14
|
+
}
|
15
|
+
return query.length ? route + "?" + query.join("&") : route;
|
16
|
+
}
|
17
17
|
JAVASCRIPT
|
18
18
|
|
19
19
|
include Singleton
|
20
20
|
|
21
|
-
attr_accessor :include_paths, :exclude_paths, :include_names, :exclude_names, :
|
21
|
+
attr_accessor :include_paths, :exclude_paths, :include_names, :exclude_names, :exclude_engines, :output_dir
|
22
22
|
|
23
23
|
def initialize
|
24
|
-
self.include_paths
|
25
|
-
self.exclude_paths
|
26
|
-
self.include_names
|
27
|
-
self.exclude_names
|
28
|
-
self.
|
24
|
+
self.include_paths = /.*/
|
25
|
+
self.exclude_paths = /^$/
|
26
|
+
self.include_names = /.*/
|
27
|
+
self.exclude_names = /^$/
|
28
|
+
self.exclude_engines = /^$/
|
29
|
+
|
30
|
+
self.output_dir = Rails.root.join('app', 'assets', 'javascripts')
|
29
31
|
Rails.application.reload_routes!
|
30
32
|
end
|
31
33
|
|
32
34
|
def generate(task)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
routes_with_engines.each do |rails_engine_name, routes|
|
36
|
+
lines = ["// Don't edit manually. `rake #{task}` generates this file.", PROCESS_FUNC]
|
37
|
+
lines += routes.map do |route_name, route_path|
|
38
|
+
handle_route(route_name, route_path) if match?(route_name, route_path)
|
39
|
+
end.compact
|
40
|
+
|
41
|
+
lines += [''] # End with new line
|
42
|
+
write(rails_engine_name, lines.join("\n"))
|
43
|
+
end
|
39
44
|
end
|
40
45
|
|
41
46
|
private
|
@@ -51,21 +56,37 @@ function process(route, params, keys) {
|
|
51
56
|
def handle_route(route_name, route_path)
|
52
57
|
keys = []
|
53
58
|
while route_path =~ COMPARE_REGEXP
|
54
|
-
keys.push("'#{
|
55
|
-
route_path.sub!(COMPARE_REGEXP, "' + params.#{
|
59
|
+
keys.push("'#{Regexp.last_match(1)}'")
|
60
|
+
route_path.sub!(COMPARE_REGEXP, "' + params.#{Regexp.last_match(1)} + '#{Regexp.last_match(2)}")
|
56
61
|
end
|
57
62
|
"export function #{route_name}_path(params) { return process('#{route_path}', params, [#{keys.join(',')}]); }"
|
58
63
|
end
|
59
64
|
|
60
|
-
def
|
61
|
-
@
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
+
def routes_with_engines
|
66
|
+
@routes_with_engines ||= [default_routes] + subengine_routes
|
67
|
+
end
|
68
|
+
|
69
|
+
def make_routes(routes)
|
70
|
+
routes
|
71
|
+
.select(&:name)
|
72
|
+
.map { |r| [r.name, r.path.spec.to_s.split('(')[0]] }
|
73
|
+
.sort_by(&:first)
|
74
|
+
end
|
75
|
+
|
76
|
+
def write(rails_engine_name, string)
|
77
|
+
file_name = File.join(output_dir, "#{rails_engine_name.gsub('::Engine', '').downcase}-routes.js")
|
78
|
+
File.write(file_name, string)
|
79
|
+
end
|
80
|
+
|
81
|
+
def subengine_routes
|
82
|
+
Rails::Engine.subclasses
|
83
|
+
.reject { |klass| klass.to_s.downcase =~ exclude_engines }
|
84
|
+
.map { |engine| [engine.to_s, make_routes(engine.routes.routes)] }
|
85
|
+
.reject { |_, routes| routes.empty? }
|
65
86
|
end
|
66
87
|
|
67
|
-
def
|
68
|
-
|
88
|
+
def default_routes
|
89
|
+
['Rails', make_routes(Rails.application.routes.routes)]
|
69
90
|
end
|
70
91
|
end
|
71
92
|
end
|
@@ -6,8 +6,8 @@ namespace :js do
|
|
6
6
|
generator.exclude_paths = Regexp.new(ENV['exclude_paths']) if ENV['exclude_paths']
|
7
7
|
generator.include_names = Regexp.new(ENV['include_names']) if ENV['include_names']
|
8
8
|
generator.exclude_names = Regexp.new(ENV['exclude_names']) if ENV['exclude_names']
|
9
|
-
generator.
|
9
|
+
generator.output_dir = ENV['output_dir'] if ENV['output_dir']
|
10
10
|
generator.generate(task)
|
11
|
-
puts "Routes saved
|
11
|
+
puts "Routes saved into #{generator.output_dir}."
|
12
12
|
end
|
13
13
|
end
|
@@ -6,7 +6,9 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
6
6
|
it { expect(described_class).to include(Singleton) }
|
7
7
|
|
8
8
|
describe '#generate' do
|
9
|
+
let(:output_dir) { File.expand_path('spec/tmp') }
|
9
10
|
subject do
|
11
|
+
generator.output_dir = output_dir
|
10
12
|
generator.generate(task)
|
11
13
|
end
|
12
14
|
|
@@ -14,11 +16,24 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
14
16
|
'js:routes'
|
15
17
|
end
|
16
18
|
|
17
|
-
it 'writes
|
18
|
-
expect(generator).to receive(:write)
|
19
|
+
it 'writes JS files' do
|
20
|
+
expect(generator).to receive(:write)
|
21
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_string_including("rake #{task}"))
|
22
|
+
.twice
|
19
23
|
subject
|
20
24
|
end
|
21
25
|
|
26
|
+
context 'when actually creating files' do
|
27
|
+
let(:js_files) { Dir.glob(File.join(output_dir, '{admin,rails}-routes.js')).map { |file| Pathname.new(file) } }
|
28
|
+
|
29
|
+
after { FileUtils.rm_f(js_files) }
|
30
|
+
|
31
|
+
it 'creates JS files' do
|
32
|
+
subject
|
33
|
+
expect(js_files).to all be_file
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
22
37
|
context 'when include_paths is given' do
|
23
38
|
before do
|
24
39
|
generator.include_paths = include_paths
|
@@ -29,11 +44,13 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
29
44
|
end
|
30
45
|
|
31
46
|
it 'writes paths matching with the parameter' do
|
32
|
-
expect(generator).to receive(:write)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
47
|
+
expect(generator).to receive(:write)
|
48
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_kind_of(String))
|
49
|
+
.twice do |_, arg|
|
50
|
+
paths = arg.split("\n")[(2 + described_class::PROCESS_FUNC.split("\n").size)..-1]
|
51
|
+
expect(paths).not_to be_empty
|
52
|
+
expect(paths).to all(match(include_paths))
|
53
|
+
end
|
37
54
|
subject
|
38
55
|
end
|
39
56
|
end
|
@@ -48,13 +65,15 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
48
65
|
end
|
49
66
|
|
50
67
|
it 'writes paths not matching with the parameter' do
|
51
|
-
expect(generator).to receive(:write)
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
expect(
|
68
|
+
expect(generator).to receive(:write)
|
69
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_kind_of(String))
|
70
|
+
.twice do |_, arg|
|
71
|
+
paths = arg.split("\n")[(2 + described_class::PROCESS_FUNC.split("\n").size)..-1]
|
72
|
+
expect(paths).not_to be_empty
|
73
|
+
paths.each do |path|
|
74
|
+
expect(path).to_not match(exclude_paths)
|
75
|
+
end
|
56
76
|
end
|
57
|
-
end
|
58
77
|
subject
|
59
78
|
end
|
60
79
|
end
|
@@ -65,15 +84,17 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
65
84
|
end
|
66
85
|
|
67
86
|
let(:include_names) do
|
68
|
-
/user/
|
87
|
+
/user|note/
|
69
88
|
end
|
70
89
|
|
71
90
|
it 'writes paths matching with the parameter' do
|
72
|
-
expect(generator).to receive(:write)
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
91
|
+
expect(generator).to receive(:write)
|
92
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_kind_of(String))
|
93
|
+
.twice do |_, arg|
|
94
|
+
paths = arg.split("\n")[(2 + described_class::PROCESS_FUNC.split("\n").size)..-1]
|
95
|
+
expect(paths).not_to be_empty
|
96
|
+
expect(paths).to all(match(include_names))
|
97
|
+
end
|
77
98
|
subject
|
78
99
|
end
|
79
100
|
end
|
@@ -84,17 +105,46 @@ RSpec.describe JSRailsRoutes::Generator do
|
|
84
105
|
end
|
85
106
|
|
86
107
|
let(:exclude_names) do
|
87
|
-
/user/
|
108
|
+
/user|note/
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'writes paths not matching with the parameter' do
|
112
|
+
expect(generator).to receive(:write)
|
113
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_kind_of(String))
|
114
|
+
.twice do |_, arg|
|
115
|
+
paths = arg.split("\n")[(2 + described_class::PROCESS_FUNC.split("\n").size)..-1]
|
116
|
+
expect(paths).not_to be_empty
|
117
|
+
paths.each do |path|
|
118
|
+
expect(path).to_not match(exclude_names)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
subject
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
context 'when exclude_engines is given' do
|
126
|
+
before do
|
127
|
+
generator.exclude_engines = exclude_engines
|
128
|
+
end
|
129
|
+
|
130
|
+
let(:exclude_engines) do
|
131
|
+
/^admin/
|
132
|
+
end
|
133
|
+
|
134
|
+
let(:excluded_routes) do
|
135
|
+
/note|photo/
|
88
136
|
end
|
89
137
|
|
90
138
|
it 'writes paths not matching with the parameter' do
|
91
|
-
expect(generator).to receive(:write)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
expect(
|
139
|
+
expect(generator).to receive(:write)
|
140
|
+
.with(be_in(['Rails', 'Admin::Engine']), a_kind_of(String))
|
141
|
+
.once do |_, arg|
|
142
|
+
paths = arg.split("\n")[(2 + described_class::PROCESS_FUNC.split("\n").size)..-1]
|
143
|
+
expect(paths).not_to be_empty
|
144
|
+
paths.each do |path|
|
145
|
+
expect(path).to_not match(excluded_routes)
|
146
|
+
end
|
96
147
|
end
|
97
|
-
end
|
98
148
|
subject
|
99
149
|
end
|
100
150
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$LOAD_PATH << File.expand_path('
|
1
|
+
$LOAD_PATH << File.expand_path('../lib', __dir__)
|
2
2
|
|
3
3
|
require 'simplecov'
|
4
4
|
SimpleCov.start
|
@@ -7,7 +7,7 @@ require 'rails/all'
|
|
7
7
|
require 'js_rails_routes'
|
8
8
|
|
9
9
|
class TestApp < Rails::Application
|
10
|
-
config.root = File.expand_path('
|
10
|
+
config.root = File.expand_path('test_app', __dir__)
|
11
11
|
|
12
12
|
routes.draw do
|
13
13
|
resources :blogs
|
@@ -15,6 +15,15 @@ class TestApp < Rails::Application
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
module Admin
|
19
|
+
class Engine < ::Rails::Engine
|
20
|
+
routes.draw do
|
21
|
+
resources :notes
|
22
|
+
resources :photos
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
18
27
|
RSpec.configure do |config|
|
19
28
|
config.expect_with :rspec do |expectations|
|
20
29
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
data/spec/tmp/.keep
ADDED
File without changes
|
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: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuku Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.16'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.16'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: codeclimate-test-reporter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,56 +58,56 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '12.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '12.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
75
|
+
version: '3.7'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3.
|
82
|
+
version: '3.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.57.2
|
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: 0.
|
96
|
+
version: 0.57.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.16.1
|
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: 0.16.1
|
111
111
|
description:
|
112
112
|
email:
|
113
113
|
- taka84u9@gmail.com
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- spec/js_rails_routes/generator_spec.rb
|
135
135
|
- spec/js_rails_routes_spec.rb
|
136
136
|
- spec/spec_helper.rb
|
137
|
+
- spec/tmp/.keep
|
137
138
|
homepage: https://github.com/yuku-t/js_rails_routes
|
138
139
|
licenses:
|
139
140
|
- MIT
|
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
155
|
version: '0'
|
155
156
|
requirements: []
|
156
157
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.6.11
|
158
159
|
signing_key:
|
159
160
|
specification_version: 4
|
160
161
|
summary: Generate a ES6 module that contains Rails routes.
|