split_routes 0.1.0 → 0.1.1

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.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +29 -6
  3. data/lib/split_routes/version.rb +1 -1
  4. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f1630f30fea60ed2184cd5e441b26d57adc03fd6
4
- data.tar.gz: 7081fb58dc340eb38cc9e3237a8ec0c321af7cb1
2
+ SHA256:
3
+ metadata.gz: 8f6309d83133e101ad4a97752a19444da101e655bf72196474a4bc5b6b472114
4
+ data.tar.gz: 4b390a3a3124e21f129b1f0379367cf2c3bf8bc3114fafd64f91ece446e8c988
5
5
  SHA512:
6
- metadata.gz: 3cb7cd649b83c4d10852b259fca613a09e3cc265accf3ffe61b69f61c085be2525e9b3dcb337b494b80604e18058660ffcc3919707f38b546a5b25dae302573e
7
- data.tar.gz: 3104b99912acc93ee8c19709dfdf94bff57188cc558f9224aab23b3d8c9ec76669aee9b6131e6b661fa43fd6249d3b25a440d456869d5aaf238c760c1146fc38
6
+ metadata.gz: 8c0de62c692d8529be15d8c011e1f5be0e908ebdd9e9a9031f06577dab1524fada481b7cbe5e7a56ddd0498e28a30d810f6abfdc23cae18ba3c6efcf24aaeb7a
7
+ data.tar.gz: 83134afb0d38f68fc25efff57f7c18dde3fb308131410e220b1d080c574d33ecc145696eb9729ebaf5e5ae4d3225e6b30a6a661109c0528a4a9004c6d4a04665
data/README.md CHANGED
@@ -8,7 +8,7 @@ How to use my plugin.
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'split_routes', github: 'rails-gems/split_routes'
11
+ gem 'split_routes', github: 'rails-gems/split_routes', branch: 'master'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -16,16 +16,39 @@ And then execute:
16
16
  $ bundle
17
17
  ```
18
18
 
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install split_routes
22
- ```
23
-
24
19
  ### 创建`Split Route File`
25
20
 
26
21
  ```
27
22
  $ rails g split_routes admin
28
23
  ```
24
+ 或者自定义创建`Slite Route File`
25
+ ```
26
+ # routes/admin.rb
27
+ # routes/api.rb
28
+ ```
29
+ ```ruby
30
+ # eg routes/api.rb
31
+ defaults format: :json do
32
+ constraints subdomain: /api/ do
33
+ mount_devise_token_auth_for 'User', at: 'auth'
34
+ scope module: 'api' do
35
+ namespace :v1 do
36
+ resources :tasks
37
+ end
38
+ end
39
+ end
40
+ end
41
+ ```
42
+ ```ruby
43
+ # eg: routes/admin.rb
44
+ defaults format: :json do
45
+ constraints subdomain: /apa/ do
46
+ mount_devise_token_auth_for 'Admin', at: 'admin_auth'
47
+ scope module: 'admin' do
48
+ end
49
+ end
50
+ end
51
+ ```
29
52
 
30
53
  ## Contributing
31
54
  Contribution directions go here.
@@ -1,3 +1,3 @@
1
1
  module SplitRoutes
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: split_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mars
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2021-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
19
+ version: '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: '6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ homepage: https://github.com/wuyuedefeng/SplitRoutes
60
60
  licenses:
61
61
  - MIT
62
62
  metadata: {}
63
- post_install_message:
63
+ post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
66
66
  - lib
@@ -75,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubyforge_project:
79
- rubygems_version: 2.6.13
80
- signing_key:
78
+ rubyforge_project:
79
+ rubygems_version: 2.7.6.2
80
+ signing_key:
81
81
  specification_version: 4
82
82
  summary: SplitRoutes.
83
83
  test_files: []