heroku-nav 0.1.21 → 0.1.22

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.
Files changed (4) hide show
  1. data/Rakefile +3 -3
  2. data/lib/heroku/nav.rb +5 -5
  3. metadata +7 -6
  4. data/.gitignore +0 -1
data/Rakefile CHANGED
@@ -12,8 +12,8 @@ begin
12
12
  gemspec.summary = ""
13
13
  gemspec.description = ""
14
14
  gemspec.homepage = "http://heroku.com"
15
- gemspec.authors = ["David Dollar", "Pedro Belo", "Todd Matthews"]
16
- gemspec.email = ["david@heroku.com", "pedro@heroku.com", "todd@heroku.com"]
15
+ gemspec.authors = ["David Dollar", "Pedro Belo", "Raul Murciano", "Todd Matthews"]
16
+ gemspec.email = ["david@heroku.com", "pedro@heroku.com", "raul@heroku.com", "todd@heroku.com"]
17
17
 
18
18
  gemspec.add_development_dependency(%q<baconmocha>, [">= 0"])
19
19
  gemspec.add_development_dependency(%q<sinatra>, [">= 0"])
@@ -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.21'
24
+ gemspec.version = '0.1.22'
25
25
  end
26
26
  rescue LoadError
27
27
  puts "Jeweler not available. Install it with: gem install jeweler"
@@ -67,7 +67,7 @@ module Heroku
67
67
  if @nav['html']
68
68
  @body.gsub!(/(<head>)/i, "\\1<link href='#{self.class.api_url}/header.css' media='all' rel='stylesheet' type='text/css' />")
69
69
  @body.gsub!(/(<body.*?>\s*(<div .*?class=["'].*?container.*?["'].*?>)?)/i, "\\1#{@nav['html']}")
70
- @headers['Content-Length'] = @body.length.to_s
70
+ @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
71
71
  end
72
72
  end
73
73
  end
@@ -77,7 +77,7 @@ module Heroku
77
77
  if @nav['html']
78
78
  @body.gsub!(/(<head>)/i, "\\1<link href='#{self.class.api_url}/footer.css' media='all' rel='stylesheet' type='text/css' />")
79
79
  @body.gsub!(/(<\/body>)/i, "#{@nav['html']}\\1")
80
- @headers['Content-Length'] = @body.length.to_s
80
+ @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
81
81
  end
82
82
  end
83
83
  end
@@ -93,7 +93,7 @@ module Heroku
93
93
  if @nav['body']
94
94
  @body.gsub!(/(<\/body>)/i, "#{@nav['body']}\\1")
95
95
  end
96
- @headers['Content-Length'] = @body.length.to_s
96
+ @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
97
97
  end
98
98
  end
99
99
 
@@ -127,10 +127,10 @@ module Heroku
127
127
  match = @body.match(/(\<body[^\>]*\>)/i)
128
128
  if match && match.size > 0
129
129
  @body.insert(match.end(0), @nav)
130
- @headers['Content-Length'] = @body.length.to_s
130
+ @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
131
131
  end
132
132
  end
133
133
  end
134
134
  end
135
135
  end
136
- end
136
+ end
metadata CHANGED
@@ -5,18 +5,19 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 21
9
- version: 0.1.21
8
+ - 22
9
+ version: 0.1.22
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Dollar
13
13
  - Pedro Belo
14
+ - Raul Murciano
14
15
  - Todd Matthews
15
16
  autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2011-01-13 00:00:00 -08:00
20
+ date: 2011-03-08 00:00:00 -08:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
@@ -84,6 +85,7 @@ description: ""
84
85
  email:
85
86
  - david@heroku.com
86
87
  - pedro@heroku.com
88
+ - raul@heroku.com
87
89
  - todd@heroku.com
88
90
  executables: []
89
91
 
@@ -92,7 +94,6 @@ extensions: []
92
94
  extra_rdoc_files:
93
95
  - README.md
94
96
  files:
95
- - .gitignore
96
97
  - README.md
97
98
  - Rakefile
98
99
  - heroku-nav.gemspec
@@ -105,8 +106,8 @@ homepage: http://heroku.com
105
106
  licenses: []
106
107
 
107
108
  post_install_message:
108
- rdoc_options:
109
- - --charset=UTF-8
109
+ rdoc_options: []
110
+
110
111
  require_paths:
111
112
  - lib
112
113
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg/