ssllabs 1.24.0.1 → 1.24.0.2
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 +4 -4
- data/lib/ssllabs/api_object.rb +4 -4
- data/lib/ssllabs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10fb46d1c1744d8190016391767c29e71ec86a21
|
|
4
|
+
data.tar.gz: 632145ff34a23feb9fc4e1d80b04af25153bd357
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36a2d1a1ff2c35c18d4851f36cdf3226397c71f46c0b3f21f3649c5a560c62884133121e22a60539cd239d904e180b89eaee48829d545111f15c671b436f53e2
|
|
7
|
+
data.tar.gz: 1c22b77e16b4750fdd091fddbcfaadf4a4422c1b3889a05f8685c7ea28d53a343d42cd11adcd8158c237ce6b226179354dc8578af6a05d813527bf5a2db2fbfc
|
data/lib/ssllabs/api_object.rb
CHANGED
|
@@ -74,7 +74,7 @@ module Ssllabs
|
|
|
74
74
|
obj
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
def
|
|
77
|
+
def to_api_hash(with_api_names: false)
|
|
78
78
|
obj = {}
|
|
79
79
|
self.class.all_attributes.each do |api_name|
|
|
80
80
|
v = instance_variable_get("@#{api_name}")
|
|
@@ -85,8 +85,8 @@ module Ssllabs
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
def to_hash_value(entry, with_api_names)
|
|
88
|
-
if entry.respond_to?(:
|
|
89
|
-
entry.
|
|
88
|
+
if entry.respond_to?(:to_api_hash)
|
|
89
|
+
entry.to_api_hash(with_api_names: with_api_names)
|
|
90
90
|
elsif entry.is_a?(Array)
|
|
91
91
|
entry.map { |entry| to_hash_value(entry, with_api_names) }
|
|
92
92
|
else
|
|
@@ -95,7 +95,7 @@ module Ssllabs
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def to_json(opts={})
|
|
98
|
-
|
|
98
|
+
to_api_hash(with_api_names: true).to_json
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
end
|
data/lib/ssllabs/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ssllabs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.24.0.
|
|
4
|
+
version: 1.24.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francois Chagnon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
104
|
rubyforge_project:
|
|
105
|
-
rubygems_version: 2.5.
|
|
105
|
+
rubygems_version: 2.5.2
|
|
106
106
|
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Ruby API for Qualys SSL Labs scanner.
|