bard_static 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,11 +29,11 @@ browser at /mockups/path_to_file.
29
29
 
30
30
  Examples:
31
31
 
32
- | URI Path | File path |
33
- |--------------|----------------------------------------------------|
34
- | /p | app/views/mockups/index.html.erb |
35
- | /p/home | app/views/mockups/home.html.haml |
36
- | /p/posts/new | app/views/mockups/posts/new.html.slim |
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.body = response.body.sub("</head>", "#{no_robots_tag}</head>")
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]
@@ -1,3 +1,3 @@
1
1
  module BardStatic
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
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-16 00:00:00 Z
24
+ date: 2011-06-20 00:00:00 Z
25
25
  dependencies: []
26
26
 
27
27
  description: Handcrafted prototypes for Rails.