lib/google_translate_tts/constanting.rb in google-translate-tts-0.1.0 vs lib/google_translate_tts/constanting.rb in google-translate-tts-0.2.0

- old
+ new

@@ -1,9 +1,20 @@ +# frozen_string_literal: true + module GoogleTranslateTts module Constanting - BASE_URL = ENV.fetch("TTS_BASE_URL", "http://translate.google.com") + BASE_URL = + ENV.fetch("TTS_BASE_URL", "http://translate.google.com") + + TTS_TMP_DIR = + ENV.fetch("TTS_TMP_DIR", File.expand_path("~/.tmp/tts_tmp", __dir__)) + REFERER = BASE_URL - USER_AGENT = ENV.fetch("TTS_UA", "Mozilla/5.0 (X11; CrOS x86_64 14767.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.9999.0 Safari/537.36") - TTS_TMP_DIR = ENV.fetch('TTS_TMP_DIR', File.expand_path('~/.tmp/tts_tmp', __FILE__)) + USER_AGENT = + ENV + .fetch( + "TTS_UA", + "Mozilla/5.0 (X11; CrOS x86_64 14767.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.9999.0 Safari/537.36" + ) end end