rested 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rested/base.rb +7 -0
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -16,6 +16,13 @@ module Rested
16
16
  if not Rested.debug.nil?
17
17
  @client.debug_dev = (Rested.debug.respond_to?("<<") ? Rested.debug : STDOUT)
18
18
  end
19
+ if Object.const_defined? "Rack" then
20
+ handler = lambda { |path|
21
+ path =~ /(\..*?)$/
22
+ Rack::Mime.mime_type($1)
23
+ }
24
+ HTTP::Message.mime_type_handler = handler
25
+ end
19
26
  @client
20
27
  end
21
28
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chetan Sarva