blade-translate 0.1.3 → 0.1.4

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: 9097a30a7d949f2cbebfe5e4d0c33dea88f238e4
4
- data.tar.gz: c60dab19953a061f6ecc74c07815eeb18ff57f98
3
+ metadata.gz: fa7b83cbc52fd0fc845ab399166a6e7f252edc2f
4
+ data.tar.gz: 5cf8c010fc5de35fd3016d618b28b429663f0ea7
5
5
  SHA512:
6
- metadata.gz: e1f5b9753f57225036d88edab097236804c42d4651075d0391fe88eaeb1b10a6450d0bc12833f465db6733fc493376d8fccbbc31641791cefcc2c479c4fea20c
7
- data.tar.gz: 17365f81bf489189514353ceaf52b77f90064df98008d5a3dbafe92faf645c1da4a501ed645777d1535a5cfde3c164ae385cc2a30efee96aad2f60e168a85dfb
6
+ metadata.gz: 06e45190d9e6fd075d31fc6d154dacc4fb3ca908e621d1de645e720dab6ceb7bf53c1bafd07f07825550bb2eeb51ad1271500fdc7790a027996e135585bbb6ef
7
+ data.tar.gz: e823ee7841a19d32a6ca0c3f874729d27494393d4125189bf775eea9c2cb2476afca1bb1f292abb6caa469cf5f70f69c0ea196f8bcb5ff12d78bbd8caea9cf00
data/bin/thc CHANGED
@@ -3,11 +3,11 @@
3
3
  require_relative '../lib/blade/translate'
4
4
 
5
5
  help = <<HELP
6
- fy: Translate tools in the command line
7
- $ fy word
8
- $ fy world peace
9
- $ fy chinglish
10
- $ fy
6
+ thc: Translate tools in the command line
7
+ $ thc word
8
+ $ thc world peace
9
+ $ thc chinglish
10
+ $ thc
11
11
  > enter the loop mode, ctrl+c to exit
12
12
  HELP
13
13
 
@@ -5,6 +5,7 @@ require "rainbow/ext/string"
5
5
 
6
6
 
7
7
  module Blade
8
+ API_URL = "http://fanyi.youdao.com/openapi.do?keyfrom=JIANGDi&key=891853312&type=data&doctype=json&version=1.1&q="
8
9
  module Translate
9
10
  def initialize(input)
10
11
  @words = input
@@ -1,5 +1,5 @@
1
1
  module Blade
2
2
  module Translate
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blade-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - icepoint0