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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 671075afc79d71f2a2f669600e31d7918adba939
4
- data.tar.gz: 44ffc5d15f4ae9519dae70e5f2b680f3d7c922da
3
+ metadata.gz: ba97827b8657a78eb384d0f8a10f0b7cae17f0e1
4
+ data.tar.gz: b4f40dc9ca1577aadc6cb9aeaed81528794c6610
5
5
  SHA512:
6
- metadata.gz: b5da3cbfc80dfc85a52acff32aa72580c291d33e2fac347fe8f21a2f1621250d61631d61edffff6d837e5f55b1c856186abe2069b2e8f0701c35fd0ac2275680
7
- data.tar.gz: 20b517597f339003bda62662e37b8ebc254781428025e82fe2169ae39cc450a61b561c58e5d82d938c3fdbd29d7bcb1dcca571c119f4668f2c4280ea229b6d5b
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
- # Define a single page
36
- page :about
35
+ # Define a single page
36
+ page :about
37
37
 
38
- # Define multiple pages
39
- pages :contact, :team
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
@@ -18,7 +18,7 @@ module ActionDispatch::Routing
18
18
 
19
19
  def set_pages_namespace
20
20
  if @scope[:module]
21
- mod = @scope[:module].classify
21
+ mod = @scope[:module].camelize
22
22
  unless eval("defined? ::#{mod}")
23
23
  Object.class_eval("module ::#{mod}; end")
24
24
  end
data/lib/pages/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pages
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
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.2.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-10-06 00:00:00.000000000 Z
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.1.5
103
+ rubygems_version: 2.0.3
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Pages