hanami-utils 1.3.0.beta1 → 1.3.0

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: 54d09fd1479ee07fdc4123bcf919f59929d6bd0c09224674c0432443d438c4f6
4
- data.tar.gz: b46600bfa6191095e325867907830c4c1bfac0fcf4e9fb24f6f2907b1d15236c
3
+ metadata.gz: 14fa2723546dd3196fd104ec3e2c365c8268c106835f0675f0ee8d02a38dc538
4
+ data.tar.gz: c43ad54f3b64f2fa951a463e52d2606fb5636b61760659aecebe2c26d0023953
5
5
  SHA512:
6
- metadata.gz: c3608dfc31ba508caa081b50c931e1ddcf00eca260f521fcd91dab9ebe7b7e827c56301b33280551657284231654032025d5ab9de07403bc1db56ee12352f856
7
- data.tar.gz: '09f78de10703da264abbc636f8a4bf9172c5565dce7882533c21adca31bf158841bf80998821f158ca77604b9fc9670a677f02644949fd1714a16766fda28918'
6
+ metadata.gz: 0df1dd08087fe3798db40986b7aeb271150a044cbaa6f3bf0fa0a2ba6fe699425c39bce3b03e94d5fc196955739c359ff69704df921c2fd855c714926e16f849
7
+ data.tar.gz: 2f72e791f1d0dd907751207084067d689d525bc76fcec513ff79dc2391488e067faab205eacabf85f0ad170a5c0d7c5cf3ba1fc2e5e26b07859276c52ebe9ca6
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.3.0 - 2018-10-24
5
+
4
6
  ## v1.3.0.beta1 - 2018-08-08
5
7
  ### Added
6
8
  - [Luca Guidi] Official support for JRuby 9.2.0.0
data/lib/hanami/logger.rb CHANGED
@@ -347,6 +347,7 @@ module Hanami
347
347
  # @api private
348
348
  def lookup_colorizer(colorizer)
349
349
  return NullColorizer.new if colorizer == false
350
+
350
351
  colorizer || (tty? ? Colorizer : NullColorizer).new
351
352
  end
352
353
 
@@ -97,6 +97,7 @@ module Hanami
97
97
  # @api private
98
98
  def colorize(message, color:)
99
99
  return message if color.nil?
100
+
100
101
  Hanami::Utils::ShellColor.call(message, color: color)
101
102
  end
102
103
  end
@@ -531,6 +531,7 @@ module Hanami
531
531
  # @api private
532
532
  def encode(input)
533
533
  return '' if input.nil?
534
+
534
535
  input.to_s.encode(Encoding::UTF_8)
535
536
  rescue Encoding::UndefinedConversionError
536
537
  input.dup.force_encoding(Encoding::UTF_8)
@@ -46,6 +46,7 @@ module Hanami
46
46
  "`.rewrite' is deprecated, please use `.write'"
47
47
  )
48
48
  raise Errno::ENOENT unless File.exist?(path)
49
+
49
50
  write(path, *content)
50
51
  end
51
52
 
@@ -323,6 +323,7 @@ module Hanami
323
323
  # @api private
324
324
  def self.add_to_inflecto(singular, plural)
325
325
  return unless defined? Inflecto
326
+
326
327
  Inflecto.inflections.irregular(singular, plural)
327
328
  end
328
329
 
@@ -79,6 +79,7 @@ module Hanami
79
79
  # path_prefix.relative_join('new', '_').to_s # => 'posts_new'
80
80
  def relative_join(strings, separator = @separator)
81
81
  raise TypeError if separator.nil?
82
+
82
83
  prefix = @string.gsub(@separator, separator)
83
84
  result = [prefix, strings]
84
85
  result.flatten!
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.0.beta1'.freeze
6
+ VERSION = '1.3.0'.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.0.beta1
4
+ version: 1.3.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: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: transproc
@@ -134,9 +134,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: 2.3.0
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 1.3.1
139
+ version: '0'
140
140
  requirements: []
141
141
  rubyforge_project:
142
142
  rubygems_version: 2.7.7