Sha256: 9fbaac4cd6e682c5afc5ea021888e5c53c9d62476cf91bb3d1936cc8bbab5e52

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

module WebTranslateIt
  class Util    
    def self.version
      hash = YAML.load_file File.join(File.dirname(__FILE__), '..', '..' '/version.yml')
      [hash[:major], hash[:minor], hash[:patch]].join('.')
    end
    
    def self.http_connection
      http = Net::HTTP.new('webtranslateit.com', 443)
      http.use_ssl      = true
      http.verify_mode  = OpenSSL::SSL::VERIFY_NONE
      http.read_timeout = 10
      yield http
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
web_translate_it-1.4.4 lib/web_translate_it/util.rb
web_translate_it-1.4.3 lib/web_translate_it/util.rb