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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Iciba
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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 bin
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
@@ -1,3 +1,3 @@
1
1
  module Iciba
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iciba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: