hanami-utils 1.3.3 → 1.3.4

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: 545770be01c79024c33b64bb801b417f3c0b2a40ed88a635eedd43e0516c8824
4
- data.tar.gz: 0bc96d622a662fc6a469175fcbda2c88f28057fa4018db12218116bface3d02c
3
+ metadata.gz: 68be8ddda779b8240ab53da6641e364091bea551058a1d70867a5473e1132a67
4
+ data.tar.gz: 955c6531113488bcc4d46a89fdcbc08d8a4b08377ba9bc16307b5415fb20d51c
5
5
  SHA512:
6
- metadata.gz: c37c0b42a52d21ad5f1746b56aabc0ebe132ae9479674785066f32d5620e91865d50df375e51a0802de4a0f2280fba5598dfe4044a82e933b46d765695a63395
7
- data.tar.gz: 0d22487f8f82568cdac873d58562a0cd3bdf8f7d5de7f268791c5cb454f07873a1dca90943967539b7e38e0cda3b852fd52d422e567231c81057191905b523b2
6
+ metadata.gz: 40e0d112499873dabd51acaab7f7e4283754bfc764080a83d766970fb3908553a0f1c637492f570f7716919823cca883c5e5280d07efe9c9aa7780d97241401c
7
+ data.tar.gz: fcd8e38137f5527e245da4c5e1af4a3248a40314588d35ea6de24a097dddcc1ce9da6601153f264f2a32e991631fab7b1e0e0b37003fdbde52097dca7df60f64
@@ -1,6 +1,10 @@
1
1
  # Hanami::Utils
2
2
  Ruby core extentions and class utilities for Hanami
3
3
 
4
+ ## v1.3.4 - 2019-09-27
5
+ ### Added
6
+ - [Luca Guidi] Let `Utils::BasicObject` to lookup constants at the top-level namespace
7
+
4
8
  ## v1.3.3 - 2019-09-13
5
9
  ### Fixed
6
10
  - [Mauro Morales] Ensure `Utils::Inflector.pluralize` and `.singularize` to work with words that contain an underscore (`_`)
@@ -4,6 +4,23 @@ module Hanami
4
4
  #
5
5
  # @since 0.3.5
6
6
  class BasicObject < ::BasicObject
7
+ # Lookup constants at the top-level namespace, if they are missing in the
8
+ # current context.
9
+ #
10
+ # @param name [Symbol] the constant name
11
+ #
12
+ # @return [Object, Module] the constant
13
+ #
14
+ # @raise [NameError] if the constant cannot be found
15
+ #
16
+ # @since 1.3.4
17
+ # @api private
18
+ #
19
+ # @see https://ruby-doc.org/core/Module.html#method-i-const_missing
20
+ def self.const_missing(name)
21
+ ::Object.const_get(name)
22
+ end
23
+
7
24
  # Return the class for debugging purposes.
8
25
  #
9
26
  # @since 0.3.5
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.3'.freeze
6
+ VERSION = '1.3.4'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-13 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: transproc