i18n_translation_spawner 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/i18n_translation_spawner.rb +1 -1
  2. metadata +3 -3
@@ -46,7 +46,7 @@ module I18n
46
46
  translations_hash = YAML::load_file(path)
47
47
  hash_to_merge = "#{_locale.to_s}.#{key}".to_hash(translation(key, _locale.to_s)).deep_stringify_keys!
48
48
  translations_hash = translations_hash.deep_merge(hash_to_merge).to_ordered_hash
49
- File.open(path, 'w') { |f| f.write(YAML.unescape(translations_hash.ya2yaml)) }
49
+ File.open(path, 'w') { |f| f.write(YAML.unescape(translations_hash.ya2yaml.sub(/---\s*/,''))) }
50
50
  end
51
51
  rescue CannotDecodeTranslationFilePath
52
52
  if cannot_decode_translation_file_path_handler.respond_to?(:call)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_translation_spawner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - "B\xC5\x82a\xC5\xBCej --Stevo-- Kosmowski"