heroku-nav 0.1.9 → 0.1.10
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/Rakefile +1 -1
- data/heroku-nav.gemspec +2 -2
- data/lib/heroku/nav.rb +1 -1
- data/spec/nav_spec.rb +3 -14
- metadata +3 -3
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ begin
|
|
21
21
|
gemspec.add_dependency(%q<rest-client>, [">= 1.0"])
|
22
22
|
gemspec.add_dependency(%q<json>, [">= 0"])
|
23
23
|
|
24
|
-
gemspec.version = '0.1.
|
24
|
+
gemspec.version = '0.1.10'
|
25
25
|
end
|
26
26
|
rescue LoadError
|
27
27
|
puts "Jeweler not available. Install it with: gem install jeweler"
|
data/heroku-nav.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{heroku-nav}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Todd Matthews", "Pedro Belo"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-19}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{pedro@heroku.com}
|
15
15
|
s.files = [
|
data/lib/heroku/nav.rb
CHANGED
@@ -91,7 +91,7 @@ module Heroku
|
|
91
91
|
if @nav['head']
|
92
92
|
@body.send(@body_accessor).gsub!(/(<head>)/i, "\\1#{@nav['head']}")
|
93
93
|
end
|
94
|
-
if @nav['body']
|
94
|
+
if @nav['body']
|
95
95
|
@body.send(@body_accessor).gsub!(/(<body.*?>)/i, "\\1#{@nav['body']}")
|
96
96
|
end
|
97
97
|
@headers['Content-Length'] = @body.send(@body_accessor).size.to_s
|
data/spec/nav_spec.rb
CHANGED
@@ -98,23 +98,12 @@ describe Heroku::Nav::Internal do
|
|
98
98
|
|
99
99
|
it "adds the head" do
|
100
100
|
get '/', :body => '<head><title /></head><body>'
|
101
|
-
last_response.body.should.equal '<head><!-- head --><title /></head><body
|
101
|
+
last_response.body.should.equal '<head><!-- head --><title /></head><body><!-- body -->'
|
102
102
|
end
|
103
103
|
|
104
|
-
it "
|
104
|
+
it "adds the body" do
|
105
105
|
get '/', :body => '<html><body>hi'
|
106
|
-
last_response.body.should.equal '<html><body
|
107
|
-
end
|
108
|
-
|
109
|
-
describe "development mode" do
|
110
|
-
def app
|
111
|
-
make_app { use Heroku::Nav::Internal, :development => true }
|
112
|
-
end
|
113
|
-
|
114
|
-
it "adds the body" do
|
115
|
-
get '/', :body => '<html><body>hi'
|
116
|
-
last_response.body.should.equal '<html><body><!-- body -->hi'
|
117
|
-
end
|
106
|
+
last_response.body.should.equal '<html><body><!-- body -->hi'
|
118
107
|
end
|
119
108
|
|
120
109
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 10
|
9
|
+
version: 0.1.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Todd Matthews
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-04-
|
18
|
+
date: 2010-04-19 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|