iciba 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/iciba/fanyi.rb +2 -2
- data/lib/iciba/version.rb +1 -1
- metadata +1 -1
data/lib/iciba/fanyi.rb
CHANGED
@@ -16,8 +16,8 @@ module Iciba
|
|
16
16
|
puts '------------------------------------------------------------------------------------' if bin
|
17
17
|
download_and_parse(words, dir, extended)
|
18
18
|
puts wrap_text(self.result) if bin
|
19
|
-
puts if self.result.contains_cjk? && bin
|
20
|
-
puts wrap_text(self.result.strip.gsub("\r\n", '|newline|').to_pinyin.gsub('|newline|', "\r\n\r\n"), 40) if self.result.contains_cjk? && bin
|
19
|
+
puts if self.result.contains_cjk? && bin && pinyin
|
20
|
+
puts wrap_text(self.result.strip.gsub("\r\n", '|newline|').to_pinyin.gsub('|newline|', "\r\n\r\n"), 40) if self.result.contains_cjk? && pinyin && bin
|
21
21
|
puts '------------------------------------------------------------------------------------' if bin
|
22
22
|
return self.result
|
23
23
|
end
|
data/lib/iciba/version.rb
CHANGED