httparty 0.7.3 → 0.7.4
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/History +4 -0
- data/httparty.gemspec +2 -2
- data/lib/httparty.rb +1 -1
- data/lib/httparty/request.rb +3 -0
- metadata +4 -4
data/History
CHANGED
data/httparty.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{httparty}
|
|
8
|
-
s.version = "0.7.
|
|
8
|
+
s.version = "0.7.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["John Nunemaker", "Sandro Turriate"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-02-13}
|
|
13
13
|
s.default_executable = %q{httparty}
|
|
14
14
|
s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
|
|
15
15
|
s.email = %q{nunemaker@gmail.com}
|
data/lib/httparty.rb
CHANGED
data/lib/httparty/request.rb
CHANGED
|
@@ -75,6 +75,8 @@ module HTTParty
|
|
|
75
75
|
|
|
76
76
|
def attach_ssl_certificates(http)
|
|
77
77
|
if http.use_ssl?
|
|
78
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
79
|
+
|
|
78
80
|
# Client certificate authentication
|
|
79
81
|
if options[:pem]
|
|
80
82
|
http.cert = OpenSSL::X509::Certificate.new(options[:pem])
|
|
@@ -87,6 +89,7 @@ module HTTParty
|
|
|
87
89
|
http.ca_file = options[:ssl_ca_file]
|
|
88
90
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
89
91
|
end
|
|
92
|
+
|
|
90
93
|
if options[:ssl_ca_path]
|
|
91
94
|
http.ca_path = options[:ssl_ca_path]
|
|
92
95
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: httparty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
|
-
-
|
|
10
|
-
version: 0.7.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.7.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- John Nunemaker
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-
|
|
19
|
+
date: 2011-02-13 00:00:00 -07:00
|
|
20
20
|
default_executable: httparty
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|