tz-traveler 23.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 57343c0488f80be8952157dd02ec66c47ad7ed211456acd2cdfad567caceb163
4
+ data.tar.gz: bdd46681602228028e29bdffb4458755eb5a2af7e542a7cfb93e33d0f671495d
5
+ SHA512:
6
+ metadata.gz: 87712a936818e7a0cd7ae4ad7a810d2603488ec7b3a1a64450055e12b46a449615cf2e85c5cd1d5150b38dc85391dd16be1221461359f94fb54fd7e31187fcc3
7
+ data.tar.gz: 88bfd963a7082a48e38fe478a1d794b2a08b1a3699a41ddd2af44163d1886c50990a0f5a3aca53a47cb44ed4175fa81c1c05d90b880f83633539cfb606bc1406
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jan.lindblom@mittmedia.se. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+ git_source(:bitbucket) {|repo_name| "https://bitbucket.org/#{repo_name}.git" }
5
+
6
+ #gem "quadtree", bitbucket: "janlindblom/ruby-quadtree", branch: :develop #, tag: "v1.0.2"
7
+
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Jan Lindblom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # TimeTraveler
2
+
3
+ TimeTraveler finds timezones based on geographical coordinates using offline
4
+ data and Quadtree lookups intead of an online API.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'tz-traveler'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install tz-traveler
21
+
22
+ ## Usage
23
+
24
+ Find a timezone for a geographical coordinate (WGS84) like so:
25
+
26
+ ```ruby
27
+ require 'time_traveler'
28
+
29
+ TimeTraveler.find_timezone(77.2090210, 28.6139390)
30
+ ```
31
+
32
+ ## How it Works
33
+
34
+ The TimeTraveler gem contains a rather large blob which is in reality a JSON document describing a full Quadtree with all the cities contained in the GeoNames "Free Gazetteer extract" file `cities15000.zip` which contains "cities with a population > 15000 or capitals (ca 25.000)".
35
+
36
+ The Quadtree datastructure contains only the WGS84 coordinates and the IANA timezone for each city, so that it's really just big set of time zones at different places on the earth.
37
+
38
+ This Quadtree can be rebuilt periodically from the latest version available from GeoNames.
39
+
40
+ The `cities15000.zip` file is downloaded from GeoNames [Free Gazetteer Data](http://download.geonames.org/export/dump/) where it is made available under a [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) License.
41
+
42
+ ## Development
43
+
44
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on Bitbucket at <https://github.com/janlindblom/ruby-timetraveler>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
+
52
+ ## License
53
+
54
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
55
+
56
+ Geographical data from the GeoNames Free Gazetteer extract `cities15000.zip` file is used under the [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) License.
57
+
58
+ The embedded JSON data structure contained in the TimeTraveler gem constructed from this data is to be considered an adapted work in accordance with this license.
59
+
60
+ ## Code of Conduct
61
+
62
+ Everyone interacting in the TimezoneCalculator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/janlindblom/ruby-timetraveler/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,41 @@
1
+ require "bundler/gem_tasks"
2
+ require "yard"
3
+ require "yard/rake/yardoc_task"
4
+ require 'rubocop/rake_task'
5
+
6
+ Dir.glob('rake/*.rake').each { |r| load r}
7
+
8
+ YARD::Rake::YardocTask.new do |t|
9
+ t.files = ['lib/**/*.rb']
10
+ t.stats_options = ['--list-undoc']
11
+ end
12
+
13
+ RuboCop::RakeTask.new(:rubocop) do |task|
14
+ task.patterns = ['lib/**/*.rb']
15
+ # only show the files with failures
16
+ #task.formatters = ['worst']
17
+ # don't abort rake on failure
18
+ task.fail_on_error = true
19
+ end
20
+
21
+ begin
22
+ require 'rspec/core/rake_task'
23
+ namespace :spec do
24
+ RSpec::Core::RakeTask.new(:offline) do |t, task_args|
25
+ t.rspec_opts = "--tag offline"
26
+ end
27
+
28
+ RSpec::Core::RakeTask.new(:online) do |t, task_args|
29
+ t.rspec_opts = "--tag online"
30
+ end
31
+
32
+ RSpec::Core::RakeTask.new(:all) do |t, task_args|
33
+ t.rspec_opts = "--tag online --tag offline"
34
+ end
35
+ end
36
+
37
+ task spec: "spec:all"
38
+
39
+ task default: :spec
40
+ rescue LoadError
41
+ end
Binary file
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'quadtree'
4
+
5
+ module TimeTraveler
6
+ # Utilities for working with data files.
7
+ #
8
+ # @api private
9
+ class Utils
10
+ class << self
11
+ # Load timezone database from file.
12
+ #
13
+ # @param [Pathname] working_directory
14
+ # @return [Quadtree::Quadtree] the database.
15
+ def load_timezone_data(working_directory = TimeTraveler::DATA_DIR)
16
+ require 'json'
17
+ Quadtree::Quadtree.from_json(JSON.load(unpack_timezone_data(working_directory)))
18
+ end
19
+
20
+ # @param [String] cities_file
21
+ # @param [String] target_directory
22
+ def download_geonames_data(cities_file, target_directory)
23
+ require 'net/http'
24
+ resp = nil
25
+ Net::HTTP.start('download.geonames.org') do |http|
26
+ resp = http.get("/export/dump/#{cities_file}.zip")
27
+ open("#{target_directory}/#{cities_file}.zip", 'wb') do |file|
28
+ file.write(resp.body)
29
+ end
30
+ end
31
+ !resp.nil? && resp.code.to_i < 400
32
+ end
33
+
34
+ # @param [String] cities_file
35
+ # @param [String] working_directory
36
+ def unzip_geonames_data(cities_file, working_directory)
37
+ require 'zip'
38
+ Zip.on_exists_proc = true
39
+
40
+ extracted = Zip::File.open("#{working_directory}/#{cities_file}.zip") do |zip_file|
41
+ zip_file.each do |entry|
42
+ entry.extract("#{working_directory}/#{entry.name}")
43
+ end
44
+ end
45
+ !extracted.nil? && extracted.size.positive?
46
+ end
47
+
48
+ # @param [String] cities_file
49
+ # @param [String] working_directory
50
+ # @param [String] target_directory
51
+ # @return [Quadtree::Quadtree] the database.
52
+ def process_geonames_data(cities_file, working_directory, target_directory = './lib/data')
53
+ require 'csv'
54
+
55
+ aabb = Quadtree::AxisAlignedBoundingBox.new(Quadtree::Point.new(0, 0), 180)
56
+ qt = Quadtree::Quadtree.new(aabb)
57
+
58
+ parsed_file = CSV.read("#{working_directory}/#{cities_file}.txt", :col_sep => "\t")
59
+ parsed_file.each do |entry|
60
+ next unless entry.size > 18
61
+
62
+ latitude = entry[4]
63
+ longitude = entry[5]
64
+ timezone = entry[17]
65
+ unless latitude.nil? || longitude.nil? || timezone.nil?
66
+ point = Quadtree::Point.new(longitude.to_f, latitude.to_f, timezone)
67
+ qt.insert! point
68
+ end
69
+ end
70
+
71
+ File.open("#{target_directory}/cities.data", 'w') do |f|
72
+ f.write qt.to_json
73
+ end
74
+
75
+ pack_timezone_data(target_directory)
76
+
77
+ qt
78
+ end
79
+
80
+ # @param [Pathname] working_directory
81
+ def pack_timezone_data(working_directory = TimeTraveler::DATA_DIR)
82
+ require 'zlib'
83
+ working_directory = Pathname.new(working_directory) if working_directory.is_a? String
84
+
85
+ Zlib::GzipWriter.open(working_directory.join('cities.data.gz')) do |gz|
86
+ File.open(working_directory.join('cities.data')) do |fp|
87
+ while (chunk = fp.read(16 * 1024))
88
+ gz.write chunk
89
+ end
90
+ end
91
+ gz.close
92
+ end
93
+ end
94
+
95
+ # @param [Pathname] working_directory
96
+ # @return [String]
97
+ def unpack_timezone_data(working_directory = TimeTraveler::DATA_DIR)
98
+ require 'zlib'
99
+ working_directory = Pathname.new(working_directory) if working_directory.is_a? String
100
+ gz = Zlib::GzipReader.open(working_directory.join('cities.data.gz'))
101
+ gz.read
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TimeTraveler
4
+ # Current version
5
+ VERSION = '23.1.2'
6
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'time_traveler/version'
4
+ require 'time_traveler/utils'
5
+ require 'quadtree'
6
+ require 'tzinfo'
7
+
8
+ # Find the time zone for a given geographical coordinate.
9
+ #
10
+ # @author Jan Lindblom <janlindblom@fastmail.fm>
11
+ module TimeTraveler
12
+ # Find the timezone for a given set of coordinates.
13
+ #
14
+ # @param [Float] longitude the longitude.
15
+ # @param [Float] latitude the latitude.
16
+ # @return [TZInfo::Timezone] an object describing the timezone.
17
+ def self.find_timezone(longitude, latitude)
18
+ world = Utils.load_timezone_data
19
+ entry_point = Quadtree::Point.new(longitude, latitude)
20
+ radius = 6
21
+ zones = []
22
+ while zones.size.zero? || (zones.size > 1)
23
+ points = world.query_range(Quadtree::AxisAlignedBoundingBox.new(entry_point, radius))
24
+ zones = points.map { |p| TZInfo::Timezone.get(p.data) }.uniq
25
+ radius -= 0.5
26
+ end
27
+ zones.first
28
+ end
29
+
30
+ DATA_DIR = Pathname.new(__FILE__).join('../data').freeze
31
+ end
@@ -0,0 +1,35 @@
1
+ require 'time_traveler/utils'
2
+ City = Struct.new(:name, :latitude, :longitude, :timezone)
3
+
4
+ CITIES_FILE="cities15000"
5
+
6
+ # Geonames cities database: http://download.geonames.org/export/dump/cities5000.zip
7
+ namespace "metadata" do
8
+ directory "tmp"
9
+ directory "lib/data"
10
+
11
+ task download: :tmp do |t|
12
+ puts "Downloading #{CITIES_FILE}.zip from geonames.org..."
13
+ TimeTraveler::Utils.download_geonames_data(CITIES_FILE, "./tmp")
14
+ puts "Download finished. Stored as 'tmp/#{CITIES_FILE}.zip'."
15
+ end
16
+
17
+ task unzip: :download do |t|
18
+ puts "Unzipping cities database from 'tmp/#{CITIES_FILE}.zip'..."
19
+ TimeTraveler::Utils.unzip_geonames_data(CITIES_FILE, "./tmp")
20
+ puts "Done."
21
+ end
22
+
23
+ task process: [:unzip, "lib/data"] do |t|
24
+ TimeTraveler::Utils.process_geonames_data(CITIES_FILE, "./tmp")
25
+ end
26
+
27
+ task :clean do |t|
28
+ rm_rf "tmp"
29
+ rm_f "lib/data/cities.data"
30
+ end
31
+
32
+ desc "Update metadata from geonames.org"
33
+ task update: [:tmp, :download, :unzip, :process] do |t|
34
+ end
35
+ end
@@ -0,0 +1,49 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "time_traveler/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tz-traveler"
8
+ spec.version = TimeTraveler::VERSION
9
+ spec.authors = ["Jan Lindblom"]
10
+ spec.email = ["janlindblom@fastmail.fm"]
11
+ spec.date = "2023-01-16"
12
+ spec.summary = %q{Find timezone based on geographical location, offline.}
13
+ spec.homepage = "https://github.com/janlindblom/ruby-timetraveler"
14
+ spec.license = "MIT"
15
+
16
+ if spec.respond_to? :specification_version then
17
+ spec.specification_version = 4
18
+ end
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(bin|test|spec|features|.github)/}) ||
22
+ f == ".gitignore" ||
23
+ f == ".editorconfig" ||
24
+ f == ".rspec" ||
25
+ f == ".gitlab-ci.yml" ||
26
+ f == ".rubocop.yml" ||
27
+ f == ".rubocop_todo.yml" ||
28
+ f == "Jenkinsfile"
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
34
+
35
+ spec.add_development_dependency "bundler", "~> 2"
36
+ spec.add_development_dependency "rake", "~> 13"
37
+ spec.add_development_dependency "rspec", "~> 3"
38
+ spec.add_development_dependency "pry", "~> 0.14"
39
+ spec.add_development_dependency "rubyzip", "~> 2.3"
40
+ spec.add_development_dependency "dotenv", "~> 2.7"
41
+ spec.add_development_dependency "yard", "~> 0.9"
42
+ spec.add_development_dependency "simplecov", "~> 0.21"
43
+ spec.add_development_dependency "rspec_junit_formatter", "~> 0.6"
44
+ spec.add_development_dependency "simplecov-cobertura", "~> 2.1"
45
+ spec.add_development_dependency "rubocop", "~> 1"
46
+ spec.add_runtime_dependency "quadtree", "~> 1.0.9"
47
+ spec.add_runtime_dependency "tzinfo", "~> 2.0"
48
+ spec.add_runtime_dependency "tzinfo-data", "~> 1"
49
+ end
metadata ADDED
@@ -0,0 +1,251 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tz-traveler
3
+ version: !ruby/object:Gem::Version
4
+ version: 23.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Jan Lindblom
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubyzip
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: dotenv
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.7'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.21'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.21'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec_junit_formatter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.6'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.6'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov-cobertura
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1'
167
+ - !ruby/object:Gem::Dependency
168
+ name: quadtree
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 1.0.9
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 1.0.9
181
+ - !ruby/object:Gem::Dependency
182
+ name: tzinfo
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: tzinfo-data
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1'
209
+ description:
210
+ email:
211
+ - janlindblom@fastmail.fm
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - ".travis.yml"
217
+ - CODE_OF_CONDUCT.md
218
+ - Gemfile
219
+ - LICENSE.txt
220
+ - README.md
221
+ - Rakefile
222
+ - lib/data/cities.data.gz
223
+ - lib/time_traveler.rb
224
+ - lib/time_traveler/utils.rb
225
+ - lib/time_traveler/version.rb
226
+ - rake/metadata.rake
227
+ - tz-traveler.gemspec
228
+ homepage: https://github.com/janlindblom/ruby-timetraveler
229
+ licenses:
230
+ - MIT
231
+ metadata: {}
232
+ post_install_message:
233
+ rdoc_options: []
234
+ require_paths:
235
+ - lib
236
+ required_ruby_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: 2.6.0
241
+ required_rubygems_version: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ requirements: []
247
+ rubygems_version: 3.3.26
248
+ signing_key:
249
+ specification_version: 4
250
+ summary: Find timezone based on geographical location, offline.
251
+ test_files: []