routingo 0.1.5 → 0.1.6
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/.rubocop.yml +7 -0
- data/.ruby-version +1 -1
- data/.travis.yml +2 -2
- data/Gemfile +2 -2
- data/README.md +1 -1
- data/Rakefile +4 -2
- data/lib/generators/routingo/install_generator.rb +8 -2
- data/lib/generators/routingo/routingo_generator.rb +4 -1
- data/lib/routingo/version.rb +3 -1
- data/lib/routingo.rb +3 -1
- data/routingo.gemspec +22 -24
- data/wercker.yml +11 -0
- metadata +34 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6d8991c8219e03241a19bf8a5098b5757248ba705f75a5c2c79154afcc90b9d
|
4
|
+
data.tar.gz: aad969b346f838e353c3aaa627fe2baf7ed1f4456d8133bfdd19b9fd5cb7c3ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a36898015775550688664dbe17cc3824a1eabcd71bc162c89f6446a317c38b33d1d5db5e3a1ce7f24178e798686a1b10b05d58d88ef5ee74e405927b597e4aaf
|
7
|
+
data.tar.gz: 0fa222aee162a2f774d5abf3408912cf2147c789821fd3b33756666321925425e23877bad7d855db17cc2966a7cb7a3f01154a9a374ac23c788b23d6ba7cb816
|
data/.rubocop.yml
ADDED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.3
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Routingo
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/routingo)
|
4
|
-
[](https://www.codacy.com/app/webguruserbia/routingo?utm_source=github.com&utm_medium=referral&utm_content=popac/routingo&utm_campaign=Badge_Grade)[](https://www.codacy.com/app/webguruserbia/routingo?utm_source=github.com&utm_medium=referral&utm_content=popac/routingo&utm_campaign=Badge_Grade)[](https://travis-ci.org/popac/routingo)[](https://app.wercker.com/project/byKey/7635ae97e127b9ff8b8c32de4aeec514)
|
5
5
|
|
6
6
|
Gem that split routes.rb into smaller parts.
|
7
7
|
|
data/Rakefile
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rails/generators'
|
2
4
|
|
3
5
|
module Routingo
|
4
6
|
module Generators
|
7
|
+
# Install Class
|
5
8
|
class Install < Rails::Generators::Base
|
6
9
|
def insert_path
|
7
|
-
|
8
|
-
|
10
|
+
klazz = 'class Application < Rails::Application'
|
11
|
+
paths = 'config/routes.rb'
|
12
|
+
joins = 'config/routes/*.rb'
|
13
|
+
insert_into_file 'config/application.rb', after: "#{klazz}\n" do
|
14
|
+
"config.paths[#{paths}].concat(Dir[Rails.root.join(#{joins})])\n"
|
9
15
|
end
|
10
16
|
end
|
11
17
|
end
|
@@ -1,9 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Routingo
|
4
|
+
# Routingo Class
|
2
5
|
class Routingo < Rails::Generators::NamedBase
|
3
6
|
def create_helper_file
|
4
7
|
create_file "config/routes/#{file_name}.rb", <<-FILE
|
5
8
|
Rails.application.routes.draw do
|
6
|
-
|
9
|
+
|
7
10
|
end
|
8
11
|
FILE
|
9
12
|
end
|
data/lib/routingo/version.rb
CHANGED
data/lib/routingo.rb
CHANGED
data/routingo.gemspec
CHANGED
@@ -1,34 +1,32 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'routingo/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
|
12
|
-
spec.summary = %q{Routingo}
|
13
|
-
spec.description = %q{Gem that split routes.rb into smaller parts}
|
14
|
-
spec.homepage = "https://github.com/popac/routingo"
|
15
|
-
spec.license = "MIT"
|
16
|
-
spec.post_install_message = "Thanks for installing Routingo!"
|
8
|
+
spec.name = 'routingo'
|
9
|
+
spec.version = Routingo::VERSION
|
10
|
+
spec.authors = ['popac']
|
11
|
+
spec.email = ['aleksandar.popovic.popac@gmail.com']
|
17
12
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
spec.summary = 'Routingo'
|
14
|
+
spec.description = 'Gem that split routes.rb into smaller parts'
|
15
|
+
spec.homepage = 'https://github.com/popac/routingo'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
spec.post_install_message = 'Thanks for installing Routingo!'
|
23
18
|
|
24
|
-
spec.
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
19
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
28
20
|
|
29
|
-
spec.
|
30
|
-
|
31
|
-
spec.
|
21
|
+
spec.files = `git ls-files -z`.split("\x0")
|
22
|
+
.reject { |f| f.match(%r{^(spec)/}) }
|
23
|
+
spec.bindir = 'exe'
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ['lib']
|
32
26
|
|
33
|
-
spec.
|
27
|
+
spec.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.2'
|
28
|
+
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0.74.0'
|
31
|
+
spec.add_runtime_dependency 'rails', '~> 6.0'
|
34
32
|
end
|
data/wercker.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routingo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- popac
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '2.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.0.
|
22
|
+
version: 2.0.2
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,55 +29,69 @@ dependencies:
|
|
29
29
|
version: '2.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.0.
|
32
|
+
version: 2.0.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 12.3
|
39
|
+
version: '12.3'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 12.3.3
|
40
43
|
type: :development
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
47
|
- - "~>"
|
45
48
|
- !ruby/object:Gem::Version
|
46
|
-
version: 12.3
|
49
|
+
version: '12.3'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 12.3.3
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: rspec
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - "~>"
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version: 3.8
|
59
|
+
version: '3.8'
|
54
60
|
type: :development
|
55
61
|
prerelease: false
|
56
62
|
version_requirements: !ruby/object:Gem::Requirement
|
57
63
|
requirements:
|
58
64
|
- - "~>"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version: 3.8
|
66
|
+
version: '3.8'
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
68
|
+
name: rubocop
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
71
|
- - "~>"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
|
73
|
+
version: 0.74.0
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
69
79
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
80
|
+
version: 0.74.0
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rails
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '6.0'
|
71
88
|
type: :runtime
|
72
89
|
prerelease: false
|
73
90
|
version_requirements: !ruby/object:Gem::Requirement
|
74
91
|
requirements:
|
75
92
|
- - "~>"
|
76
93
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 5.2.2
|
94
|
+
version: '6.0'
|
81
95
|
description: Gem that split routes.rb into smaller parts
|
82
96
|
email:
|
83
97
|
- aleksandar.popovic.popac@gmail.com
|
@@ -87,6 +101,7 @@ extra_rdoc_files: []
|
|
87
101
|
files:
|
88
102
|
- ".gitignore"
|
89
103
|
- ".rspec"
|
104
|
+
- ".rubocop.yml"
|
90
105
|
- ".ruby-version"
|
91
106
|
- ".travis.yml"
|
92
107
|
- CODE_OF_CONDUCT.md
|
@@ -101,6 +116,7 @@ files:
|
|
101
116
|
- lib/routingo.rb
|
102
117
|
- lib/routingo/version.rb
|
103
118
|
- routingo.gemspec
|
119
|
+
- wercker.yml
|
104
120
|
homepage: https://github.com/popac/routingo
|
105
121
|
licenses:
|
106
122
|
- MIT
|
@@ -121,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
137
|
- !ruby/object:Gem::Version
|
122
138
|
version: '0'
|
123
139
|
requirements: []
|
124
|
-
rubygems_version: 3.0.
|
140
|
+
rubygems_version: 3.0.3
|
125
141
|
signing_key:
|
126
142
|
specification_version: 4
|
127
143
|
summary: Routingo
|