lib/timezone/lookup.rb in timezone-1.3.25 vs lib/timezone/lookup.rb in timezone-1.3.26
- old
+ new
@@ -2,16 +2,17 @@
require 'timezone/lookup/geonames'
require 'timezone/lookup/google'
require 'timezone/lookup/test'
require 'timezone/net_http_client'
+require 'ostruct'
module Timezone
# Configure timezone lookups.
module Lookup
class << self
- MISSING_LOOKUP = 'No lookup configured'.freeze
+ MISSING_LOOKUP = 'No lookup configured'
private_constant :MISSING_LOOKUP
# Returns the lookup object
#
# @return [#lookup] the lookup object
@@ -43,10 +44,10 @@
geonames: ::Timezone::Lookup::Geonames,
google: ::Timezone::Lookup::Google,
test: ::Timezone::Lookup::Test
}.freeze
- INVALID_LOOKUP = 'Invalid lookup specified'.freeze
+ INVALID_LOOKUP = 'Invalid lookup specified'
attr_reader :config
def initialize(lookup)
if lookup.is_a?(Symbol)