typhoeus 0.4.0 → 0.4.1
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/Rakefile +6 -0
- data/lib/typhoeus/easy/options.rb +2 -2
- data/lib/typhoeus/easy/ssl.rb +2 -2
- data/lib/typhoeus/version.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -10,6 +10,12 @@ task :install do
|
|
10
10
|
puts `gem install typhoeus-*.gem`
|
11
11
|
end
|
12
12
|
|
13
|
+
task :release => :build do
|
14
|
+
system "git tag -a v#{Typhoeus::VERSION} -m 'Tagging #{Typhoeus::VERSION}'"
|
15
|
+
system "git push --tags"
|
16
|
+
system "gem push typhoeus-#{Typhoeus::VERSION}.gem"
|
17
|
+
end
|
18
|
+
|
13
19
|
desc "Start up the test servers"
|
14
20
|
task :start_test_servers do
|
15
21
|
require 'spec/support/typhoeus_localhost_server'
|
@@ -107,8 +107,8 @@ module Typhoeus
|
|
107
107
|
|
108
108
|
def set_headers
|
109
109
|
@header_list = nil
|
110
|
-
headers.each {|key, value| @header_list = Curl.slist_append(@header_list, "#{key}: #{value}") }
|
111
|
-
set_option(:httpheader, @header_list) unless headers.empty?
|
110
|
+
@headers.each {|key, value| @header_list = Curl.slist_append(@header_list, "#{key}: #{value}") }
|
111
|
+
set_option(:httpheader, @header_list) unless @headers.empty?
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
data/lib/typhoeus/easy/ssl.rb
CHANGED
@@ -23,11 +23,11 @@ module Typhoeus
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def disable_ssl_peer_verification
|
26
|
-
set_option(:
|
26
|
+
set_option(:ssl_verifypeer, 0)
|
27
27
|
end
|
28
28
|
|
29
29
|
def disable_ssl_host_verification
|
30
|
-
set_option(:
|
30
|
+
set_option(:ssl_verifyhost, 0)
|
31
31
|
end
|
32
32
|
|
33
33
|
# Set SSL certificate
|
data/lib/typhoeus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typhoeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-06-
|
14
|
+
date: 2012-06-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: ffi
|