eac_ruby_utils 0.122.0 → 0.124.0

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: 5fea41f96c275a53fedaeae53d07b81e356757859be5c17207d2eaa6924c5bda
4
- data.tar.gz: 79e2fe2a6432169b0222d2dd785a49f3bc459a0004cca89e1534f6e58716401c
3
+ metadata.gz: b58f8dc99b555c425e70cc08cb038153122279388a3547551c50dbf9521b28e6
4
+ data.tar.gz: aaeef7762918739d2582582b98ab72b07369ff1719d7349928528d039bccb149
5
5
  SHA512:
6
- metadata.gz: cf52648fabdb145fb750f0448aa758b122ae264a3947a50427ed3e08c28babc423b3cb2a091c0e3237d6edd6376203fa7abd071647c4269fbe286027116f323f
7
- data.tar.gz: ee8f6519bc3074a512ed273c868e087da3ae79a50055d88118be6a109b6082737c911c12be4db91d10da333b1bb6cd2b7b33bb2cc01799d8bb9a634df6e10b18
6
+ metadata.gz: 04c75cde5f4929f9f55e4c0f74d5bf49802d11b4ec925df7cab02126d3289d7bf146784e7e69bf59f5ba97f7ba6b75ae2ed98594c0e8d1b1df1e3303f1868172
7
+ data.tar.gz: 025ad56ad448d54cdc0ee6dc4dc0a1d1d4249965b6b3765593630dab10550a8fd44dc689b7b31dfc65c7b03d55ac2c448d6db9010b95ae8f8e7841b9ac7d5734
@@ -7,7 +7,7 @@ module EacRubyUtils
7
7
  module Temp
8
8
  class Directory < ::EacRubyUtils::Fs::Temp::File
9
9
  def initialize(*tempfile_args)
10
- super(*tempfile_args)
10
+ super
11
11
  mkpath
12
12
  end
13
13
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Object
4
+ # @return [Symbol]
5
+ def to_sym_by_eac
6
+ return self if is_a?(::Symbol)
7
+ return to_sym if respond_to?(:to_sym)
8
+
9
+ to_s.to_sym
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.122.0'
4
+ VERSION = '0.124.0'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support/time_with_zone'
3
4
  require 'date'
4
5
  require 'yaml'
5
6
 
@@ -7,7 +8,8 @@ module EacRubyUtils
7
8
  # A safe YAML loader/dumper with common types included.
8
9
  class Yaml
9
10
  class << self
10
- DEFAULT_PERMITTED_CLASSES = [::Array, ::Date, ::DateTime, ::FalseClass, ::Hash, ::NilClass,
11
+ DEFAULT_PERMITTED_CLASSES = [ActiveSupport::TimeWithZone, ActiveSupport::TimeZone,
12
+ ::Array, ::Date, ::DateTime, ::FalseClass, ::Hash, ::NilClass,
11
13
  ::Numeric, ::String, ::Symbol, ::Time, ::TrueClass].freeze
12
14
 
13
15
  def dump(object)
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.122.0
4
+ version: 0.124.0
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: 2024-05-18 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '2.8'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 2.8.6
42
+ version: 2.8.7
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '2.8'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 2.8.6
52
+ version: 2.8.7
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: bundler
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -99,6 +99,9 @@ dependencies:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0.5'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 0.5.1
102
105
  type: :development
103
106
  prerelease: false
104
107
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,20 +109,23 @@ dependencies:
106
109
  - - "~>"
107
110
  - !ruby/object:Gem::Version
108
111
  version: '0.5'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 0.5.1
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: eac_ruby_gem_support
111
117
  requirement: !ruby/object:Gem::Requirement
112
118
  requirements:
113
119
  - - "~>"
114
120
  - !ruby/object:Gem::Version
115
- version: '0.9'
121
+ version: '0.10'
116
122
  type: :development
117
123
  prerelease: false
118
124
  version_requirements: !ruby/object:Gem::Requirement
119
125
  requirements:
120
126
  - - "~>"
121
127
  - !ruby/object:Gem::Version
122
- version: '0.9'
128
+ version: '0.10'
123
129
  description:
124
130
  email:
125
131
  executables: []
@@ -270,6 +276,7 @@ files:
270
276
  - lib/eac_ruby_utils/patches/object/recursive_build.rb
271
277
  - lib/eac_ruby_utils/patches/object/to_bool.rb
272
278
  - lib/eac_ruby_utils/patches/object/to_pathname.rb
279
+ - lib/eac_ruby_utils/patches/object/to_sym_by_eac.rb
273
280
  - lib/eac_ruby_utils/patches/object/to_uri.rb
274
281
  - lib/eac_ruby_utils/patches/pathname.rb
275
282
  - lib/eac_ruby_utils/patches/pathname/assert_parent.rb