lib/tls_map/app/extended/ciphersuiteinfo.rb in tls-map-2.2.0 vs lib/tls_map/app/extended/ciphersuiteinfo.rb in tls-map-3.0.0
- old
+ new
@@ -19,11 +19,11 @@
# - https://github.com/hcrudolph/ciphersuite.info
class Extended
# Root URL of Cipher Suite Info
ROOT = 'https://ciphersuite.info/'
# Root URL of Cipher Suite Info API
- API_ROOT = "#{ROOT}api/"
+ API_ROOT = "#{ROOT}api/".freeze
# URL of the data file containing vulnerabilities information
VULN_DATA = 'https://raw.githubusercontent.com/hcrudolph/ciphersuite.info/master/directory/fixtures/00_vulnerabilities.yaml'
# URL of the data file containing technologies information
TECH_DATA = 'https://raw.githubusercontent.com/hcrudolph/ciphersuite.info/master/directory/fixtures/01_technologies.yaml'
# Hash mapping API key and display name for CLI
@@ -77,10 +77,10 @@
# for batch usage.
# The data will be available through {enhanced_data}.
def enhance_all
fetch_ciphersuite
out = {}
- @ciphersuite_all.each do |k, _v|
+ @ciphersuite_all.each_key do |k|
out.store(k, extend(k, true))
end
@enhanced_data = out
end