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.
- checksums.yaml +4 -4
- data/lib/daumdic.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28cb044d6a1bc5828a159519d3111489c32b0485
|
|
4
|
+
data.tar.gz: d383ac74d9862b8afd29f73ea07340d8bda9acf5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c9d35c32eec4462233f5e07a6dcde5d188399e49434b1dd63c3a47c4a21d046e6c36813d635b61f4cb79f0dbee6e4b79b7d8f6933f7967dcccf34e595f1562b
|
|
7
|
+
data.tar.gz: 869a74ec89144f042f13c26ce10465459979f1df98390af2ba558873737a1e05428be4c8fa870e248eb7215480787be385dbdd767eab7140d174efc8292935fb
|
data/lib/daumdic.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|