adamwiggins-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.
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: adamwiggins-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-07-29 00:00:00 -07:00
13
13
  default_executable: restclient
14
14
  dependencies: []
15
15
 
@@ -44,6 +44,7 @@ files:
44
44
  - spec/restclient_spec.rb
45
45
  has_rdoc: true
46
46
  homepage: http://rest-client.heroku.com/
47
+ licenses:
47
48
  post_install_message:
48
49
  rdoc_options:
49
50
  - --charset=UTF-8
@@ -64,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
65
  requirements: []
65
66
 
66
67
  rubyforge_project: rest-client
67
- rubygems_version: 1.2.0
68
+ rubygems_version: 1.3.5
68
69
  signing_key:
69
70
  specification_version: 2
70
71
  summary: Simple REST client for Ruby, inspired by microframework syntax for specifying actions.