eac_ruby_utils 0.123.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: 793aedb5e1113b889505fd8a8728397eeab8d26f46648bcab09592007d1e8d83
4
- data.tar.gz: b37f3f944525140c07f494da7fde186a85f5be9c7053de6645ede66f1f493de2
3
+ metadata.gz: b58f8dc99b555c425e70cc08cb038153122279388a3547551c50dbf9521b28e6
4
+ data.tar.gz: aaeef7762918739d2582582b98ab72b07369ff1719d7349928528d039bccb149
5
5
  SHA512:
6
- metadata.gz: 4f71e2816a735ef0de790d6b5c4ac661c1b7cbe7c1cab50a8ac3199a0470e2fd724d4e90d3be6b14bfd0d5741e3ae4eb4fe9d99dcb35be1fae184517377c19ed
7
- data.tar.gz: eb05d158d821d867339bdaf52387672ada1a4d8a166dd6740714f59bee0bb4623ef16341a8f135f087f801018ff8493c8b9d3e94cd2e9201cd34b30ccc62b89e
6
+ metadata.gz: 04c75cde5f4929f9f55e4c0f74d5bf49802d11b4ec925df7cab02126d3289d7bf146784e7e69bf59f5ba97f7ba6b75ae2ed98594c0e8d1b1df1e3303f1868172
7
+ data.tar.gz: 025ad56ad448d54cdc0ee6dc4dc0a1d1d4249965b6b3765593630dab10550a8fd44dc689b7b31dfc65c7b03d55ac2c448d6db9010b95ae8f8e7841b9ac7d5734
@@ -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.123.0'
4
+ VERSION = '0.124.0'
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.123.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-09-22 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
@@ -276,6 +276,7 @@ files:
276
276
  - lib/eac_ruby_utils/patches/object/recursive_build.rb
277
277
  - lib/eac_ruby_utils/patches/object/to_bool.rb
278
278
  - lib/eac_ruby_utils/patches/object/to_pathname.rb
279
+ - lib/eac_ruby_utils/patches/object/to_sym_by_eac.rb
279
280
  - lib/eac_ruby_utils/patches/object/to_uri.rb
280
281
  - lib/eac_ruby_utils/patches/pathname.rb
281
282
  - lib/eac_ruby_utils/patches/pathname/assert_parent.rb