human_attributes 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/human_attributes/formatters/base.rb +2 -2
- data/lib/human_attributes/formatters/custom.rb +1 -1
- data/lib/human_attributes/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: f016d408694b2ec72e6b4b25bb166c5ed86c5ed0
|
4
|
+
data.tar.gz: cf9159a0649ea9608afc38bd680a18a35d54ff66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8d4f6147230babac712824b273c6699cef47c024f91a85cc66607a7bdd665689ac249f5040154693d0ea2eab97cce8802c84079e9902a7d946a75d2ba1d69a
|
7
|
+
data.tar.gz: 5b15cd511c1f39a3a281ade79c81c766040011e6a9a7b18b64de5e7562424f09ecf3e74a74fee8eb63adbfeee02ce37863ad7cb6d13b185f4c029da1f037d60c
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
### v0.3.1
|
6
|
+
|
7
|
+
##### Fixed
|
8
|
+
|
9
|
+
* Broken formatters using delete to extract options instead of fetch.
|
10
|
+
|
5
11
|
### v0.3.0
|
6
12
|
|
7
13
|
##### Added
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -16,7 +16,7 @@ It's a Gem to convert ActiveRecord models' attributes and methods to human reada
|
|
16
16
|
- [Suffix](#suffix)
|
17
17
|
- [Multiple Formatters](#multiple-formatters)
|
18
18
|
- [Humanize Active Record Attributes](#humanize-active-record-attributes)
|
19
|
-
- [Integration with Draper Gem](#draper-
|
19
|
+
- [Integration with Draper Gem](#integration-with-draper-gem)
|
20
20
|
- [Rake Task](#rake-task)
|
21
21
|
|
22
22
|
## Installation
|
@@ -8,8 +8,8 @@ module HumanAttributes
|
|
8
8
|
def initialize(attribute, type, options)
|
9
9
|
@attribute = attribute.to_sym
|
10
10
|
@type = type.to_sym
|
11
|
-
@default = options
|
12
|
-
@suffix = options
|
11
|
+
@default = options[:default]
|
12
|
+
@suffix = options[:suffix]
|
13
13
|
@options = options
|
14
14
|
end
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: human_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|