treccani 0.1 → 0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f2d80621bceb5cbc9fc987df92165936f9712c
|
4
|
+
data.tar.gz: 5018a24202b47be888944b7be145591cfc720805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9566b4627fa16014c07644864a490cef9e27ffa2e74b2bc7b8308e4cc6e18ce4fa96d7f0a4ded5c97908d29e56077d4916670f38c8898e13afeb0796c6f0116e
|
7
|
+
data.tar.gz: d05254fa579aff55f1ed320763f4d43c8119b69c52fff190761257fb7447264f113f30bd6e0504d236c187a0a518e243e54edb58ded8f4955627e0340ab3f4a4
|
@@ -20,7 +20,6 @@ class Enciclopedia < Treccani
|
|
20
20
|
end
|
21
21
|
alias_method :find, :get
|
22
22
|
|
23
|
-
private
|
24
23
|
def get_url(word)
|
25
24
|
url = Nokogiri::HTML(open("#{@server}/enciclopedia/ricerca/#{word}/")).at_xpath('//ol[@class="listing"]/li/h2/a/@href').to_s
|
26
25
|
raise 'Term not found.' if url.empty?
|
@@ -15,7 +15,6 @@ class Sinonimi < Treccani
|
|
15
15
|
end
|
16
16
|
alias_method :find, :get
|
17
17
|
|
18
|
-
private
|
19
18
|
def get_url(word)
|
20
19
|
url = Nokogiri::HTML(open("#{@server}/vocabolario/ricerca/#{word}/Sinonimi_e_Contrari/")).at_xpath('//li[@class="result fs"]/h2/a/@href').to_s
|
21
20
|
raise 'Term not found.' if url.empty?
|
data/lib/treccani/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: treccani
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: RESTful API to get the meaning and synonyms of
|
55
|
+
description: RESTful API to get the meaning and synonyms of Italian all the italian
|
56
56
|
terms.
|
57
57
|
email: webmaster@giovannicapuano.net
|
58
58
|
executables: []
|