net_http_ssl_fix 0.0.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.
- checksums.yaml +7 -0
 - data/.gitignore +39 -0
 - data/LICENSE +21 -0
 - data/README.md +57 -0
 - data/data/cacert.pem +3893 -0
 - data/lib/core_extensions/net/http.rb +14 -0
 - data/lib/net_http_ssl_fix.rb +8 -0
 - data/lib/net_http_ssl_fix/version.rb +3 -0
 - data/net_http_ssl_fix.gemspec +16 -0
 - metadata +53 -0
 
| 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'open-uri'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'net/https'
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module Net
         
     | 
| 
      
 5 
     | 
    
         
            +
              class HTTP
         
     | 
| 
      
 6 
     | 
    
         
            +
                alias_method :original_use_ssl=, :use_ssl=
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
                def use_ssl=(flag)
         
     | 
| 
      
 9 
     | 
    
         
            +
                  self.ca_file = NetHttpSslFix::LOCAL_CA_FILE
         
     | 
| 
      
 10 
     | 
    
         
            +
                  self.verify_mode = OpenSSL::SSL::VERIFY_PEER
         
     | 
| 
      
 11 
     | 
    
         
            +
                  self.original_use_ssl = flag
         
     | 
| 
      
 12 
     | 
    
         
            +
                end
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,16 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'net_http_ssl_fix/version'
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 5 
     | 
    
         
            +
              s.name          = 'net_http_ssl_fix'
         
     | 
| 
      
 6 
     | 
    
         
            +
              s.version       = NetHttpSslFix::VERSION
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.summary       = 'Community-updated Net::HTTP certificate authority file hack. Very useful for authoring HTTP clients that must run on Ruby + Windows.'
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.description   = 'Get rid of this lovely error for good, especially on Windows: `SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`'
         
     | 
| 
      
 9 
     | 
    
         
            +
              s.authors       = ['Chris Peters']
         
     | 
| 
      
 10 
     | 
    
         
            +
              s.email         = 'chris@minimalorange.com'
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.license       = 'MIT'
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.homepage      = 'https://github.com/liveeditor/net_http_ssl_fix'
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              s.files         = `git ls-files`.split("\n")
         
     | 
| 
      
 15 
     | 
    
         
            +
              s.require_paths = ['lib']
         
     | 
| 
      
 16 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,53 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: net_http_ssl_fix
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.1
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Chris Peters
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-03-29 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies: []
         
     | 
| 
      
 13 
     | 
    
         
            +
            description: 'Get rid of this lovely error for good, especially on Windows: `SSL_connect
         
     | 
| 
      
 14 
     | 
    
         
            +
              returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`'
         
     | 
| 
      
 15 
     | 
    
         
            +
            email: chris@minimalorange.com
         
     | 
| 
      
 16 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 17 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 18 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 19 
     | 
    
         
            +
            files:
         
     | 
| 
      
 20 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
      
 21 
     | 
    
         
            +
            - LICENSE
         
     | 
| 
      
 22 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 23 
     | 
    
         
            +
            - data/cacert.pem
         
     | 
| 
      
 24 
     | 
    
         
            +
            - lib/core_extensions/net/http.rb
         
     | 
| 
      
 25 
     | 
    
         
            +
            - lib/net_http_ssl_fix.rb
         
     | 
| 
      
 26 
     | 
    
         
            +
            - lib/net_http_ssl_fix/version.rb
         
     | 
| 
      
 27 
     | 
    
         
            +
            - net_http_ssl_fix.gemspec
         
     | 
| 
      
 28 
     | 
    
         
            +
            homepage: https://github.com/liveeditor/net_http_ssl_fix
         
     | 
| 
      
 29 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 30 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 31 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 32 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 33 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 34 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 35 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 36 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 39 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 41 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 42 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 43 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 44 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 45 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 46 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 47 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 48 
     | 
    
         
            +
            rubygems_version: 2.4.5.1
         
     | 
| 
      
 49 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 50 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 51 
     | 
    
         
            +
            summary: Community-updated Net::HTTP certificate authority file hack. Very useful
         
     | 
| 
      
 52 
     | 
    
         
            +
              for authoring HTTP clients that must run on Ruby + Windows.
         
     | 
| 
      
 53 
     | 
    
         
            +
            test_files: []
         
     |