eac_ruby_utils 0.58.0 → 0.58.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 123493b4c18d48f7366d734db4d722e0e72dd1ac0463649a45a3552c5bc8b6b7
4
- data.tar.gz: 5858bc58b340efed7d26cf17695535a3fb26abbb121f53c4889d6f87c9f03a25
3
+ metadata.gz: '059525385419a316a364ba62f82e064c2eff52467f92e2a16adc0f60a0f04008'
4
+ data.tar.gz: 689cedcecce832ce4473697dd439c12c08c0fca1b5cef5464d5d8ed3c5b99e5f
5
5
  SHA512:
6
- metadata.gz: 7b3c80642b58e8eb315ca82d8d760467a7404585771907a9dbe3344e3aa3b00991e7d319beee042ee45eb36939cf93af35e38f76bd0d1642a7e9b383bdf3f023
7
- data.tar.gz: d4dc7641afd5d36e818fcfe0e50f59c6f0cb2dd596fef6a7cf4fc31e0b19929638232669bf3f60e4c9da6a42616610517633f69bd7363d05120cf5b8a5192b0c
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.58.0'
4
+ VERSION = '0.58.1'
5
5
  end
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.0
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-01-17 00:00:00.000000000 Z
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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/core_ext/time/zones'
4
- require 'eac_ruby_utils/local_time_zone'
5
-
6
- ::Time.zone = ::EacRubyUtils::LocalTimeZone.auto