pages 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/pages/routes.rb +1 -1
- data/lib/pages/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba97827b8657a78eb384d0f8a10f0b7cae17f0e1
|
4
|
+
data.tar.gz: b4f40dc9ca1577aadc6cb9aeaed81528794c6610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c437e1470874db2685bad57018561ea68b3a0b465101012741030efceaf4e83b53dd79aef8c921c5f8661ffdda11bd09e05966117d213300513c145fef3a237e
|
7
|
+
data.tar.gz: e4831f1f2d5df4bc669ca67c406956b4125e7299508a97c0add286fb0060cd45dbff3795c49f2cf9a906d731433a9b74540353e7e32469614e47cbf1e7be5fb8
|
data/README.md
CHANGED
@@ -32,11 +32,11 @@ Simply define new pages in your routes
|
|
32
32
|
|
33
33
|
```ruby
|
34
34
|
Rails.application.routes.draw do
|
35
|
-
|
36
|
-
|
35
|
+
# Define a single page
|
36
|
+
page :about
|
37
37
|
|
38
|
-
|
39
|
-
|
38
|
+
# Define multiple pages
|
39
|
+
pages :contact, :team
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -59,7 +59,7 @@ page parameter by passing an options hash containing a block. This is
|
|
59
59
|
particularly useful for creating SEO-friendly routes:
|
60
60
|
|
61
61
|
```ruby
|
62
|
-
page :press_kit, :transform => { |page| page.dasherize }
|
62
|
+
page :press_kit, :transform => lambda { |page| page.dasherize }
|
63
63
|
```
|
64
64
|
|
65
65
|
would expand to:
|
data/lib/pages/routes.rb
CHANGED
data/lib/pages/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cardarella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.0.3
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Pages
|