hanami-utils 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -0
- data/lib/hanami/utils/inflector.rb +5 -2
- data/lib/hanami/utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5992348b81897a8cd06f2c3271d70033c6af4cb8
|
4
|
+
data.tar.gz: 7347bb800840f44f0e10949f82375a065cee71ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfa0af25082940741d014b0beff57ceffb5fb876bc436c27e8c8a51fe2af8ad8b0a9e8a0a493d5018a8a3c316bbb73f56a313d5020dae78cc31a642c5f960f0b
|
7
|
+
data.tar.gz: d6e8474cce3580333ba1e5a164e8b10d93ea8bf94658bc65f8dc1db343550508d7a7903d22de05db146c329e743e6261cc6c824e1d2ff96f1362ba8371a0359e
|
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.3 - 2017-09-06
|
5
|
+
### Fixed
|
6
|
+
- [Malina Sulca] Fix pluralization/singularization for `"exercise" => "exercises"`
|
7
|
+
- [Xavier Barbosa] Fix pluralization/singularization for `"area" => "areas"`
|
8
|
+
|
4
9
|
## v1.0.2 - 2017-07-10
|
5
10
|
### Fixed
|
6
11
|
- [Anton Davydov] Fix pluralization/singularization for `"phrase" => "phrases"`
|
data/README.md
CHANGED
@@ -88,6 +88,10 @@ Safe `#dup` logic for Ruby objects. [[API doc](http://www.rubydoc.info/gems/hana
|
|
88
88
|
|
89
89
|
Safe and fast escape for URLs, HTML content and attributes. Based on OWASP/ESAPI code. [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/Escape)]
|
90
90
|
|
91
|
+
### Hanami::Utils::FileList
|
92
|
+
|
93
|
+
Recursive, cross-platform ordered list of files. [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/FileList)]
|
94
|
+
|
91
95
|
### Hanami::Utils::Hash
|
92
96
|
|
93
97
|
Enhanced version of Ruby's `Hash`. [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/Hash)]
|
@@ -100,6 +104,10 @@ Silence Ruby warnings. [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hana
|
|
100
104
|
|
101
105
|
Complete and customizable english inflections (pluralization and singularization). [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/Inflector)]
|
102
106
|
|
107
|
+
### Hanami::Utils::Json
|
108
|
+
|
109
|
+
JSON engine with swappable backends (via optional `multi_json` gem) or powered by Ruby's `json` (default). [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/Json)]
|
110
|
+
|
103
111
|
### Hanami::Utils::Kernel
|
104
112
|
|
105
113
|
Type coercions for most common Ruby types. [[API doc](http://www.rubydoc.info/gems/hanami-utils/Hanami/Utils/Kernel)]
|
@@ -226,7 +226,8 @@ module Hanami
|
|
226
226
|
'police' => 'police',
|
227
227
|
# regressions
|
228
228
|
# https://github.com/hanami/utils/issues/106
|
229
|
-
'album' => 'albums'
|
229
|
+
'album' => 'albums',
|
230
|
+
'area' => 'areas'
|
230
231
|
)
|
231
232
|
|
232
233
|
# Irregular rules for singulars
|
@@ -267,8 +268,10 @@ module Hanami
|
|
267
268
|
'species' => 'species',
|
268
269
|
'police' => 'police',
|
269
270
|
# fallback
|
271
|
+
'areas' => 'area',
|
270
272
|
'hives' => 'hive',
|
271
|
-
'phases' => 'phase'
|
273
|
+
'phases' => 'phase',
|
274
|
+
'exercises' => 'exercise'
|
272
275
|
)
|
273
276
|
|
274
277
|
# Block for custom inflection rules.
|
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.3
|
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-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: transproc
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6.
|
122
|
+
rubygems_version: 2.6.13
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Ruby core extentions and Hanami utilities
|