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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e387cbad15efbec8802e0ea2e766b1b2b6cb6782
4
- data.tar.gz: d5f61fa405c03443b0c4c5fca1c0d1c0cd2a5e21
3
+ metadata.gz: e3ab2a75f3bafc466dbbae3ddc9ce9a0c804540c
4
+ data.tar.gz: 91b6411d5df0342e1ecc6844ba8056fb2b09084f
5
5
  SHA512:
6
- metadata.gz: 9fb52c224595ed8bf39e6c790e22e95fe2b0785da864c8f92cbd546e15641a6ff0592ca09ddf82c8a876c2432e0928056a009f16c7ab1a4d233caebd6bfa5ad5
7
- data.tar.gz: 484e77e4ee159e4b65b60954e4a9649be2612422b49710671c46d0a526c1e60923b197777b7a7188678b54db9ed877d36d040301a6b57fd4e94a8af3f0cf71c3
6
+ metadata.gz: 3693437e3f73818050a94c6dedef90ee20fc563f6ec9fcd5eb4011add5b5c08151841990345ee4dca123a4c32f656ee9bc73dab90871ea269ac7478247e48d87
7
+ data.tar.gz: ed36e6a7d86200e0d9d569c87da5c17803b2d5b8dd9d3c12ee54530e0cc0232b588aa8d3f766220aa0607185815d714e6f4d8aa5e9660ab244ccabe922fef93e
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Bard
2
2
  module Static
3
- VERSION = "2.1.3"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
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.1.3
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-09-11 00:00:00.000000000 Z
15
+ date: 2014-10-22 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description: Handcrafted prototypes for Rails.
18
18
  email: