tzf 1.6.2-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 80e2ff717736c4ac04ba4f41718dace1d538b8711a300d7abe90f558f6238d46
4
+ data.tar.gz: 40f798774190da0f6b173791ebdbd3fc794e20083addae4f2b2299ba7a730013
5
+ SHA512:
6
+ metadata.gz: aea87c1da74e4910c97535832be69c6ad751fdaf0f9662f25aa06a9446e341f8c13c9664626c4fab2f68885e39ea12a8a1ec3ffe2db8be44ba2e0064b97f4a67
7
+ data.tar.gz: 4e751cda3c4e93a48bddd3a9c557645914388eed39d75dd21cfb8ff24e4b67a4cd7f1bf3b918d371471c589900317ecf158895d7a373c348979328098b4b9b16
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Kevin McCormack
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,66 @@
1
+ # tzf-rb
2
+
3
+ [![tzf](https://badge.fury.io/rb/tzf.svg)](https://badge.fury.io/rb/tzf)
4
+ ![build](https://github.com/HarlemSquirrel/tzf-rb/actions/workflows/main.yml/badge.svg)
5
+
6
+ Ruby time zone lookup for coordinates using the [tzf-rs](https://github.com/ringsaturn/tzf-rs) Rust library.
7
+
8
+ Data is sourced from [Timezone Boundary Builder](https://github.com/evansiroky/timezone-boundary-builder).
9
+
10
+ ## Installation
11
+
12
+ Install [Ruby](https://www.ruby-lang.org/en/) and [`clang`](https://clang.llvm.org/) using your operating system's package manager. Currently, `clang` is required to build and install the native Rust extensions with [`rb_sys`](https://github.com/oxidize-rb/rb-sys).
13
+
14
+ During the below install with RubyGems, the system will attempt to download and install Rust and Cargo if not found. Optionall, install [Rust](https://www.rust-lang.org/) before installing this gem.
15
+
16
+ Install the gem and add to the application's Gemfile by executing:
17
+
18
+ $ bundle add tzf
19
+
20
+ If bundler is not being used to manage dependencies, install the gem by executing:
21
+
22
+ $ gem install tzf
23
+
24
+ ## Usage
25
+
26
+ ```rb
27
+ require 'tzf'
28
+
29
+ TZF.tz_name(40.74771675713742, -73.99350390136448)
30
+ # => "America/New_York"
31
+
32
+ TZF.tz_names(40.74771675713742, -73.99350390136448)
33
+ # => ["America/New_York"]
34
+ ```
35
+
36
+ ## Development
37
+
38
+ Requirements:
39
+
40
+ - (Rust)[https://www.rust-lang.org/learn/get-started]
41
+ - (Ruby)[https://www.ruby-lang.org]
42
+
43
+ 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.
44
+
45
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46
+
47
+ ## Contributing
48
+
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tzf. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/tzf/blob/main/CODE_OF_CONDUCT.md).
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
54
+
55
+ ## Code of Conduct
56
+
57
+ Everyone interacting in the tzf project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/tzf/blob/main/CODE_OF_CONDUCT.md).
58
+
59
+ ## Releasing
60
+
61
+ 1. Checkout new branch
62
+ 2. Update changelog
63
+ 3. Bump version with `bin/bump -v [major|minor||patch]`
64
+ 4. Open PR
65
+ 5. Merge PR
66
+ 6. Release with GitHub action
Binary file
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TZF
4
+ VERSION = "1.6.2"
5
+ end
data/lib/tzf.rb ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "tzf/version"
4
+ require_relative "tzf/tzf"
5
+
6
+ ##
7
+ # Top level module.
8
+ #
9
+ # Methods defined in ext/tzf/src/lib.rs
10
+ #
11
+ # Ex TZF.tz_name(latitude, longitude) => String
12
+ #
13
+ module TZF
14
+ class Error < StandardError; end
15
+ end
data/sig/tzf.rbs ADDED
@@ -0,0 +1,6 @@
1
+ module TZF
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+
5
+ def self.tz_name: (Float, Float) -> String
6
+ end
data/tzf.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/tzf/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "tzf"
7
+ spec.version = TZF::VERSION
8
+ spec.authors = ["Kevin McCormack"]
9
+ spec.email = ["kevin@mccormack.tech"]
10
+
11
+ spec.summary = "Ruby time zone lookup interface using tzf-rs"
12
+ spec.description = "Ruby time zone lookup interface using tzf-rs."
13
+ spec.homepage = "https://github.com/HarlemSquirrel/tzf-rb"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.2.0"
16
+ spec.required_rubygems_version = ">= 3.4.6"
17
+
18
+ spec.metadata["bug_tracker_uri"] = "https://github.com/HarlemSquirrel/tzf-rb/issues"
19
+ spec.metadata["changelog_uri"] = "https://github.com/HarlemSquirrel/tzf-rb/blob/main/CHANGELOG.md"
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/HarlemSquirrel/tzf-rb"
22
+
23
+ spec.files = Dir["ext/**/*"] +
24
+ Dir["lib/**/*.rb"] +
25
+ Dir["sig/tzf.rbs"] +
26
+ Dir["Cargo.lock"] +
27
+ Dir["Cargo.toml"] +
28
+ Dir["LICENSE.txt"] +
29
+ Dir["README.md"] +
30
+ Dir["tzf.gemspec"]
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+ spec.extensions = ["ext/tzf/extconf.rb"]
35
+
36
+ spec.metadata["rubygems_mfa_required"] = "true"
37
+
38
+ spec.add_dependency("rb_sys", "~> 0.9.89")
39
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tzf
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.2
5
+ platform: x64-mingw-ucrt
6
+ authors:
7
+ - Kevin McCormack
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Ruby time zone lookup interface using tzf-rs.
14
+ email:
15
+ - kevin@mccormack.tech
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - lib/tzf.rb
23
+ - lib/tzf/3.2/tzf.so
24
+ - lib/tzf/3.3/tzf.so
25
+ - lib/tzf/3.4/tzf.so
26
+ - lib/tzf/version.rb
27
+ - sig/tzf.rbs
28
+ - tzf.gemspec
29
+ homepage: https://github.com/HarlemSquirrel/tzf-rb
30
+ licenses:
31
+ - MIT
32
+ metadata:
33
+ bug_tracker_uri: https://github.com/HarlemSquirrel/tzf-rb/issues
34
+ changelog_uri: https://github.com/HarlemSquirrel/tzf-rb/blob/main/CHANGELOG.md
35
+ homepage_uri: https://github.com/HarlemSquirrel/tzf-rb
36
+ source_code_uri: https://github.com/HarlemSquirrel/tzf-rb
37
+ rubygems_mfa_required: 'true'
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '3.2'
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: 3.5.dev
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.4.6
55
+ requirements: []
56
+ rubygems_version: 3.5.23
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Ruby time zone lookup interface using tzf-rs
60
+ test_files: []