hanami-utils 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: 5992348b81897a8cd06f2c3271d70033c6af4cb8
4
- data.tar.gz: 7347bb800840f44f0e10949f82375a065cee71ca
3
+ metadata.gz: c65504458f0d4f9fe10074d2375b48bef9beab06
4
+ data.tar.gz: d33a0515a65119a9da3f1db4becfdaae5a20602a
5
5
  SHA512:
6
- metadata.gz: bfa0af25082940741d014b0beff57ceffb5fb876bc436c27e8c8a51fe2af8ad8b0a9e8a0a493d5018a8a3c316bbb73f56a313d5020dae78cc31a642c5f960f0b
7
- data.tar.gz: d6e8474cce3580333ba1e5a164e8b10d93ea8bf94658bc65f8dc1db343550508d7a7903d22de05db146c329e743e6261cc6c824e1d2ff96f1362ba8371a0359e
6
+ metadata.gz: 0bf23ef0c947d2d7fc88fa750c3077d474beaae7e8812175ccbaf049d731da81044fafc1984f9b4fffd429e3003c6c56bd1d10af9a055cc30b3c2a77e5bf528e
7
+ data.tar.gz: 9a24391a94ee3ae43f741e813ff7670d5c9b5978debf30acb1a1cef13c80ec1da421800e5c64c19703f9d4fa4287d37a97b5bc18f5a7e114bb0a8c6f097f6d39
@@ -1,6 +1,11 @@
1
1
  # Hanami::Utils
2
2
  Ruby core extentions and class utilities for Hanami
3
3
 
4
+ ## v1.0.4 - 2017-10-02
5
+ ### Fixed
6
+ - [Luca Guidi] Make `Hanami::Utils::BasicObject` to be fully compatible with Ruby's `pp` and to be inspected by Pry.
7
+ - [Thiago Kenji Okada] Fix pluralization/singularization for `"release" => "releases"`
8
+
4
9
  ## v1.0.3 - 2017-09-06
5
10
  ### Fixed
6
11
  - [Malina Sulca] Fix pluralization/singularization for `"exercise" => "exercises"`
@@ -21,7 +21,7 @@ module Hanami
21
21
  #
22
22
  # @see http://ruby-doc.org/core/Object.html#method-i-inspect
23
23
  def inspect
24
- "#<#{self.class}:#{'%x' % (__id__ << 1)}#{__inspect}>" # rubocop:disable Style/FormatString
24
+ "#<#{self.class}:#{'0x0000%x' % (__id__ << 1)}#{__inspect}>" # rubocop:disable Style/FormatString
25
25
  end
26
26
 
27
27
  # Alias for __id__
@@ -37,13 +37,14 @@ module Hanami
37
37
 
38
38
  # Interface for pp
39
39
  #
40
+ # @param printer [PP] the Pretty Printable printer
40
41
  # @return [String] the pretty-printable inspection of the object
41
42
  #
42
43
  # @since 0.9.0
43
44
  #
44
45
  # @see https://ruby-doc.org/stdlib/libdoc/pp/rdoc/PP.html
45
- def pretty_print(*)
46
- inspect
46
+ def pretty_print(printer)
47
+ printer.text(inspect)
47
48
  end
48
49
 
49
50
  # Returns true if responds to the given method.
@@ -271,7 +271,8 @@ module Hanami
271
271
  'areas' => 'area',
272
272
  'hives' => 'hive',
273
273
  'phases' => 'phase',
274
- 'exercises' => 'exercise'
274
+ 'exercises' => 'exercise',
275
+ 'releases' => 'release'
275
276
  )
276
277
 
277
278
  # Block for custom inflection rules.
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.0.3'.freeze
6
+ VERSION = '1.0.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.0.3
4
+ version: 1.0.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: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: transproc