rest-client 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rest-client might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -232,7 +232,7 @@ module RestClient
232
232
  end
233
233
 
234
234
  def default_headers
235
- { :accept => 'application/xml', :accept_encoding => 'gzip, deflate' }
235
+ { :accept => '*/*; q=0.5, application/xml', :accept_encoding => 'gzip, deflate' }
236
236
  end
237
237
  end
238
238
  end
@@ -17,8 +17,8 @@ describe RestClient::Request do
17
17
  @net.stub!(:verify_mode=)
18
18
  end
19
19
 
20
- it "requests xml mimetype" do
21
- @request.default_headers[:accept].should == 'application/xml'
20
+ it "accept */* mimetype, preferring xml" do
21
+ @request.default_headers[:accept].should == '*/*; q=0.5, application/xml'
22
22
  end
23
23
 
24
24
  it "decodes an uncompressed result body by passing it straight through" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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-06-29 00:00:00 -07:00
12
+ date: 2009-12-12 00:00:00 -08:00
13
13
  default_executable: restclient
14
14
  dependencies: []
15
15
 
@@ -44,6 +44,8 @@ files:
44
44
  - spec/restclient_spec.rb
45
45
  has_rdoc: true
46
46
  homepage: http://rest-client.heroku.com/
47
+ licenses: []
48
+
47
49
  post_install_message:
48
50
  rdoc_options:
49
51
  - --charset=UTF-8
@@ -64,9 +66,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
66
  requirements: []
65
67
 
66
68
  rubyforge_project: rest-client
67
- rubygems_version: 1.3.1
69
+ rubygems_version: 1.3.5
68
70
  signing_key:
69
- specification_version: 2
71
+ specification_version: 3
70
72
  summary: Simple REST client for Ruby, inspired by microframework syntax for specifying actions.
71
73
  test_files:
72
74
  - spec/base.rb