arb-dict 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e7cfeeb390ed8b6345e4836ad781e6adbaeb154
4
- data.tar.gz: 27bc27242cfdaac0c7428e6c810d0aad9642d757
3
+ metadata.gz: a3760c5831de20cd8c3e36a9042a097d38c7856a
4
+ data.tar.gz: 84d120be888a01e9bbeb44a86b477c0b64f092c3
5
5
  SHA512:
6
- metadata.gz: 2dc3c50a22145977d591e44d4898ca75a4d01125c67970673a144de459b8d008694e8acfeb3c603ee80d37e1afeb613444db2d505e4518e56a50979449f59f7b
7
- data.tar.gz: 2db0c4206cb13be29d1f53595c6f0e0cd5d2247eb221b685c8d45ed8d708a1e7b771a7c97d6797417fac4eb3a147f30061058ae1e911649a5249c1de7c2a7ea8
6
+ metadata.gz: 135ff325aa15d05c4b6555630545b29935112ed520e1ddfca0aa197074cdbdcab82026283fba1451a49fc504f3ead0b7bf32023035181139804f25f78f3ed441
7
+ data.tar.gz: 935051e423c817152c71e0b5358b30f75b006850eeb4ac8548a0cc4dcd679be0f049b76b360522836c1a8ffbbe8541e8154b4b853bb7247c49e629ef3eacb1fd
data/bin/arb-dict CHANGED
@@ -52,9 +52,9 @@ if opts
52
52
  tmp_hash = JSON.parse(open("http://dict.youdao.com/jsonresult?q=#{entity}&type=1").read)
53
53
  main_hash = {
54
54
  entity: entity,
55
- phonetic_us: (tmp_hash['sm'] rescue 'No US Phonetic'),
56
- phonetic_uk: (tmp_hash['uksm'] rescue 'No UK Phonetic'),
57
- translation: (tmp_hash['basic'] rescue 'No Translation')
55
+ phonetic_us: (tmp_hash['sm'] || 'No US Phonetic'),
56
+ phonetic_uk: (tmp_hash['uksm'] || 'No UK Phonetic'),
57
+ translation: (tmp_hash['basic'] || 'No Translation')
58
58
  }
59
59
  main_hash[:sentences]=[]
60
60
  if opts.sentence?
@@ -1,5 +1,5 @@
1
1
  module Arb
2
2
  module Dict
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arb-dict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - arybin