activerecord-enum_translation 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: dbf4f2ef6f45d81466d61cedef509795f25fae8bc0ecce8e5bd852f0c99f814c
4
- data.tar.gz: 0bbfda5aa2830d39d20d64db65cc408e56570cea305048e2a552c8b369b3edc3
3
+ metadata.gz: e6a997225299f1ec8b731382cdd78029435d81cbf625ecead028de682429fab5
4
+ data.tar.gz: cf38e89127f1ed031bcb3c81c16f1afd8c7fbb9b3b61961b4aa065da5ec2e3d6
5
5
  SHA512:
6
- metadata.gz: a9c078857b0ba9995b74076847247b38473d878058dedc6c880f94516c4a28c75046e9f64843e314db59ef093ad715f2f8c4d039565cfefa227cef7cc2a63113
7
- data.tar.gz: 5e1087ed582fb2bf1c6d3ec3159552ac14e80760b6d544899756137ac54525a7ad9ead67ac14f125f50124f8cb9652e406ac0e5dc2cb2eefc367f69dad19099d
6
+ metadata.gz: 636f494620f48ae398d347bb5153c8c6fabc8e234d66bd53bfb45005d18224ad40bbeb3f62439e795ab5e32683387e7a491cf59813c69dcd6d7dbec653747820
7
+ data.tar.gz: 86a679905ff62e6c153956b7078719af5595ea9eddd377a40bda7806ca8dcad6f163de6cca3ef84e2c84af09dc20d017ae74a9328ecc188faaeb47368ec83766
data/CHANGELOG.md CHANGED
@@ -1,16 +1,19 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## Unreleased
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ ## 0.2.1 - 2022-03-13
7
6
 
8
- ## v0.2.0
7
+ ### Fixed
8
+
9
+ - Fix keyword arguments handling for Ruby 3.0.
10
+
11
+ ## 0.2.0 - 2020-09-12
9
12
 
10
13
  ### Added
11
14
 
12
15
  - Add `:count` option.
13
- - Add `"attributes.#{enum_name}.#{enum_value}" key.
16
+ - Add `"attributes.#{enum_name}.#{enum_value}"` key.
14
17
  - Add humanized enum value as default value.
15
18
  - Support `i18n_scope` override.
16
19
 
@@ -18,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
21
 
19
22
  - Fix broken `:default` option on `#human_enum_name_reader_for`.
20
23
 
21
- ## v0.1.0 - 2020-09-12
24
+ ## 0.1.0 - 2020-09-12
22
25
 
23
26
  ### Added
24
27
 
data/Gemfile.lock CHANGED
@@ -1,34 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-enum_translation (0.2.0)
4
+ activerecord-enum_translation (0.2.1)
5
5
  activerecord
6
6
  activesupport
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (6.0.3.2)
12
- activesupport (= 6.0.3.2)
13
- activerecord (6.0.3.2)
14
- activemodel (= 6.0.3.2)
15
- activesupport (= 6.0.3.2)
16
- activesupport (6.0.3.2)
11
+ activemodel (7.0.2.3)
12
+ activesupport (= 7.0.2.3)
13
+ activerecord (7.0.2.3)
14
+ activemodel (= 7.0.2.3)
15
+ activesupport (= 7.0.2.3)
16
+ activesupport (7.0.2.3)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- zeitwerk (~> 2.2, >= 2.2.2)
22
- concurrent-ruby (1.1.7)
23
- i18n (1.8.5)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ concurrent-ruby (1.1.9)
22
+ i18n (1.10.0)
24
23
  concurrent-ruby (~> 1.0)
25
24
  minitest (5.14.2)
26
25
  rake (12.3.3)
27
26
  sqlite3 (1.4.2)
28
- thread_safe (0.3.6)
29
- tzinfo (1.2.7)
30
- thread_safe (~> 0.1)
31
- zeitwerk (2.4.0)
27
+ tzinfo (2.0.4)
28
+ concurrent-ruby (~> 1.0)
32
29
 
33
30
  PLATFORMS
34
31
  ruby
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module EnumTranslation
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -34,7 +34,7 @@ module ActiveRecord
34
34
 
35
35
  key = defaults.shift
36
36
  options[:default] = defaults.empty? ? nil : defaults
37
- ::I18n.t(key, options)
37
+ ::I18n.t(key, **options)
38
38
  end
39
39
 
40
40
  module ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-enum_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-11 00:00:00.000000000 Z
11
+ date: 2022-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.0.3
83
+ rubygems_version: 3.1.4
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Provides integration between ActiveRecord::Enum and I18n.