utopia 0.11.1 → 0.11.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.
@@ -20,6 +20,7 @@
20
20
 
21
21
  require 'utopia/middleware'
22
22
  require 'utopia/path'
23
+ require 'utopia/http'
23
24
 
24
25
  class Rack::Request
25
26
  def controller(&block)
@@ -195,7 +196,7 @@ module Utopia
195
196
  status = options[:status] || status
196
197
  end
197
198
 
198
- status = Utopia::HTTP_STATUS_CODES[status] || status
199
+ status = Utopia::HTTP::STATUS_CODES[status] || status
199
200
  headers = options[:headers] || {}
200
201
 
201
202
  if options[:type]
@@ -213,7 +214,7 @@ module Utopia
213
214
  elsif options[:content]
214
215
  body = [options[:content]]
215
216
  elsif status >= 300
216
- body = [Utopia::HTTP_STATUS_DESCRIPTIONS[status] || 'Status #{status}']
217
+ body = [Utopia::HTTP::STATUS_DESCRIPTIONS[status] || 'Status #{status}']
217
218
  end
218
219
 
219
220
  # Utopia::LOG.debug([status, headers, body].inspect)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "0.11.1"
22
+ VERSION = "0.11.2"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: -707483263134661482
181
+ hash: 312881169205834825
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  segments:
189
189
  - 0
190
- hash: -707483263134661482
190
+ hash: 312881169205834825
191
191
  requirements: []
192
192
  rubyforge_project:
193
193
  rubygems_version: 1.8.24