treccani 0.1 → 0.2

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: 7d2517c9785eab462b664f244046cabe5e2fde36
4
- data.tar.gz: bbdd82433d75096bf08b957d94fea1a8a5c167fb
3
+ metadata.gz: e8f2d80621bceb5cbc9fc987df92165936f9712c
4
+ data.tar.gz: 5018a24202b47be888944b7be145591cfc720805
5
5
  SHA512:
6
- metadata.gz: 33a22fcaf20996712daeacaafbd940920395cfd59fed604addf5be87ad7ed8ea2e2aeb12851f6021dfc0bb5eeaff4fff6119369025c3577702e2c893c8c7bd77
7
- data.tar.gz: 4bb5f8e385a8762f08d43a357d585f53c37eaf1f8d0d1d445f03f4728cea05082c704476cd2459b35620da1809264c36a9d6bc2844e950e444347e7c233e1088
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?
@@ -19,7 +19,6 @@ class Vocabolario < Treccani
19
19
  end
20
20
  alias_method :find, :get
21
21
 
22
- private
23
22
  def get_url(word)
24
23
  url = Nokogiri::HTML(open("#{@server}/vocabolario/tag/#{word}/")).at_xpath('//li[@class="result fs"]/h2/a/@href').to_s
25
24
  raise 'Term not found.' if url.empty?
@@ -10,6 +10,6 @@
10
10
 
11
11
  class Treccani
12
12
  def self.version
13
- '0.1'
13
+ '0.2'
14
14
  end
15
15
  end
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.1'
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 italian all the italian
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: []