translations 0.3.2 → 0.3.3

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: 3adeb0f8afe104ecf4c002f3e63fa2f68bc0d5f1
4
- data.tar.gz: 5566803ec728ac107e6bb0b8c263d6b5eb8e8407
3
+ metadata.gz: bb02852ee1ebc19e137e685f9954d8ce729f1d3c
4
+ data.tar.gz: 86e8c2ad5c00fa62abd2cecbc4bc4d96579c332c
5
5
  SHA512:
6
- metadata.gz: a73ffe665772a731fde1bb18ff509b52d1f4d48751f5bb81a62c0de461cd3a57d906459c71e0224c64109b698fec3398f54064be22cbf3b7798c09999f64947a
7
- data.tar.gz: 186c67964966779ecc068600aff085478c9683d252eaa7a17602aaa5fad24fa5e1815552814a0b10f0fe8823bd9d08d022cf9a40fdd81fab04db6bd314ae7d6e
6
+ metadata.gz: 1d4043e84cb50bd94dacbe58bc436f584959b87420672b7f0dd88f18aa740e14112e3ab295ab2bca82870c07a2feb9dbc47c730ed9d0c4969ac1dac27e102cb3
7
+ data.tar.gz: 69c82003c73fabb6d5274d37b3cd8b5b1c9dd1770a7a45e9e1598a8e071d46c6ae652cde8d9551d91fd761b8a6696bf561f9d8e05d24fcf6d129948281b68783
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- translations (0.3.2)
4
+ translations (0.3.3)
5
5
  thor (~> 0.18.1)
6
6
 
7
7
  GEM
@@ -127,13 +127,15 @@ module Translations
127
127
  end
128
128
 
129
129
  translations.slaves.each do |translation|
130
- say "#{translation.locale}: #{translation[key]}"
131
- answer = ask "#{translation.locale}?"
130
+ if translation.has_key?(key)
131
+ say "#{translation.locale}: #{translation[key]}"
132
+ answer = ask "#{translation.locale}?"
132
133
 
133
- if answer.length > 0
134
- translation[key] = answer
135
- else
136
- translation.remove key
134
+ if answer.length > 0
135
+ translation[key] = answer
136
+ else
137
+ translation.remove key
138
+ end
137
139
  end
138
140
  end
139
141
 
@@ -1,3 +1,3 @@
1
1
  module Translations
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Lienen