vinber 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: 0d72c42b8e6547b2d67df4da42ca834fdf63de5db7b293350f056e293fb4ba99
4
- data.tar.gz: 11b751877bc07a2a796c394a292d939d219748bffc04c00ad527dab28ebf7090
3
+ metadata.gz: b926def8a5649c0dce30e43f843b0eceb4500e63021e346ea78b4ddccc3b0b38
4
+ data.tar.gz: 7f61d0430ecad48b1d01405208892d9a48381d7ef91c8af082f03b8947b80f92
5
5
  SHA512:
6
- metadata.gz: db623142d084da3d94de14e4e5927c3775db50c9189a5ea58f1a1a4cb263f5e9b75e1b438ddca076e928ec7a0684ffec7c3079fc2994339bbb7dd53227af9b4d
7
- data.tar.gz: 51e6b96f6c7b38eafd02bddacd8931cb77b34e44d16c80cc2862c8eb56be87e65fe86a4247028603c37a945227475e81eb3bc4a9954c5846197de480e756cc2b
6
+ metadata.gz: acddde5615652b4ebe5408d7bc696fe2ce980a1c36861b328e998e2d7b35f4f3d4d96ff15f3e81b1e325b77fc6e7c97e27c9ff1ce430e573e90ea7506daba6c4
7
+ data.tar.gz: d4a9219e269ad77a6239a30d7fdbbeaecfca883376e8491480b18146f43006d8ff448d474636f9383f5efcb5ca681b50b213531c16f94edc9bb8d70c919719f9
@@ -1,3 +1,3 @@
1
1
  module Vinber
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -13,7 +13,7 @@ module Vinber
13
13
  attribute_vinber_key = attribute_vinber.key val
14
14
  t ? Vinber::Translate.new(klass, attribute, attribute_vinber_key).to_s : attribute_vinber_key.to_s
15
15
  elsif [true, false].include?(val)
16
- Vinber::Translate.new(klass, attribute, val).to_s
16
+ t ? Vinber::Translate.new(klass, attribute, val).to_s : val
17
17
  else
18
18
  val
19
19
  end
@@ -25,7 +25,7 @@ module Vinber
25
25
  key = key_or_value
26
26
  else
27
27
  attribute_vinber = defined_vinbers || {}
28
- key = attribute_vinber.key key_or_value
28
+ key = attribute_vinber[attribute.to_s].key key_or_value
29
29
  end
30
30
 
31
31
  Vinber::Translate.new(klass, attribute, key).to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vinber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cenxky