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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/hanami/utils/basic_object.rb +4 -3
- data/lib/hanami/utils/inflector.rb +2 -1
- data/lib/hanami/utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65504458f0d4f9fe10074d2375b48bef9beab06
|
4
|
+
data.tar.gz: d33a0515a65119a9da3f1db4becfdaae5a20602a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf23ef0c947d2d7fc88fa750c3077d474beaae7e8812175ccbaf049d731da81044fafc1984f9b4fffd429e3003c6c56bd1d10af9a055cc30b3c2a77e5bf528e
|
7
|
+
data.tar.gz: 9a24391a94ee3ae43f741e813ff7670d5c9b5978debf30acb1a1cef13c80ec1da421800e5c64c19703f9d4fa4287d37a97b5bc18f5a7e114bb0a8c6f097f6d39
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/lib/hanami/utils/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: transproc
|