bard_static 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,5 +7,9 @@ module BardStatic
7
7
  env["bard_static.prototype"] = true
8
8
  render "mockups/#{params[:file_path]}", :layout => false
9
9
  end
10
+
11
+ def static
12
+ render "static/#{params[:file_path]}"
13
+ end
10
14
  end
11
15
  end
data/config/routes.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  namespace "mockups", :module => :bard_static do
3
- root :to => "static#serve", :file_path => "index"
4
- match "/*file_path" => "static#serve"
3
+ root :to => "static#mockups", :file_path => "index"
4
+ match "/*file_path" => "static#mockups"
5
5
  end
6
+ root :to => "static#static", :file_path => "index"
7
+ match "*view_path" => "static#static"
6
8
  end
@@ -1,3 +1,3 @@
1
1
  module BardStatic
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 1.0.2
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Micah Geisel
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2011-06-20 00:00:00 Z
24
+ date: 2011-11-21 00:00:00 Z
25
25
  dependencies: []
26
26
 
27
27
  description: Handcrafted prototypes for Rails.
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements: []
72
72
 
73
73
  rubyforge_project:
74
- rubygems_version: 1.8.5
74
+ rubygems_version: 1.8.11
75
75
  signing_key:
76
76
  specification_version: 3
77
77
  summary: Protoyping engine for Rails.