lost_in_translation 0.2.10 → 0.2.11

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: 1075e789fd4de6e65635ff9a8133487f72570884
4
- data.tar.gz: f83ed48c0f6217e5a861644bc63bc959ac6b40a7
3
+ metadata.gz: f71ece6162f872d6a1042cb0a4cdd55bfc6faa21
4
+ data.tar.gz: d087d8f61022872924e7da0a4aa7133c1ae2dfdb
5
5
  SHA512:
6
- metadata.gz: c36f01b401213ed13fac46795dc6aa55bfe715ed1b6c61af51c8cc17c8fc58be8503fd1830a975716924f63fe54fe1e62b0a8b1c782622417ab81bc43fd6b0cd
7
- data.tar.gz: 3897f58e79dee4c55782e58b11e5bcd1c81a890ab7da9b29bfc593bcfee10faa3105559b6d06b4fdcacd28cc5be2ae8a45491986fbed98e89b02ccdcf9691bfc
6
+ metadata.gz: 0a931ccbc8bb740cc5fff512567fc959d7297f82f36f296b3cff554b542a5c90723ad323642460994fd872b0a8124810a6d4e05eee3bd56e2986142fb1cd9375
7
+ data.tar.gz: a30a5fc6437018254ef46b2b99b0df7567fe075bddba5784aff17d173d3543ad577a19e2ce610d090343e1fcb2ae6a2cae69572ab6733a09b5865a1119563fb7
@@ -16,7 +16,7 @@ module LostInTranslation
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
18
  return new_array if new_val.present? && new_val.end_with?('exit')
19
- new_array << new_val unless new_val.nil?
19
+ new_array << new_val unless new_val.blank?
20
20
  elsif @mode == 'clean'
21
21
  new_array << "#{new_structure.join('---')}---#{value}"
22
22
  end
@@ -50,8 +50,9 @@ module LostInTranslation
50
50
  end
51
51
 
52
52
  puts "# In #{lang1.upcase}: #{value}"
53
- new_val = [(print '# ' + lang2 + ': '), Readline.readline()][1]
54
- new_val == '' ? nil : (new_s + '---' + new_val)
53
+ new_val = [(print "# In #{lang2.upcase}: "), Readline.readline()][1]
54
+ new_val = (new_s + '---' + new_val) unless new_val.blank?
55
+ new_val
55
56
  end
56
57
 
57
58
  def self.log(text = '')
@@ -2,5 +2,5 @@
2
2
 
3
3
  #
4
4
  module LostInTranslation
5
- VERSION = '0.2.10'
5
+ VERSION = '0.2.11'
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.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datyv