ruby-sslyze 1.2.0 → 1.2.1

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
- SHA1:
3
- metadata.gz: a401e719011f8dd22bf41cf0d9dc7889e567869d
4
- data.tar.gz: 1891c35d2cc16ff5e3c33c39a3b769fd0190505b
2
+ SHA256:
3
+ metadata.gz: 0eba55b4d4d6e49f2b4db587cdb012e21c696885aeb51013edd7a32242a83297
4
+ data.tar.gz: 71003121f56ca5d7229c03a181628c371de74fc13e7bcbf9b95947fcc4c03c7d
5
5
  SHA512:
6
- metadata.gz: b2c9228222a5c610863772410ecb91e4a738e509f0c8af207f93f0830fcb0db0550c9b2c7ff871c666f58197a655a76e3a621bca0984cbd5fb0cc90907522fd6
7
- data.tar.gz: 47a1edeae3a5dcdd424a06c472904016bf95ca1d779b3b867bbba2e9c052c048275da63f390681ef65990d9ddf3bb2ddd3f149bce3b3b79f6c191964d9e5e012
6
+ metadata.gz: 9f8ae9a4ae4051ae8ff4d5c62c9f720eda69cdf7cf499197d863c1eb0eeaaa09b406b8596f648e6e12177b1857d0d091f07a4e77d8fe3b6d4112dcaeb2b5abb5
7
+ data.tar.gz: 9b2cc4c128cafa65301b985241422c8316547c172cc9fc69b78164cff41b6e94ad031d35580e02a25de9803ea1182d0133c26de2a3ffb61eb1edee7cb746ca5b
@@ -1,25 +1,33 @@
1
+ env:
2
+ global:
3
+ - CC_TEST_REPORTER_ID=2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8
4
+
1
5
  language: ruby
2
- sudo: false
3
6
  before_install:
7
+ - gem update --system
8
+ - gem install bundler -v "~> 2.0"
4
9
  - pip install --upgrade --user pip setuptools
5
10
  - pip install --upgrade --user nassl sslyze
6
11
 
7
12
  rvm:
8
- - 2.3
9
- - 2.4
10
- - ruby-head
13
+ - 2.5
14
+ - 2.6
15
+ - 2.7
11
16
  - jruby
12
-
13
17
  matrix:
14
18
  allow_failures:
15
19
  - rvm: jruby
16
20
 
17
- addons:
18
- code_climate:
19
- repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8
21
+ before_script:
22
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
23
+ - chmod +x ./cc-test-reporter
24
+ - ./cc-test-reporter before-build
25
+
26
+ script:
27
+ - bundle exec rake spec
20
28
 
21
- after_success:
22
- - bundle exec codeclimate-test-reporter
29
+ after_script:
30
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
23
31
 
24
32
  notifications:
25
33
  slack:
@@ -1,3 +1,8 @@
1
+ ### 1.2.1 / 2020-05-05
2
+
3
+ * Allow {SSLyze::XML#total_scan_time} to return `nil`, if the `totalScanTime`
4
+ attribute is missing.
5
+
1
6
  ### 1.2.0 / 2018-04-03
2
7
 
3
8
  * Replaced `SSLyze::X509::PublicKey` with
data/Gemfile CHANGED
@@ -15,5 +15,4 @@ end
15
15
  group :test do
16
16
  gem 'json'
17
17
  gem 'simplecov', require: nil
18
- gem 'codeclimate-test-reporter', '~> 1.0.0', require: nil
19
18
  end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2018 Hal Brodigan
1
+ Copyright (c) 2014-2020 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -58,7 +58,7 @@ Parsing sslyze XML output:
58
58
 
59
59
  ## Copyright
60
60
 
61
- Copyright (c) 2014-2018 Hal Brodigan
61
+ Copyright (c) 2014-2020 Hal Brodigan
62
62
 
63
63
  See {file:LICENSE.txt} for details.
64
64
 
@@ -1,4 +1,4 @@
1
1
  module SSLyze
2
2
  # ruby-sslyze version
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
@@ -75,10 +75,12 @@ module SSLyze
75
75
  #
76
76
  # Duration of the scan.
77
77
  #
78
- # @return [Float]
78
+ # @return [Float, nil]
79
79
  #
80
80
  def total_scan_time
81
- @start_tls ||= @doc.at_xpath('/document/results/@totalScanTime').value.to_f
81
+ @total_scan_time ||= if (attr = @doc.at_xpath('/document/results/@totalScanTime'))
82
+ attr.value.to_f
83
+ end
82
84
  end
83
85
 
84
86
  # Enumerates over each invalid target.
@@ -22,5 +22,5 @@ Gem::Specification.new do |gem|
22
22
  gem.add_dependency 'rprogram', '~> 0.3'
23
23
  gem.add_dependency 'nokogiri', '~> 1.8'
24
24
 
25
- gem.add_development_dependency 'bundler', '~> 1.0'
25
+ gem.add_development_dependency 'bundler', '~> 2.0'
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-sslyze
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Brodigan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-03 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rprogram
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '2.0'
55
55
  description: A ruby interface to the sslyze python utility
56
56
  email: postmodern.mod3@gmail.com
57
57
  executables: []
@@ -191,8 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements:
193
193
  - sslyze >= 1.4.0
194
- rubyforge_project:
195
- rubygems_version: 2.6.14
194
+ rubygems_version: 3.0.3
196
195
  signing_key:
197
196
  specification_version: 4
198
197
  summary: Ruby interface to sslyze