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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4d6f0fb624d3950053b3f1b8bd90e8636b8e6b5
4
- data.tar.gz: 9cef22ac036c4d4bb7393e43d3feef399b7d7bd6
3
+ metadata.gz: f016d408694b2ec72e6b4b25bb166c5ed86c5ed0
4
+ data.tar.gz: cf9159a0649ea9608afc38bd680a18a35d54ff66
5
5
  SHA512:
6
- metadata.gz: 471d7481a168069a4df9f6fcd3edb98fb0ed3537c48626ddf1c04445166baf0f2a746f15077127cd4f5db85e36c42d7f86703173fbe5954dd4585718c5b76077
7
- data.tar.gz: dc8a6b407d4c9379fbf188f76b8a7bce9dbbcc7013d0e0bc60ed21f5d08188e4e0f3ef0527987dc5c3897195881c76bad1fe1a3a0af0d2209fb06c11dc7a7200
6
+ metadata.gz: fc8d4f6147230babac712824b273c6699cef47c024f91a85cc66607a7bdd665689ac249f5040154693d0ea2eab97cce8802c84079e9902a7d946a75d2ba1d69a
7
+ data.tar.gz: 5b15cd511c1f39a3a281ade79c81c766040011e6a9a7b18b64de5e7562424f09ecf3e74a74fee8eb63adbfeee02ce37863ad7cb6d13b185f4c029da1f037d60c
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- human_attributes (0.3.0)
4
+ human_attributes (0.3.1)
5
5
  factory_girl_rails (~> 4.6)
6
6
  rails (~> 4.2, >= 4.2.0)
7
7
 
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-integration)
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.delete(:default)
12
- @suffix = options.delete(:suffix)
11
+ @default = options[:default]
12
+ @suffix = options[:suffix]
13
13
  @options = options
14
14
  end
15
15
 
@@ -4,7 +4,7 @@ module HumanAttributes
4
4
  attr_reader :formatter
5
5
 
6
6
  def initialize(attribute, type, options)
7
- @formatter = options.delete(:formatter)
7
+ @formatter = options[:formatter]
8
8
  raise_error('MissingFormatterOption') unless formatter.is_a?(Proc)
9
9
  super
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module HumanAttributes
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-18 00:00:00.000000000 Z
12
+ date: 2016-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails