serial_translator 0.0.5 → 0.0.6

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: 46318b38f444ed6a25379dd0aeafe616232b1f22
4
- data.tar.gz: 4aa381357c2b9ae40d97330ca7b466114d69225f
3
+ metadata.gz: b12d1c7941946146a313e7094301f9cd6140c1ce
4
+ data.tar.gz: 5bb409e15ae9ef1e6a2153bb0da33b133d60a877
5
5
  SHA512:
6
- metadata.gz: 179f207c79c20b56732b8a760ac18e0c02cb7e97de9d781a9de6761fc9a6480b7908f0cb701c40dfda4f51b3058f89cf9914511042d004fea80593c66baa7585
7
- data.tar.gz: 2c46ea1ceaf2f97f76c67d954ca935167bb3f793b6fafedf3acf3a346635328feb396487be6035cd77e3ce687d0bcfe3daa1806e86fcf38b6804e9074989ac22
6
+ metadata.gz: ee14338ddda0296321ee74534384329c3037940847095003c85bdb00a98c1004c3b5c572bb4b75eabb39d6ce85801bf42f92fe4208b5f64de130ed04aef7fef7
7
+ data.tar.gz: 9f903d699f34628b46921f4bca54afc413c41bf4c1599b4d01185829f7e0ca7c6a12b5311ceed30247bcb0530b313541849e409159597c65eca7cc63f62b8246
@@ -31,13 +31,13 @@ module SerialTranslator
31
31
  # Define the normal setter, that respects the
32
32
  # current translation locale
33
33
  define_method "#{attribute}=" do |value|
34
+ __send__(:"#{attribute}_translations_will_change!")
34
35
  translations = translations_for(attribute)
35
36
  if value.present?
36
37
  translations[current_translation_locale] = value
37
38
  else
38
39
  translations.delete(current_translation_locale)
39
40
  end
40
- __send__(:"#{attribute}_translations_will_change!")
41
41
  __send__(:"#{attribute}_translations=", translations)
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module SerialTranslator
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serial_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace development team