paul-resourceful 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,6 +75,9 @@ module Resourceful
75
75
  request(:get, nil, header)
76
76
  end
77
77
 
78
+ def head(header = {})
79
+ request(:head, nil, header)
80
+ end
78
81
  # :call-seq:
79
82
  # post(data = "", :content_type => mime_type)
80
83
  #
@@ -68,7 +68,8 @@ module Resourceful
68
68
  # Update our headers from a later 304 response
69
69
  def revalidate!(not_modified_response)
70
70
  header.merge!(not_modified_response.header)
71
- request_time = not_modified_response.request_time
71
+ @request_time = not_modified_response.request_time
72
+ @response_time = not_modified_response.response_time
72
73
  @authoritative = true
73
74
  end
74
75
 
data/lib/resourceful.rb CHANGED
@@ -12,7 +12,7 @@ require 'resourceful/http_accessor'
12
12
 
13
13
  # Resourceful is a library that provides a high level HTTP interface.
14
14
  module Resourceful
15
- VERSION = "0.5.3"
15
+ VERSION = "0.5.4"
16
16
  RESOURCEFUL_USER_AGENT_TOKEN = "Resourceful/#{VERSION}(Ruby/#{RUBY_VERSION})"
17
17
 
18
18
  end
data/resourceful.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{resourceful}
5
- s.version = "0.5.3"
5
+ s.version = "0.5.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Paul Sadauskas"]
9
- s.date = %q{2009-07-15}
9
+ s.date = %q{2009-07-28}
10
10
  s.description = %q{An HTTP library for Ruby that takes advantage of everything HTTP has to offer.}
11
11
  s.email = %q{psadauskas@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/resourceful.rb", "lib/resourceful/net_http_adapter.rb", "lib/resourceful/stubbed_resource_proxy.rb", "lib/resourceful/header.rb", "lib/resourceful/memcache_cache_manager.rb", "lib/resourceful/response.rb", "lib/resourceful/util.rb", "lib/resourceful/options_interpreter.rb", "lib/resourceful/cache_manager.rb", "lib/resourceful/request.rb", "lib/resourceful/resource.rb", "lib/resourceful/exceptions.rb", "lib/resourceful/http_accessor.rb", "lib/resourceful/authentication_manager.rb", "README.markdown"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paul-resourceful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Sadauskas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-15 00:00:00 -07:00
12
+ date: 2009-07-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -127,6 +127,7 @@ files:
127
127
  - resourceful.gemspec
128
128
  has_rdoc: false
129
129
  homepage: http://github.com/paul/resourceful
130
+ licenses:
130
131
  post_install_message:
131
132
  rdoc_options:
132
133
  - --line-numbers
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  requirements: []
153
154
 
154
155
  rubyforge_project: resourceful
155
- rubygems_version: 1.2.0
156
+ rubygems_version: 1.3.5
156
157
  signing_key:
157
158
  specification_version: 3
158
159
  summary: An HTTP library for Ruby that takes advantage of everything HTTP has to offer.