translateable_attributes 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 997504199e348bc5d4ced1c431d243c4fab13af6
4
- data.tar.gz: 527af86d909ba1cf3de2352d31ed035fcb159550
3
+ metadata.gz: 270dd98dafc047e70a55f988a2a5cab26fce1365
4
+ data.tar.gz: 494dc691dc735dd0e388c1cb67f5a5f1e1f4e16b
5
5
  SHA512:
6
- metadata.gz: 8fb0a2bfd87c6efc9fb1b32f42416ed44a5b9db62d7818442558a821dbf80faec30f4ea2a5d506536a3c00b4c4b747c58fe4bab8d0311a742739d603e7505891
7
- data.tar.gz: fec5d1880e68adcb9caeac0dd0cad143e1d85f7bbab46826e7db32ff11e5fb02f5ddba30183dc71a9c010bf01b69c8eb99019858d39852c63a5e604838741970
6
+ metadata.gz: a04cb78cc73fcabb40dd09432972984f94c2536350cdf9a6811581ed81c80338f34b839ebd3d8013b90209c0859257611f09bcd5ea1d465e3c41a64001183993
7
+ data.tar.gz: 4603671a4ce46d56020f8df3d7be2393832aa427267c88f81adedb68e0d1f0287309d700bfcd588570079f716140d93f84b658de5a096c11e10a62566aaa4b6f
data/HISTORY.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.3.0
2
+ Allow options to be passed to I18n translation method calls
3
+
1
4
  ### 0.2.1
2
5
  Relax activesupport dependency
3
6
 
@@ -16,8 +16,8 @@ module TranslateableAttributes
16
16
  end
17
17
  end
18
18
 
19
- define_singleton_method "translated_#{attribute}" do |value|
20
- I18n.t([namespace, value].join '.')
19
+ define_singleton_method "translated_#{attribute}" do |value, translation_options = {}|
20
+ I18n.t([namespace, value].join('.'), translation_options)
21
21
  end
22
22
 
23
23
  define_singleton_method "possible_#{plural_attribute}" do
@@ -1,3 +1,3 @@
1
1
  module TranslateableAttributes
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'.freeze
3
3
  end
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.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toms Mikoss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport