lib/tls_map/utils.rb in tls-map-1.0.0 vs lib/tls_map/utils.rb in tls-map-1.1.0

- old
+ new

@@ -4,16 +4,21 @@ require 'net/http' require 'tempfile' # TLS map module module TLSmap - # TLS mapping - class App + # Generic utilities + module Utils def tmpfile(name, url) tmp = Tempfile.new(name) tmp.write(Net::HTTP.get(URI(url))) + tmp.close tmp end + end + # TLS mapping + class App + include Utils protected :tmpfile end end