static_pages 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ class PagesController < ApplicationController
2
+ caches_action :show, :expires_in => 1.week
3
+ def show
4
+ render :template => params[:id]
5
+ end
6
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do |map|
2
+ map.page "/#{StaticPages::PATH}/:id", :controller => :pages, :action => :show
3
+ end
data/static_pages.gemspec CHANGED
@@ -2,14 +2,15 @@ PKG_FILES = FileList[
2
2
  '[a-zA-Z]*',
3
3
  'generators/**/*',
4
4
  'lib/**/*',
5
- 'rails/**/*',
5
+ 'app/**/*',
6
+ 'config/**/*',
6
7
  'tasks/**/*',
7
8
  'test/**/*'
8
9
  ]
9
10
 
10
11
  spec = Gem::Specification.new do |s|
11
12
  s.name = "static_pages"
12
- s.version = "0.0.3"
13
+ s.version = "0.0.4"
13
14
  s.author = "Christian Weis"
14
15
  s.email = "christian.weis@gmail.com"
15
16
  s.homepage = "http://christian-weis.de/"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_pages
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christian Weis
@@ -35,6 +35,8 @@ files:
35
35
  - lib/generators/page_generator.rb
36
36
  - lib/generators/USAGE
37
37
  - lib/static_pages.rb
38
+ - app/controllers/pages_controller.rb
39
+ - config/routes.rb
38
40
  - test/static_pages_test.rb
39
41
  - test/test_helper.rb
40
42
  has_rdoc: true