restful_routing 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/bin/console +1 -1
- data/bin/setup +3 -0
- data/lib/restful_routing/version.rb +1 -1
- data/lib/restful_routing.rb +4 -1
- data/restful_routing-1.1.2.gem +0 -0
- 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: a917a7e797d63a9a6aa1caa6ab87b40b5da0690a
|
4
|
+
data.tar.gz: c2617bfc4ecb70e1f9fe04805145cdf6e09ed373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ff6b7fa3baf0132df963f91055036f690118c9e01bacb12382177f178371d67e59592dd6bce9cf11bd97659c5dfe51d4f3868f4e37915337f7ff08062012e4
|
7
|
+
data.tar.gz: 3af53150d15a82c60a1a3c7f1eb115744597a7b1831f85f33efa56e5bdc9133022bbc6569a09118c55f5d2b80f3de1a277be6814c82222bbab95cb94632e07a1
|
data/README.md
CHANGED
@@ -14,10 +14,18 @@ And then execute:
|
|
14
14
|
|
15
15
|
$ bundle
|
16
16
|
|
17
|
-
Or install it yourself
|
17
|
+
Or install it yourself:
|
18
18
|
|
19
19
|
$ gem install restful_routing
|
20
20
|
|
21
|
+
**You'll need to add `restful_routing.rb` to your `.gitignore`**
|
22
|
+
|
23
|
+
Start your Rails server
|
24
|
+
|
25
|
+
$ rails s
|
26
|
+
|
27
|
+
Then, while your server is running, whenever you save changes to routes.rb, restful_routing.rb will update
|
28
|
+
|
21
29
|
## Usage
|
22
30
|
|
23
31
|
While developing Rails apps, it is often difficult to remember which prefixes route to which controller#action. That is why it is useful to run `rails routes` and put that output in a file for later reference. This gem does that for you.
|
data/bin/console
CHANGED
data/bin/setup
CHANGED
data/lib/restful_routing.rb
CHANGED
@@ -15,7 +15,10 @@ module RestfulRouting
|
|
15
15
|
"Not that you're a cotton-headed-ninny-muggins, \nbut you gotta fix something to get those routes.\n\n",
|
16
16
|
"Ummm...your routes shouldn't look like that.\n\n",
|
17
17
|
"Why you gotta be like that, man? Now you've gone an' offended Rails\nwith what you typed.\n\n",
|
18
|
-
"Dag, yo. Your routes have seen better days.\n\n"
|
18
|
+
"Dag, yo. Your routes have seen better days.\n\n",
|
19
|
+
"Who are you trying to fool? Those routes ain't gonna work!\n\n",
|
20
|
+
"You can't pull the wool over Rail's eyes. She saw that mistake in your routes...\n\n",
|
21
|
+
"It's like your momma don told you: sticks and stones can break my bones\n but wrong words in your routes will kill your project\n\n"
|
19
22
|
]
|
20
23
|
|
21
24
|
File.open(base_path + '/restful_routing.rb', 'w+') do |f|
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_routing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Casey Stinnett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/restful_routing/version.rb
|
92
92
|
- restful_routing-1.0.3.gem
|
93
93
|
- restful_routing-1.1.1.gem
|
94
|
+
- restful_routing-1.1.2.gem
|
94
95
|
- restful_routing-1.1.gem
|
95
96
|
- restful_routing.gemspec
|
96
97
|
homepage: https://github.com/casey-stinnett/restful_routing
|
@@ -114,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
115
|
version: '0'
|
115
116
|
requirements: []
|
116
117
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.6.
|
118
|
+
rubygems_version: 2.6.14
|
118
119
|
signing_key:
|
119
120
|
specification_version: 4
|
120
121
|
summary: Auto-generate a restful_routing file for easy prefix tracking.
|