staticker 0.0.1 → 0.0.2

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.
@@ -1,7 +1,7 @@
1
1
  module Staticker
2
2
  class PagesController < ApplicationController
3
3
  def show
4
- self.action_name = params[:id]
4
+ self.action_name = params[:id].downcase.underscore
5
5
  end
6
6
 
7
7
  end
@@ -1,4 +1,13 @@
1
1
  module Staticker
2
2
  module ApplicationHelper
3
+ def swf_path(source)
4
+ asset_paths.compute_public_path(source, 'flash', 'swf')
5
+ end
6
+ alias_method :path_to_swf, :swf_path # aliased to avoid conflicts with an swf_path named route
7
+
8
+ def pdf_path(source)
9
+ asset_paths.compute_public_path(source, 'pdf')
10
+ end
11
+ alias_method :path_to_pdf, :pdf_path
3
12
  end
4
13
  end
data/config/routes.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  Staticker::Engine.routes.draw do
2
- get '/:id' => 'pages#show'
2
+ match '/:id' => 'pages#show', :as => :page, :via => :get
3
3
 
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module Staticker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: staticker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gunner Technology, Cody Swann
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-20 00:00:00 Z
13
+ date: 2011-08-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -94,7 +94,6 @@ files:
94
94
  - test/dummy/tmp/cache/assets/D05/370/sprockets%2Fbed7cc4e10b60c1912c8b615008288d8
95
95
  - test/dummy/tmp/cache/assets/D4D/680/sprockets%2F873950089c8b92c36994f6bbbaed1ec1
96
96
  - test/dummy/tmp/cache/assets/D95/840/sprockets%2Fa48eb5f2280d278bca7e10d19cde0d80
97
- - test/dummy/tmp/pids/server.pid
98
97
  - test/functional/staticker/pages_controller_test.rb
99
98
  - test/integration/navigation_test.rb
100
99
  - test/staticker_test.rb
@@ -113,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
112
  requirements:
114
113
  - - ">="
115
114
  - !ruby/object:Gem::Version
116
- hash: 1803802230881814541
115
+ hash: -334344374133724205
117
116
  segments:
118
117
  - 0
119
118
  version: "0"
@@ -122,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
121
  requirements:
123
122
  - - ">="
124
123
  - !ruby/object:Gem::Version
125
- hash: 1803802230881814541
124
+ hash: -334344374133724205
126
125
  segments:
127
126
  - 0
128
127
  version: "0"
@@ -166,7 +165,6 @@ test_files:
166
165
  - test/dummy/tmp/cache/assets/D05/370/sprockets%2Fbed7cc4e10b60c1912c8b615008288d8
167
166
  - test/dummy/tmp/cache/assets/D4D/680/sprockets%2F873950089c8b92c36994f6bbbaed1ec1
168
167
  - test/dummy/tmp/cache/assets/D95/840/sprockets%2Fa48eb5f2280d278bca7e10d19cde0d80
169
- - test/dummy/tmp/pids/server.pid
170
168
  - test/functional/staticker/pages_controller_test.rb
171
169
  - test/integration/navigation_test.rb
172
170
  - test/staticker_test.rb
@@ -1 +0,0 @@
1
- 74045