translateable_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
- SHA1:
3
- metadata.gz: 270dd98dafc047e70a55f988a2a5cab26fce1365
4
- data.tar.gz: 494dc691dc735dd0e388c1cb67f5a5f1e1f4e16b
2
+ SHA256:
3
+ metadata.gz: 2914565205b37db29a0b165f82c17f9f9fab874f759427bac4c4baa0d2ae4541
4
+ data.tar.gz: e7db39c5936bc5526bda12ed8746a32633f3fddff48252acc00ee7bdfdeac8ec
5
5
  SHA512:
6
- metadata.gz: a04cb78cc73fcabb40dd09432972984f94c2536350cdf9a6811581ed81c80338f34b839ebd3d8013b90209c0859257611f09bcd5ea1d465e3c41a64001183993
7
- data.tar.gz: 4603671a4ce46d56020f8df3d7be2393832aa427267c88f81adedb68e0d1f0287309d700bfcd588570079f716140d93f84b658de5a096c11e10a62566aaa4b6f
6
+ metadata.gz: 627685d96c6547fbe784549d033bbe0118b05b4afb0508fabb7ebc62d9203cb92a8889213022527ccb25442e12ea91b5fe23c4b3f6ba2d2b9b8e24d2ff5d3fe7
7
+ data.tar.gz: b9c06ca689ee048fb64871f7a1777be7e83a24003f428856bd2da1edef1ae57b1098a59643d9e6c4573a1dee2f594330bee374c17a1c53774249849593747b0e
data/.rubocop.yml CHANGED
@@ -6,6 +6,9 @@ AllCops:
6
6
  Metrics/LineLength:
7
7
  Max: 145
8
8
 
9
+ Metrics/BlockLength:
10
+ Max: 45
11
+
9
12
  Style/Documentation:
10
13
  Enabled: false
11
14
 
@@ -17,3 +20,18 @@ Style/ClassAndModuleChildren:
17
20
 
18
21
  Style/MethodLength:
19
22
  Enabled: false
23
+
24
+ Style/FrozenStringLiteralComment:
25
+ Enabled: false
26
+
27
+ Gemspec/RequiredRubyVersion:
28
+ Enabled: false
29
+
30
+ Style/ExpandPathArguments:
31
+ Enabled: false
32
+
33
+ Style/SymbolArray:
34
+ Enabled: false
35
+
36
+ Style/FormatStringToken:
37
+ Enabled: false
data/HISTORY.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.3.1
2
+ Update for compatibility with I18n 1.8.9
3
+
1
4
  ### 0.3.0
2
5
  Allow options to be passed to I18n translation method calls
3
6
 
@@ -17,7 +17,7 @@ module TranslateableAttributes
17
17
  end
18
18
 
19
19
  define_singleton_method "translated_#{attribute}" do |value, translation_options = {}|
20
- I18n.t([namespace, value].join('.'), translation_options)
20
+ I18n.t([namespace, value].join('.'), **translation_options)
21
21
  end
22
22
 
23
23
  define_singleton_method "possible_#{plural_attribute}" do
@@ -25,5 +25,6 @@ module TranslateableAttributes
25
25
  end
26
26
  end
27
27
  end
28
+ # rubocop:enable Metrics/AbcSize
28
29
  end
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module TranslateableAttributes
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'translateable_attributes/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translateable_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
  - Toms Mikoss
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2021-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -121,7 +121,7 @@ homepage: https://github.com/tmikoss/translateable_attributes
121
121
  licenses:
122
122
  - MIT
123
123
  metadata: {}
124
- post_install_message:
124
+ post_install_message:
125
125
  rdoc_options: []
126
126
  require_paths:
127
127
  - lib
@@ -136,9 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.5.1
141
- signing_key:
139
+ rubygems_version: 3.0.6
140
+ signing_key:
142
141
  specification_version: 4
143
142
  summary: Helper methods to display translated values of object attributes.
144
143
  test_files: []