eac_ruby_utils 0.105.0 → 0.106.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: a7c14027c7e1ef4db1c0b886d72d3053d6f7406468bf497bf0a644d988602ea6
4
- data.tar.gz: 54eed81faaa197cf4b210c80df89c7f1ee414f99fae66275b2bab7a71e870b2e
3
+ metadata.gz: e430d0ed4603c1dd3c009855c36cad7ece471876b4ba7b7eb029a20fb0b894bd
4
+ data.tar.gz: dc9432994d9fee708ced94d81e1646bd5d0e6824bb644889cab1ffbf0e0f61d8
5
5
  SHA512:
6
- metadata.gz: cf946355a2cf5ec6a7dfb568d7b751b48e8d34b28d6e963eca8204fffbfc375ce9772f32029161c8413ec2557aba9216dd59f2a528428d1dfd832c350989934e
7
- data.tar.gz: 59a58657570e06311d85c82d0deca5dab659ef0477d14794a9cd069dd637208fe1c97458e902ded340babfaf95f3f8ae3635ab4bc3fc9f50df41e25d50f85f82
6
+ metadata.gz: 734bb221bce3c5ee8b9e9a076fcfdfaa19ed6a096bc07b5e1217bd79509b8f99a43bc10a81ea3209d20cb4526882e824c1b537631ffdd8b96f3aff4699531900
7
+ data.tar.gz: ebff5750539bdaa2fd90457faa870603352a37149cb03b3337e5953cd4ae04194bfb141122a3aa483f7839257b4ff2d0cad566a49481b611b6bc516b51374157
@@ -49,7 +49,7 @@ module EacRubyUtils
49
49
  return nil unless lib_file_found?
50
50
 
51
51
  require path_to_require
52
- path_to_require.classify.constantize
52
+ path_to_require.camelize.constantize
53
53
  end
54
54
 
55
55
  # @return [String]
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/boolean'
4
+
5
+ class Object
6
+ # Shortcut to +EacRubyUtils::Boolean.parse(self).
7
+ #
8
+ # @return [Boolean]
9
+ def to_bool
10
+ ::EacRubyUtils::Boolean.parse(self)
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.105.0'
4
+ VERSION = '0.106.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.105.0
4
+ version: 0.106.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: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -234,6 +234,7 @@ files:
234
234
  - lib/eac_ruby_utils/patches/object/if_nil.rb
235
235
  - lib/eac_ruby_utils/patches/object/if_present.rb
236
236
  - lib/eac_ruby_utils/patches/object/if_respond.rb
237
+ - lib/eac_ruby_utils/patches/object/to_bool.rb
237
238
  - lib/eac_ruby_utils/patches/object/to_pathname.rb
238
239
  - lib/eac_ruby_utils/patches/object/to_uri.rb
239
240
  - lib/eac_ruby_utils/patches/pathname.rb