iciba 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +9 -2
- data/lib/iciba/fanyi.rb +1 -1
- data/lib/iciba/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Iciba
|
2
2
|
|
3
|
-
|
3
|
+
A command-line/ruby tool to translate chinese using fy.iciba.com
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,14 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Command-line usage:
|
22
|
+
|
23
|
+
$ fy 'words to be translated'
|
24
|
+
|
25
|
+
Ruby usage:
|
26
|
+
|
27
|
+
require 'iciba'
|
28
|
+
Iciba::Fanyi.new('words to be translated')
|
22
29
|
|
23
30
|
## Contributing
|
24
31
|
|
data/lib/iciba/fanyi.rb
CHANGED
@@ -7,7 +7,7 @@ module Iciba
|
|
7
7
|
|
8
8
|
def initialize(words, dir='auto', bin=false)
|
9
9
|
puts '------------------------------------------------------------------------------------' if bin
|
10
|
-
# puts if
|
10
|
+
# puts if bingit
|
11
11
|
puts wrap_text(words, 40)
|
12
12
|
puts '------------------------------------------------------------------------------------' if bin
|
13
13
|
download_and_parse(words, dir)
|
data/lib/iciba/version.rb
CHANGED