bard-static 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -0
- data/README.md +3 -0
- data/config/routes.rb +1 -1
- data/lib/bard/static/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 39c009569fdf0ec3ea49960990015ed40f8d16f18a35ced8df08c1cba12ea710
|
4
|
+
data.tar.gz: fd5c7bfb8fc8aeca7171c9ace9fbfb7920135c80606b5e2ff50ccf3338fc2c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5700307ca0d58acc420fe05910272272e516cd471f4d042cfbef754ed813c6fda665da1d7293b56413ac267eaa48074609dac07e94260d32adbadc927e87665d
|
7
|
+
data.tar.gz: b401fedf833fdd12e0a1a9edd39063cc8ed1a4e7272c1d5103b7e0c89d9d05dd40c150700cb64c71932d91619601d9f072523e5324a67d50b1804faad128e007
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -14,6 +14,9 @@ Bard::Static
|
|
14
14
|
|| ||
|
15
15
|
|
16
16
|
|
17
|
+
[![Build Status](https://travis-ci.org/botandrose/bard-static.svg?branch=master)](https://travis-ci.org/botandrose/bard-static)
|
18
|
+
[![Code Climate](https://codeclimate.com/github/botandrose/bard-static/badges/gpa.svg)](https://codeclimate.com/github/botandrose/bard-static)
|
19
|
+
|
17
20
|
Installation
|
18
21
|
------------
|
19
22
|
|
data/config/routes.rb
CHANGED
@@ -5,7 +5,7 @@ Rails.application.routes.draw do
|
|
5
5
|
end
|
6
6
|
root to: "bard/static/static#static", file_path: "index", as: "bard_static_default_root"
|
7
7
|
get "*file_path" => "bard/static/static#static", constraints: ->(request){
|
8
|
-
lookup_context = ActionView::
|
8
|
+
lookup_context = ActionView::LookupContext.new([Rails.root.join("app/views/static")])
|
9
9
|
lookup_context.exists?(request.path) || lookup_context.exists?(request.path + "/index")
|
10
10
|
}
|
11
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: 3.
|
4
|
+
version: 3.1.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:
|
15
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: Handcrafted prototypes for Rails.
|
18
18
|
email:
|
@@ -52,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
|
-
|
56
|
-
rubygems_version: 2.6.14
|
55
|
+
rubygems_version: 3.0.3
|
57
56
|
signing_key:
|
58
57
|
specification_version: 4
|
59
58
|
summary: Protoyping engine for Rails.
|