hanami-utils 1.0.0.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/lib/hanami/logger.rb +2 -2
- data/lib/hanami/utils.rb +2 -2
- data/lib/hanami/utils/blank.rb +1 -1
- data/lib/hanami/utils/hash.rb +1 -1
- data/lib/hanami/utils/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 222ce74ee6d0046eb15654d43137779443680672
|
4
|
+
data.tar.gz: 399ca64be5aa28e052f97342e53f80a9fe853901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f312d57686b39917b644c9e096e865a3e1f1a2a4b5c8a915f1a452216f123e6dc3170e587947e3311e13a01972a2c2f0fce047b7b6b2495a7c6584a05f8e77ec
|
7
|
+
data.tar.gz: fdc41332f6d86936626eb23795271780e70036c6fae8d4458a15ddb832187a047cba81c727a1877c26938fe2900ec1c08d733d72670fc950873bb1b48da322ed
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Hanami::Utils
|
2
2
|
Ruby core extentions and class utilities for Hanami
|
3
3
|
|
4
|
+
## v1.0.0 - 2017-04-06
|
5
|
+
|
4
6
|
## v1.0.0.rc1 - 2017-03-31
|
5
7
|
### Added
|
6
8
|
- [Luca Guidi] Allow `Hanami::Logger#initialize` to accept arguments to be compliant with Ruby's `Logger`
|
@@ -26,7 +28,7 @@ Ruby core extentions and class utilities for Hanami
|
|
26
28
|
|
27
29
|
### Fixed
|
28
30
|
- [alexd16 & Alfonso Uceda & Luca Guidi] Don't deeply symbolize `Hanami::Interactor::Result` payload
|
29
|
-
|
31
|
+
- [Alfonso Uceda] `Hanami::Interactor::Result`: Don't transform objects that respond to `#to_hash` (like entities)
|
30
32
|
- [Bhanu Prakash] Use `Utils::Json.generate` instead of the deprecated `.dump` for `Hanami::Logger` JSON formatter
|
31
33
|
- [Luca Guidi] `Hanami::Logger`: when a `Hash` message is passed, don't nest it under `:message` key, but unwrap at the top level
|
32
34
|
|
data/lib/hanami/logger.rb
CHANGED
@@ -108,7 +108,7 @@ module Hanami
|
|
108
108
|
# @api private
|
109
109
|
NEW_LINE = $/
|
110
110
|
|
111
|
-
# @since 1.0.0
|
111
|
+
# @since 1.0.0
|
112
112
|
# @api private
|
113
113
|
RESERVED_KEYS = %i(app severity time).freeze
|
114
114
|
|
@@ -143,7 +143,7 @@ module Hanami
|
|
143
143
|
# @api private
|
144
144
|
attr_writer :application_name
|
145
145
|
|
146
|
-
# @since 1.0.0
|
146
|
+
# @since 1.0.0
|
147
147
|
# @api private
|
148
148
|
attr_reader :application_name
|
149
149
|
|
data/lib/hanami/utils.rb
CHANGED
@@ -62,7 +62,7 @@ module Hanami
|
|
62
62
|
#
|
63
63
|
# @param directory [String, Pathname] the directory
|
64
64
|
#
|
65
|
-
# @since 1.0.0
|
65
|
+
# @since 1.0.0
|
66
66
|
# @api private
|
67
67
|
def self.reload!(directory)
|
68
68
|
for_each_file_in(directory) { |file| load(file) }
|
@@ -80,7 +80,7 @@ module Hanami
|
|
80
80
|
# @param directory [String, Pathname] the directory
|
81
81
|
# @param blk [Proc] the block to yield
|
82
82
|
#
|
83
|
-
# @since 1.0.0
|
83
|
+
# @since 1.0.0
|
84
84
|
# @api private
|
85
85
|
def self.for_each_file_in(directory, &blk)
|
86
86
|
directory = directory.to_s.gsub(%r{(\/|\\)}, File::SEPARATOR)
|
data/lib/hanami/utils/blank.rb
CHANGED
data/lib/hanami/utils/hash.rb
CHANGED
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.0
|
4
|
+
version: 1.0.0
|
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-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,9 +86,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: 2.3.0
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- - "
|
89
|
+
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
94
|
rubygems_version: 2.6.11
|