adamwiggins-rest-client 0.9.1 → 0.9.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.
data/README.rdoc CHANGED
@@ -128,7 +128,7 @@ Written by Adam Wiggins (adam at heroku dot com)
128
128
  Patches contributed by: Chris Anderson, Greg Borenstein, Ardekantur, Pedro
129
129
  Belo, Rafael Souza, Rick Olson, Aman Gupta, Blake Mizerany, Brian Donovan, Ivan
130
130
  Makfinsky, Marc-André Cournoyer, Coda Hale, Tetsuo Watanabe, Dusty Doris,
131
- Lennon Day-Reynolds, James Edward Gray II, and Cyril Rohr
131
+ Lennon Day-Reynolds, James Edward Gray II, Cyril Rohr, and Juan Alvarez
132
132
 
133
133
  Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
134
134
 
data/Rakefile CHANGED
@@ -31,7 +31,7 @@ require 'rake/gempackagetask'
31
31
  require 'rake/rdoctask'
32
32
  require 'fileutils'
33
33
 
34
- version = "0.9"
34
+ version = "0.9.2"
35
35
  name = "rest-client"
36
36
 
37
37
  spec = Gem::Specification.new do |s|
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
47
47
  s.platform = Gem::Platform::RUBY
48
48
  s.has_rdoc = true
49
49
 
50
- s.files = %w(Rakefile) + Dir.glob("{lib,spec}/**/*")
50
+ s.files = %w(Rakefile README.rdoc) + Dir.glob("{lib,spec}/**/*")
51
51
  s.executables = ['restclient']
52
52
 
53
53
  s.require_path = "lib"
@@ -123,7 +123,7 @@ module RestClient
123
123
 
124
124
  def process_result(res)
125
125
  if res.code =~ /\A2\d{2}\z/
126
- decode res['content-encoding'], res.body
126
+ decode res['content-encoding'], res.body if res.body
127
127
  elsif %w(301 302 303).include? res.code
128
128
  url = res.header['Location']
129
129
 
data/rest-client.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rest-client"
3
- s.version = "0.9.1"
3
+ s.version = "0.9.2"
4
4
  s.summary = "Simple REST client for Ruby, inspired by microframework syntax for specifying actions."
5
5
  s.description = "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
6
6
  s.author = "Adam Wiggins"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adamwiggins-rest-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wiggins
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-13 00:00:00 -08:00
12
+ date: 2009-02-25 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15