iciba 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/iciba/fanyi.rb +1 -1
- data/lib/iciba/tools.rb +1 -1
- data/lib/iciba/version.rb +1 -1
- metadata +1 -1
data/lib/iciba/fanyi.rb
CHANGED
@@ -19,7 +19,7 @@ module Iciba
|
|
19
19
|
download_and_parse(words, dir, extended)
|
20
20
|
puts wrap_text(self.result) if logs
|
21
21
|
puts if self.result.contains_cjk? && logs && pinyin
|
22
|
-
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 &&
|
22
|
+
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 && logs
|
23
23
|
puts '------------------------------------------------------------------------------------' if logs
|
24
24
|
return self.result
|
25
25
|
end
|
data/lib/iciba/tools.rb
CHANGED
data/lib/iciba/version.rb
CHANGED