tater 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tater.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c34d7058c3566313243c4ccb7b99d967c60bf2e00e091d1fbb66dfbd257e853f
4
- data.tar.gz: 0a5c1d4df6a34b9953086af0459af4c72cb8d9faf674d3216e1eb9e00aa0e82f
3
+ metadata.gz: 866326a5050b49de428a273e71709fe84f1a4e2e82c5325fef634fcea8282878
4
+ data.tar.gz: af9bdb6c35c928886bf3f50779447e88a9a4f4ce7c36222bb3f5bb762ec2f59a
5
5
  SHA512:
6
- metadata.gz: ac657b28f3e3421def12e3d0b50bcd895c5d1a1b23de7c97da6bf0e20bc5e0a51e20abf7394ec9e99b2137e9b2261392213f0dc85d2d3b0c598c4e73184d8857
7
- data.tar.gz: 4b5b32cf7b23a66afcde0a73f129a76d791f62a8efa45a7223204d9e017328796cf528ad8884a2c25a568ea47d3047fff57c4973741aaae20e1e7574350a9068
6
+ metadata.gz: fb353520b23e2235ee49899e84460f5667a6767c38019ce38e19eb823fe181eba3d7cecc9a4f72a907c77afc279a94994ab505073e29861169cb064b1f56bf32
7
+ data.tar.gz: b6ff46ec8d5f33f44bae20a3996aa9e77bd1a101a6f841e1a35c7af74fca33353817974a2414739734095f6a3315898bec0edd2726eef18ec78feae28edee58d
data/lib/tater.rb CHANGED
@@ -4,6 +4,7 @@ require 'date'
4
4
  require 'time'
5
5
  require 'yaml'
6
6
  require 'tater/utils'
7
+ require 'tater/hash' unless Hash.method_defined?(:except)
7
8
 
8
9
  # Tater is a internationalization (i18n) and localization (l10n) library
9
10
  # designed for speed and simplicity.
@@ -17,6 +18,9 @@ class Tater
17
18
  SEPARATOR = '.'
18
19
  SUBSTITUTION_REGEX = /%(|\^)[aAbBpP]/.freeze
19
20
 
21
+ # Needed for Ruby < 3.
22
+ using HashExcept unless Hash.method_defined?(:except)
23
+
20
24
  # @return [String]
21
25
  attr_reader :locale
22
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tater
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Lecklider