tzf 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,6 +9,10 @@ Data is sourced from [Timezone Boundary Builder](https://github.com/evansiroky/t
9
9
 
10
10
  ## Installation
11
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
+
12
16
  Install the gem and add to the application's Gemfile by executing:
13
17
 
14
18
  $ bundle add tzf
data/ext/tzf/Cargo.toml CHANGED
@@ -12,4 +12,4 @@ crate-type = ["cdylib"]
12
12
  [dependencies]
13
13
  lazy_static = "1.4.0"
14
14
  magnus = { version = "0.6" }
15
- tzf-rs = "0.4.4"
15
+ tzf-rs = { version = "0.4.5", default-features = false }
data/lib/tzf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TZF
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
data/tzf.gemspec CHANGED
@@ -20,13 +20,14 @@ Gem::Specification.new do |spec|
20
20
  spec.metadata["homepage_uri"] = spec.homepage
21
21
  spec.metadata["source_code_uri"] = "https://github.com/HarlemSquirrel/tzf-rb"
22
22
 
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(__dir__) do
26
- `git ls-files -z`.split("\x0").reject do |f|
27
- (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
28
- end
29
- end
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"]
30
31
  spec.bindir = "exe"
31
32
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
33
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tzf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin McCormack
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-03 00:00:00.000000000 Z
11
+ date: 2024-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -32,18 +32,10 @@ extensions:
32
32
  - ext/tzf/extconf.rb
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - ".rspec"
36
- - ".rubocop.yml"
37
- - CHANGELOG.md
38
- - CODE_OF_CONDUCT.md
39
35
  - Cargo.lock
40
36
  - Cargo.toml
41
- - Gemfile
42
- - Gemfile.lock
43
37
  - LICENSE.txt
44
38
  - README.md
45
- - Rakefile
46
- - ext/tzf/Cargo.lock
47
39
  - ext/tzf/Cargo.toml
48
40
  - ext/tzf/extconf.rb
49
41
  - ext/tzf/src/lib.rs
@@ -60,7 +52,7 @@ metadata:
60
52
  homepage_uri: https://github.com/HarlemSquirrel/tzf-rb
61
53
  source_code_uri: https://github.com/HarlemSquirrel/tzf-rb
62
54
  rubygems_mfa_required: 'true'
63
- post_install_message:
55
+ post_install_message:
64
56
  rdoc_options: []
65
57
  require_paths:
66
58
  - lib
@@ -75,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
67
  - !ruby/object:Gem::Version
76
68
  version: 3.4.6
77
69
  requirements: []
78
- rubygems_version: 3.4.10
79
- signing_key:
70
+ rubygems_version: 3.4.14
71
+ signing_key:
80
72
  specification_version: 4
81
73
  summary: Ruby time zone lookup interface using tzf-rs
82
74
  test_files: []
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,18 +0,0 @@
1
- require:
2
- - rubocop-rake
3
- - rubocop-rspec
4
-
5
- AllCops:
6
- NewCops: enable
7
- TargetRubyVersion: 3.0
8
-
9
- Style/StringLiterals:
10
- Enabled: true
11
- EnforcedStyle: double_quotes
12
-
13
- Style/StringLiteralsInInterpolation:
14
- Enabled: true
15
- EnforcedStyle: double_quotes
16
-
17
- Layout/LineLength:
18
- Max: 120
data/CHANGELOG.md DELETED
@@ -1,43 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.4.1] - 2023-03-27
4
-
5
- - Bump tzf-rs to [0.4.1](https://github.com/ringsaturn/tzf-rs/releases/tag/v0.4.1)
6
-
7
- ## [0.4.0] - 2023-03-27
8
-
9
- - Bump tzf-rs to [0.4.0](https://github.com/ringsaturn/tzf-rs/releases/tag/v0.4.0) which includes [2023b](https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2023b) data.
10
- - Bump remove_dir_all to address to address CWE-366 and CWE-367
11
-
12
- ## [0.2.6] - 2023-02-23
13
-
14
- - Set min rubygems to [3.4.6](https://github.com/rubygems/rubygems/blob/master/CHANGELOG.md#346--2023-01-31) to address issues with CargoBuilder install path
15
-
16
- ## [0.2.5] - 2023-02-23
17
-
18
- - Update rake compile task and fix CI builds #2
19
-
20
- ## [0.2.4] - 2023-02-22
21
-
22
- - Fix dependencies
23
-
24
- ## [0.2.3] - 2023-02-22
25
-
26
- - Remove unused src directory
27
-
28
- ## [0.2.2] - 2023-02-22
29
-
30
- - Fix version number
31
-
32
- ## [0.2.1] - 2023-02-22
33
-
34
- - New version after yank of broken 0.2.0 build
35
-
36
- ## [0.2.0] - 2023-02-22
37
-
38
- - Migrate to [magnus](https://github.com/matsadler/magnus)
39
-
40
- ## [0.1.0] - 2023-02-21
41
-
42
- - Initial release
43
- - [tzf-rs 0.3.0](https://github.com/ringsaturn/tzf-rs/releases/tag/v0.3.0)
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at harlemsquirrel@mccormack.tech. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in tzf.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
- gem "rake-compiler", "~> 1.2"
10
- gem "rspec", "~> 3.0"
11
- gem "rubocop", "~> 1.21"
12
- gem "rubocop-rake", "~> 0.6"
13
- gem "rubocop-rspec", "~> 2.18"
data/Gemfile.lock DELETED
@@ -1,80 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- tzf (0.4.4)
5
- rb_sys (~> 0.9)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- base64 (0.1.1)
12
- diff-lcs (1.5.0)
13
- json (2.6.3)
14
- language_server-protocol (3.17.0.3)
15
- parallel (1.23.0)
16
- parser (3.2.2.3)
17
- ast (~> 2.4.1)
18
- racc
19
- racc (1.7.1)
20
- rainbow (3.1.1)
21
- rake (13.0.6)
22
- rake-compiler (1.2.5)
23
- rake
24
- rb_sys (0.9.82)
25
- regexp_parser (2.8.1)
26
- rexml (3.2.6)
27
- rspec (3.12.0)
28
- rspec-core (~> 3.12.0)
29
- rspec-expectations (~> 3.12.0)
30
- rspec-mocks (~> 3.12.0)
31
- rspec-core (3.12.2)
32
- rspec-support (~> 3.12.0)
33
- rspec-expectations (3.12.3)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.12.0)
36
- rspec-mocks (3.12.6)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.12.0)
39
- rspec-support (3.12.1)
40
- rubocop (1.56.4)
41
- base64 (~> 0.1.1)
42
- json (~> 2.3)
43
- language_server-protocol (>= 3.17.0)
44
- parallel (~> 1.10)
45
- parser (>= 3.2.2.3)
46
- rainbow (>= 2.2.2, < 4.0)
47
- regexp_parser (>= 1.8, < 3.0)
48
- rexml (>= 3.2.5, < 4.0)
49
- rubocop-ast (>= 1.28.1, < 2.0)
50
- ruby-progressbar (~> 1.7)
51
- unicode-display_width (>= 2.4.0, < 3.0)
52
- rubocop-ast (1.29.0)
53
- parser (>= 3.2.1.0)
54
- rubocop-capybara (2.19.0)
55
- rubocop (~> 1.41)
56
- rubocop-factory_bot (2.24.0)
57
- rubocop (~> 1.33)
58
- rubocop-rake (0.6.0)
59
- rubocop (~> 1.0)
60
- rubocop-rspec (2.24.1)
61
- rubocop (~> 1.33)
62
- rubocop-capybara (~> 2.17)
63
- rubocop-factory_bot (~> 2.22)
64
- ruby-progressbar (1.13.0)
65
- unicode-display_width (2.5.0)
66
-
67
- PLATFORMS
68
- x86_64-linux
69
-
70
- DEPENDENCIES
71
- rake (~> 13.0)
72
- rake-compiler (~> 1.2)
73
- rspec (~> 3.0)
74
- rubocop (~> 1.21)
75
- rubocop-rake (~> 0.6)
76
- rubocop-rspec (~> 2.18)
77
- tzf!
78
-
79
- BUNDLED WITH
80
- 2.4.7
data/Rakefile DELETED
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- require "rake/extensiontask"
13
-
14
- desc "Build extension"
15
- task build: :compile
16
-
17
- require "rb_sys/extensiontask"
18
-
19
- GEMSPEC = Gem::Specification.load("tzf.gemspec")
20
-
21
- RbSys::ExtensionTask.new("tzf", GEMSPEC) do |ext|
22
- ext.lib_dir = "lib/tzf"
23
- end
24
-
25
- task default: %i[compile spec rubocop]