daumdic 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/daumdic.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53153ed2de88df68a78fbc0acba0cfd7e80e0fc8
4
- data.tar.gz: 70aacc7f5f41a5038ffe175dad2f67787362ac7a
3
+ metadata.gz: 28cb044d6a1bc5828a159519d3111489c32b0485
4
+ data.tar.gz: d383ac74d9862b8afd29f73ea07340d8bda9acf5
5
5
  SHA512:
6
- metadata.gz: ea2376dba3731f528d7a8bf59852653b2239e8228df1825ecf93cfd9003c785025ee92efee5a58cec514519945f55c985d8e679a0645b783301bcda1dd06e8f2
7
- data.tar.gz: 0c9858c64f748e69128557db94d07e5eb4277b82e9d3b208e114707f7acabee03453be5ec0670427727e86057e4591287d60e51cfbced8f047d1cebd69dd71b4
6
+ metadata.gz: 9c9d35c32eec4462233f5e07a6dcde5d188399e49434b1dd63c3a47c4a21d046e6c36813d635b61f4cb79f0dbee6e4b79b7d8f6933f7967dcccf34e595f1562b
7
+ data.tar.gz: 869a74ec89144f042f13c26ce10465459979f1df98390af2ba558873737a1e05428be4c8fa870e248eb7215480787be385dbdd767eab7140d174efc8292935fb
@@ -19,6 +19,7 @@ class Daumdic
19
19
  return if box.nil?
20
20
 
21
21
  word = box.css('.txt_cleansch').text
22
+ word = box.css('.txt_searchword')[0]&.text if word.empty?
22
23
  meaning = box.css('.txt_search').map(&:text).join(', ')
23
24
  pronounce = box.css('.txt_pronounce').first&.text
24
25
  lang = box.parent.css('.tit_word').text
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daumdic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hyeon Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Daum Dictionary API written in ruby.
14
14
  email: simnalamburt@gmail.com