politicosbr 2.1.1 → 2.1.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/politicosbr.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71b58e231451df3daa2f9b192a08ead483648929
4
- data.tar.gz: f3086efc474ef827593094fd4a478f41e876f8a4
3
+ metadata.gz: 8bcb44deff893d673fb12b09a06364785d15ed19
4
+ data.tar.gz: e813a37abebf38d9bdfb1e7f2cb925a9a9840a43
5
5
  SHA512:
6
- metadata.gz: c322ccdf2763dc6453f114436997a409f2fa232d51d63e70af24403363b1ceff28161ea16ac2eb8cda5f1132805201e9066b7e3470558753246a81bb7e4144af
7
- data.tar.gz: fd5944963b2cf6e94af0f70bedf5f0f1d3ba4125222ddf5fb319b677b2750c7eea99f195d2d6eb7c0538fbbba7d887713166c9cc9d88813a0282d7ad8a990db9
6
+ metadata.gz: 3374811abbdbb61a045ce0fae6c4424034b0b528dc451f8e482daf624ede3f7c2de2b4bba2041dde12329643a7dcc686b227ffeb8edbfd1d3d2d39e449d3210d
7
+ data.tar.gz: 9c93c594e560af2afd1f3b7456d21ad6255c37518b0ec319030e7f96ed698be232b7e47d9c4048935b5b1e206ed84f96e5041af2efc82a7b44f4f7dfec923fcc
data/lib/politicosbr.rb CHANGED
@@ -23,7 +23,7 @@ module PoliticosBR
23
23
 
24
24
  deputado = OpenStruct.new
25
25
  deputado.tipo = 'deputado'
26
- deputado.nome = row[0]
26
+ deputado.nome = row[0].upcase
27
27
  deputado.partido = row[1]
28
28
  deputado.estado = row[2]
29
29
  deputado.mandato = ''
@@ -45,7 +45,7 @@ module PoliticosBR
45
45
  rows.each do |row|
46
46
  senador = OpenStruct.new
47
47
  senador.tipo = 'senador'
48
- senador.nome = row.at_xpath('td[1]/a/text()').to_s.strip
48
+ senador.nome = row.at_xpath('td[1]/a/text()').to_s.strip.upcase
49
49
  senador.partido = row.at_xpath('td[2]/text()').to_s.strip
50
50
  senador.estado = row.at_xpath('td[3]/text()').to_s.strip
51
51
  senador.mandato = row.at_xpath('td[4]/text()').to_s.strip
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: politicosbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edvaldo Silva de Almeida Jr. (edvaldoajunior@gmail.com)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-21 00:00:00.000000000 Z
12
+ date: 2016-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri