multiple_routes 0.0.1 → 1.0.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/README.md +32 -2
- data/lib/multiple_routes/version.rb +1 -1
- data/multiple_routes-0.0.1.gem +0 -0
- data/multiple_routes.gemspec +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f78270aa68553417639388ad603a0f09a5361764
|
4
|
+
data.tar.gz: e400beff8907be1c97adc1d66edddb971e530afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d00f6c200be86a81cf1d616389793186e7a792e11b3c8679f91b9245d0b869f9b78aabafefeec0a025d09e52e310de202ebce18e6ee8eea02127839e476fef2
|
7
|
+
data.tar.gz: fcf41de3e8719e1f0f2c976313243727ed0425b187f1065e990e83f6de1cb6598659777cc80e51c7319c97ec308ccfad8f632caf64ba39cba6b7f7b82d39abb0
|
data/README.md
CHANGED
@@ -1,4 +1,34 @@
|
|
1
1
|
# MultipleRoutes
|
2
|
-
|
2
|
+
Install this gem if you want to manage your app's routes in a smarter way.
|
3
|
+
You'll be able to split routes files into a routes folder and keep everything tidy and clean.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
Go for it, install like this:
|
7
|
+
|
8
|
+
gem 'multiple_routes' # In your gemfile
|
9
|
+
|
10
|
+
Then bundle install.
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
Simply create a folder in your config/ called _routes_ and create any file as follows:
|
14
|
+
|
15
|
+
# config/routes/api.rb
|
16
|
+
namespace :api, defaults: {format: 'json'} do
|
17
|
+
namespace :v1 do
|
18
|
+
resources :posts do
|
19
|
+
# Whatever...
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
Then in your routes.rb file:
|
25
|
+
|
26
|
+
Deploydapp::Application.routes.draw do
|
27
|
+
# example posts resource
|
28
|
+
resources :posts do
|
29
|
+
resources :pull_requests
|
30
|
+
end
|
31
|
+
# Api namespace
|
32
|
+
draw :api
|
33
|
+
end
|
3
34
|
|
4
|
-
Things to do...
|
Binary file
|
data/multiple_routes.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = MultipleRoutes::VERSION
|
9
9
|
spec.authors = ["Alessio Santo"]
|
10
10
|
spec.email = ["alessio.santo@pazienti.it"]
|
11
|
-
spec.description = %q{
|
12
|
-
spec.summary = %q{
|
11
|
+
spec.description = %q{Split your app's routes file}
|
12
|
+
spec.summary = %q{Split your app's routes file}
|
13
13
|
spec.homepage = "https://github.com/alessiosantocs/multiple_routes"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiple_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessio Santo
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
|
-
description:
|
27
|
+
description: Split your app's routes file
|
28
28
|
email:
|
29
29
|
- alessio.santo@pazienti.it
|
30
30
|
executables: []
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/multiple_routes.rb
|
40
40
|
- lib/multiple_routes/initializers/core_ext.rb
|
41
41
|
- lib/multiple_routes/version.rb
|
42
|
+
- multiple_routes-0.0.1.gem
|
42
43
|
- multiple_routes.gemspec
|
43
44
|
homepage: https://github.com/alessiosantocs/multiple_routes
|
44
45
|
licenses:
|
@@ -63,5 +64,5 @@ rubyforge_project:
|
|
63
64
|
rubygems_version: 2.2.2
|
64
65
|
signing_key:
|
65
66
|
specification_version: 4
|
66
|
-
summary:
|
67
|
+
summary: Split your app's routes file
|
67
68
|
test_files: []
|