Skip to content

Commit

Permalink
Merge pull request #65 from platanus/v-1.0.0
Browse files Browse the repository at this point in the history
V 1.0.0
  • Loading branch information
Josefina Alliende authored Feb 6, 2023
2 parents 744f960 + d44a17f commit 920f9e6
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ executors:
default: "2.7"
type: string
docker:
- image: circleci/ruby:<<parameters.ruby-version>>-node
- image: cimg/ruby:<<parameters.ruby-version>>-node
environment: *env-vars

commands:
Expand Down Expand Up @@ -94,11 +94,11 @@ workflows:
- test:
matrix:
parameters:
ruby-version: ["2.5", "2.6", "2.7"]
ruby-version: ["2.7", "3.1" ]
- deploy:
context: org-global
filters:
tags:
only: /.*/
branches:
ignore: /.*/
ignore: /.*/
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7
3.1.2
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

# 0.7.0
### 1.0.0
##### Removed

* Removed support for ruby 2.5 and 2.6

##### Fixed

* Fix enum translations for ruby 3.1

### 0.7.1

##### Fixed

* Fix enum translations: move translations under pluralized attribute key.
# 0.7.0
### 0.7.0
##### Changed

* Replace travis with circleci.
Expand Down
24 changes: 20 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
human_attributes (0.7.1)
human_attributes (0.7.2)
factory_bot
rails (>= 4.2.0)

Expand Down Expand Up @@ -82,6 +82,7 @@ GEM
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crass (1.0.6)
date (3.3.3)
diff-lcs (1.4.4)
docile (1.4.0)
draper (4.0.2)
Expand All @@ -98,7 +99,7 @@ GEM
activesupport (>= 5.0.0)
ffi (1.15.1)
formatador (0.2.5)
globalid (1.0.0)
globalid (1.0.1)
activesupport (>= 5.0)
guard (2.17.0)
formatador (>= 0.2.4)
Expand All @@ -124,15 +125,28 @@ GEM
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
lumberjack (1.2.8)
mail (2.7.1)
mail (2.8.0.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
method_source (1.0.0)
mini_mime (1.0.3)
minitest (5.14.4)
nenv (0.3.0)
net-imap (0.3.4)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.3.3)
net-protocol
nio4r (2.5.8)
nokogiri (1.11.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.14.0-x86_64-darwin)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
Expand Down Expand Up @@ -242,6 +256,7 @@ GEM
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (1.1.0)
timeout (0.3.1)
tins (1.29.1)
sync
tzinfo (2.0.4)
Expand All @@ -253,6 +268,7 @@ GEM
zeitwerk (2.4.2)

PLATFORMS
x86_64-darwin-19
x86_64-darwin-20

DEPENDENCIES
Expand Down
2 changes: 1 addition & 1 deletion lib/human_attributes/formatters/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module HumanAttributes
module Formatters
class Date < Base
def apply(_instance, value)
I18n.l(value.to_date, options)
I18n.l(value.to_date, **options)
rescue
nil
end
Expand Down
2 changes: 1 addition & 1 deletion lib/human_attributes/formatters/datetime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module HumanAttributes
module Formatters
class Datetime < Base
def apply(_instance, value)
I18n.l(value.to_datetime, options)
I18n.l(value.to_datetime, **options)
rescue
nil
end
Expand Down
2 changes: 1 addition & 1 deletion lib/human_attributes/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module HumanAttributes
VERSION = "0.7.1"
VERSION = "1.0.0"
end

0 comments on commit 920f9e6

Please sign in to comment.