lost_in_translation 0.2.11 → 0.2.12

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
2
  SHA1:
3
- metadata.gz: f71ece6162f872d6a1042cb0a4cdd55bfc6faa21
4
- data.tar.gz: d087d8f61022872924e7da0a4aa7133c1ae2dfdb
3
+ metadata.gz: 12d0ba6a02e431ba6b2dba0718ad03f6349e0e7e
4
+ data.tar.gz: 457723c1642e036917e8069c57916e8b43e54bdf
5
5
  SHA512:
6
- metadata.gz: 0a931ccbc8bb740cc5fff512567fc959d7297f82f36f296b3cff554b542a5c90723ad323642460994fd872b0a8124810a6d4e05eee3bd56e2986142fb1cd9375
7
- data.tar.gz: a30a5fc6437018254ef46b2b99b0df7567fe075bddba5784aff17d173d3543ad577a19e2ce610d090343e1fcb2ae6a2cae69572ab6733a09b5865a1119563fb7
6
+ metadata.gz: b88a8905928ad547b0e932113da966c988e30183c497da42ae6c56fc464086fa2308479582e8b9c7c4c5d33b52a1ec79f5a62fc6279f73d67c741055a562b3c5
7
+ data.tar.gz: b460825c42d3853fce4dbd4821028a3bc3adfe7e76ac57569619eddfb69a3f6abf3929e027ebc42e74605aeb0ffc5d24a1df4f50c2c4a6a849480e8d9b91f354
@@ -15,7 +15,6 @@ module LostInTranslation
15
15
  @diff_counter += 1
16
16
  if @mode == 'replace' && value_missing(@slave_file, new_structure)
17
17
  new_val = ask_for_translation(value, new_structure, lang1, lang2, @diff_count, @diff_counter)
18
- return new_array if new_val.present? && new_val.end_with?('exit')
19
18
  new_array << new_val unless new_val.blank?
20
19
  elsif @mode == 'clean'
21
20
  new_array << "#{new_structure.join('---')}---#{value}"
@@ -31,7 +31,7 @@ module LostInTranslation
31
31
  snippets
32
32
  end
33
33
 
34
- def reset_tmp_files
34
+ def self.reset_tmp_files
35
35
  paths = tmp_paths
36
36
  paths.each_value do |path|
37
37
  File.open(path, 'w') { |file| file.write('') }
@@ -2,5 +2,5 @@
2
2
 
3
3
  #
4
4
  module LostInTranslation
5
- VERSION = '0.2.11'
5
+ VERSION = '0.2.12'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lost_in_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datyv