bard-static 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +4 -1
- data/lib/bard/static/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ab2a75f3bafc466dbbae3ddc9ce9a0c804540c
|
4
|
+
data.tar.gz: 91b6411d5df0342e1ecc6844ba8056fb2b09084f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3693437e3f73818050a94c6dedef90ee20fc563f6ec9fcd5eb4011add5b5c08151841990345ee4dca123a4c32f656ee9bc73dab90871ea269ac7478247e48d87
|
7
|
+
data.tar.gz: ed36e6a7d86200e0d9d569c87da5c17803b2d5b8dd9d3c12ee54530e0cc0232b588aa8d3f766220aa0607185815d714e6f4d8aa5e9660ab244ccabe922fef93e
|
data/config/routes.rb
CHANGED
@@ -4,5 +4,8 @@ Rails.application.routes.draw do
|
|
4
4
|
get "/*file_path" => "static#mockups"
|
5
5
|
end
|
6
6
|
root :to => "bard/static/static#static", :file_path => "index", :as => "bard_static_default_root"
|
7
|
-
get "*file_path" => "bard/static/static#static"
|
7
|
+
get "*file_path" => "bard/static/static#static", constraints: (lambda do |request|
|
8
|
+
lookup_context = ActionView::Base.new("app/views/static").lookup_context
|
9
|
+
lookup_context.exists?(request.path) || lookup_context.exists?(request.path + "/index")
|
10
|
+
end)
|
8
11
|
end
|
data/lib/bard/static/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard-static
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: Handcrafted prototypes for Rails.
|
18
18
|
email:
|