daumdic 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/daumdic.rb +11 -1
- metadata +19 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b935808b86bedde13f5824e2c22a11b85e7f087e
|
4
|
+
data.tar.gz: 4d2ed12fceb62d4d59b8d8da6c612a6aa3b92374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3250b32a04c171bfc7cd364b2794fe6c999f5f2fb3783a4c0621c811eea0620b313378dfdbc5d8e988655ecec98bd1b4971effb076e76fb4c022caa293b5edb8
|
7
|
+
data.tar.gz: bd7f8be74a8bf5f3682554696ae3b84a1bfa74cc0f83fda3cc7b1d5dee6fb8578f8b11a25568f63cda05997c5899cf82c08186312dcabb87fd38d5f39e01e2e7
|
data/lib/daumdic.rb
CHANGED
@@ -1,10 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2015-2017 Hyeon Kim
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
7
|
+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
8
|
+
# option. This file may not be copied, modified, or distributed
|
9
|
+
# except according to those terms.
|
10
|
+
|
1
11
|
require 'uri'
|
2
12
|
require 'nokogiri'
|
3
13
|
require 'open-uri'
|
4
14
|
|
5
15
|
class Daumdic
|
6
16
|
# 다음사전에 단어를 검색한 후, 한줄짜리 결과를 출력한다.
|
7
|
-
def self.
|
17
|
+
def self.one_liner(input)
|
8
18
|
return if input.nil?
|
9
19
|
return if (input = input.strip).empty?
|
10
20
|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daumdic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hyeon Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
13
27
|
description: Daum Dictionary API written in ruby.
|
14
28
|
email: simnalamburt@gmail.com
|
15
29
|
executables: []
|
@@ -19,6 +33,7 @@ files:
|
|
19
33
|
- lib/daumdic.rb
|
20
34
|
homepage: https://github.com/simnalamburt/daumdic-ruby
|
21
35
|
licenses:
|
36
|
+
- Apache-2.0
|
22
37
|
- MIT
|
23
38
|
metadata: {}
|
24
39
|
post_install_message:
|
@@ -37,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
52
|
version: '0'
|
38
53
|
requirements: []
|
39
54
|
rubyforge_project:
|
40
|
-
rubygems_version: 2.
|
55
|
+
rubygems_version: 2.6.11
|
41
56
|
signing_key:
|
42
57
|
specification_version: 4
|
43
58
|
summary: Daum Dictionary
|