certified 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +5 -0
  2. data/certified.rb +1 -1
  3. metadata +5 -3
@@ -0,0 +1,5 @@
1
+ # Certified
2
+
3
+ Solves http://martinottenwaelter.fr/2010/12/ruby19-and-the-ssl-error/ by providing a crt bundle and explicitly telling Ruby where to find it. Also forces `OpenSSL::SSL::VERIFY_PEER`
4
+
5
+ <pre>gem install certified</pre>
@@ -4,7 +4,7 @@ Net::HTTP.class_eval do
4
4
  alias _use_ssl= use_ssl=
5
5
 
6
6
  def use_ssl= boolean
7
- self.ca_file = './certs/ca-bundle.crt'
7
+ self.ca_file = "#{File.dirname(__FILE__)}/certs/ca-bundle.crt"
8
8
  self.verify_mode = OpenSSL::SSL::VERIFY_PEER
9
9
  self._use_ssl = boolean
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: certified
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-26 00:00:00.000000000Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ensure net/https uses OpenSSL::SSL::VERIFY_PEER to verify SSL certificates
15
15
  and provides certificate bundle in case OpenSSL cannot find one
@@ -18,6 +18,7 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - README.md
21
22
  - certified.rb
22
23
  - certs/ca-bundle.crt
23
24
  homepage: http://github.com/stevegraham/certified
@@ -40,9 +41,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
41
  version: '0'
41
42
  requirements: []
42
43
  rubyforge_project:
43
- rubygems_version: 1.8.6
44
+ rubygems_version: 1.8.11
44
45
  signing_key:
45
46
  specification_version: 3
46
47
  summary: Ensure net/https uses OpenSSL::SSL::VERIFY_PEER to verify SSL certificates
47
48
  and provides certificate bundle in case OpenSSL cannot find one
48
49
  test_files: []
50
+ has_rdoc: