tater 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tater.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 866326a5050b49de428a273e71709fe84f1a4e2e82c5325fef634fcea8282878
|
4
|
+
data.tar.gz: af9bdb6c35c928886bf3f50779447e88a9a4f4ce7c36222bb3f5bb762ec2f59a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|