typhoeus 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -23,11 +23,11 @@ module Typhoeus
23
23
  end
24
24
 
25
25
  def disable_ssl_peer_verification
26
- set_option(:verifypeer, 0)
26
+ set_option(:ssl_verifypeer, 0)
27
27
  end
28
28
 
29
29
  def disable_ssl_host_verification
30
- set_option(:verifyhost, 0)
30
+ set_option(:ssl_verifyhost, 0)
31
31
  end
32
32
 
33
33
  # Set SSL certificate
@@ -1,3 +1,3 @@
1
1
  module Typhoeus
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
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.0
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-08 00:00:00.000000000 Z
14
+ date: 2012-06-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ffi