bard_static 1.0.1 → 1.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.
- data/README.md +5 -5
- data/lib/bard_static/no_robots_middleware.rb +3 -1
- data/lib/bard_static/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -29,11 +29,11 @@ browser at /mockups/path_to_file.
|
|
|
29
29
|
|
|
30
30
|
Examples:
|
|
31
31
|
|
|
32
|
-
| URI Path
|
|
33
|
-
|
|
34
|
-
| /
|
|
35
|
-
| /
|
|
36
|
-
| /
|
|
32
|
+
| URI Path | File path |
|
|
33
|
+
|--------------------|---------------------------------------|
|
|
34
|
+
| /mockups | app/views/mockups/index.html.erb |
|
|
35
|
+
| /mockups/home | app/views/mockups/home.html.haml |
|
|
36
|
+
| /mockups/posts/new | app/views/mockups/posts/new.html.slim |
|
|
37
37
|
|
|
38
38
|
All available Rails helpers work nicely. Pure prototyping bliss!
|
|
39
39
|
|
|
@@ -9,7 +9,9 @@ module BardStatic
|
|
|
9
9
|
|
|
10
10
|
if env["bard_static.prototype"] && status == 200
|
|
11
11
|
no_robots_tag = %{<meta name="robots" content="noindex, nofollow"/>\n}
|
|
12
|
-
response.
|
|
12
|
+
response.each do |part|
|
|
13
|
+
part.sub! "</head>", "#{no_robots_tag}</head>"
|
|
14
|
+
end
|
|
13
15
|
end
|
|
14
16
|
|
|
15
17
|
[status, headers, response]
|
data/lib/bard_static/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bard_static
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 1.0.2
|
|
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-
|
|
24
|
+
date: 2011-06-20 00:00:00 Z
|
|
25
25
|
dependencies: []
|
|
26
26
|
|
|
27
27
|
description: Handcrafted prototypes for Rails.
|