eac_ruby_utils 0.58.0 → 0.58.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '059525385419a316a364ba62f82e064c2eff52467f92e2a16adc0f60a0f04008'
|
4
|
+
data.tar.gz: 689cedcecce832ce4473697dd439c12c08c0fca1b5cef5464d5d8ed3c5b99e5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f4c05be42c42e86eade057a841dd0d6277479601b050a770bca40c36ff9300dd2f9d74c0ddf5f7f050ed37047cbfa3e6313f61cfe3a86c70a414bd367ed570
|
7
|
+
data.tar.gz: 9a981083c0ef681f5e20c77e965d05cbdd252035b2c1d6400c982da0258ab7b3f99f5225e58876d6ccaf40c8750a0ce60e957d50d1e107f28f0d2b2435635af9
|
@@ -14,6 +14,10 @@ module EacRubyUtils
|
|
14
14
|
%w[tz_env debian_config offset].lazy.map { |s| send("by_#{s}") }.find(&:present?)
|
15
15
|
end
|
16
16
|
|
17
|
+
def auto_set
|
18
|
+
::Time.zone = auto
|
19
|
+
end
|
20
|
+
|
17
21
|
def by_debian_config
|
18
22
|
path = ::Pathname.new(DEBIAN_CONFIG_PATH)
|
19
23
|
path.exist? ? path.read.strip.presence : nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_ruby_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.58.
|
4
|
+
version: 0.58.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -227,7 +227,6 @@ files:
|
|
227
227
|
- lib/eac_ruby_utils/patches/string.rb
|
228
228
|
- lib/eac_ruby_utils/patches/string/inflector.rb
|
229
229
|
- lib/eac_ruby_utils/patches/time.rb
|
230
|
-
- lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
|
231
230
|
- lib/eac_ruby_utils/paths_hash.rb
|
232
231
|
- lib/eac_ruby_utils/paths_hash/entry_key_error.rb
|
233
232
|
- lib/eac_ruby_utils/paths_hash/node.rb
|