weary 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -47,7 +47,7 @@ module Weary
47
47
  # [<tt>with</tt>] An array of parameters that will be passed to the body or query of the request. If you pass a hash, it will define default <tt>values</tt> for params <tt>keys</tt>
48
48
  # [<tt>requires</tt>] Array of members of <tt>:with</tt> that are required by the resource.
49
49
  # [<tt>authenticates</tt>] Boolean value; does the resource require authentication?
50
- # [<tt>url</tt>] The url of the resource. You can use the same flags as #construct_url
50
+ # [<tt>url</tt>] The url of the resource.
51
51
  # [<tt>follows</tt>] Boolean; Does this follow redirects? Defaults to true
52
52
  # [<tt>headers</tt>] Set headers for the HTTP Request
53
53
  def get(name,&block)
@@ -105,6 +105,7 @@ module Weary
105
105
  # Build the HTTP connection.
106
106
  def http
107
107
  socket = Net::HTTP.new(uri.host, uri.port)
108
+ socket.use_ssl = uri.is_a?(URI::HTTPS)
108
109
  socket.verify_mode = OpenSSL::SSL::VERIFY_NONE if socket.use_ssl?
109
110
  socket
110
111
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{weary}
8
- s.version = "0.7.1"
8
+ s.version = "0.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Wunsch"]
12
- s.date = %q{2010-03-06}
12
+ s.date = %q{2010-03-08}
13
13
  s.description = %q{A tiny DSL that makes the consumption of RESTful web services simple.}
14
14
  s.email = %q{mark@markwunsch.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark Wunsch
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-06 00:00:00 -05:00
17
+ date: 2010-03-08 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency