ssl-test 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21729c3237468056d754aef8e94254d88385a81d
4
- data.tar.gz: 8d8f3b8ff9f3dbae8bac6d5342af42ed7ba39bd2
3
+ metadata.gz: a756e97336bda8d81ef0fb7a5f1da62c45e26ce5
4
+ data.tar.gz: f64dd6e1ffa1f3d40fa2f8d2bff5092113856fd7
5
5
  SHA512:
6
- metadata.gz: 52f5e5b81041aff3c33c97582f2163e3f72052fd541765dd8ec27d37900570109afc6d7f1a496fc95086bbccd7eb6828e86e3a1b127bb6652e9963f625dd423e
7
- data.tar.gz: 2bb85576cffb6265f3e4b16f846137968ae8ad74fdeda1da9f61a589dfcff26e8d8920f0ed8e69386e3e6c854f4fc4dfec98309e938f0ffc27c9ea1934b60b65
6
+ metadata.gz: 5d7223389c9fcd9489222563d8ee513b5f5ca27957d23cb1bc4396330c251494013589756ea1dbb4380c34434407548f297fd800899231b986d82b6e206919b1
7
+ data.tar.gz: 214b11cad69d2d3d5b51c050974ab6d17755018010b71100a6c9a292633b44df5c5147fa48cf75beaea9087e821792e002c7217d7739b164844ea84bc85fc168
data/README.md CHANGED
@@ -1,22 +1,15 @@
1
1
  # SSLTest
2
2
 
3
- A small tool to help you test a website's SSL certificate.
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
3
+ A small ruby gem to help you test a website's SSL certificate.
8
4
 
9
5
  ```ruby
10
6
  gem 'ssl-test'
11
7
  ```
12
8
 
13
- Or install it yourself as:
14
-
15
- $ gem install ssl-test
16
-
17
9
  ## Usage
18
10
 
19
11
  Simply call the `SSLTest.test` method and it'll return 3 values:
12
+
20
13
  1. the validity of the certificate
21
14
  2. the error message (if any)
22
15
  3. the certificate itself
@@ -59,7 +52,7 @@ Pretty much the same errors `curl` will:
59
52
 
60
53
  ### GOTCHA: errors SSLTest will NOT detect
61
54
 
62
- There is a spefic kind or error this code will *NOT* detect: *revoked certificates*. This is much more complex to handle because it needs an up to date database of revoked certs to check with. This is implemented in most modern browsers but the results vary greatly (chrome ignores this for example).
55
+ There is a spefic kind or error this code will **NOT** detect: *revoked certificates*. This is much more complex to handle because it needs an up to date database of revoked certs to check with. This is implemented in most modern browsers but the results vary greatly (chrome ignores this for example).
63
56
 
64
57
  Here is an example of website with a revoked certificate: https://revoked.grc.com/
65
58
 
@@ -1,7 +1,7 @@
1
1
  require "net/https"
2
2
 
3
3
  module SSLTest
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
 
6
6
  def self.test url
7
7
  uri = URI.parse(url)
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'ssl_test'
4
+ require 'ssl-test'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ssl-test"
@@ -1,4 +1,4 @@
1
- require "ssl_test"
1
+ require "ssl-test"
2
2
  require "minitest/autorun"
3
3
 
4
4
  describe SSLTest do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssl-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Jarthon
@@ -50,9 +50,9 @@ files:
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
- - lib/ssl_test.rb
53
+ - lib/ssl-test.rb
54
54
  - ssl-test.gemspec
55
- - test/ssl_test_test.rb
55
+ - test/ssl-test_test.rb
56
56
  homepage: https://github.com/jarthod/ssl-test
57
57
  licenses:
58
58
  - MIT
@@ -78,5 +78,5 @@ signing_key:
78
78
  specification_version: 4
79
79
  summary: Test website SSL certificate validity
80
80
  test_files:
81
- - test/ssl_test_test.rb
81
+ - test/ssl-test_test.rb
82
82
  has_rdoc: