megasena 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/config/contests.yml +1 -1
- data/lib/lottery/loteca.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjM4YzcwY2FjMzc2MDZhOWIxYzk3MGFkNzUwY2M4Zjk4YmViNWE0Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDZlNWQ5MGI3MjFlMGIzMGMzMTMwNTk0NjZlZmJhZGM0Yzk2NWVjYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWUxNTcwZmI4OThmNGNmYzI2YzI1MjI4NGJmNjhmN2IxNDE5MDIzZTZkMTVl
|
10
|
+
NjAzY2MxNjJhMTFkMTE4Y2FmMGI0Y2Q1N2MxYmY2NGRjODM1ODNmMmIzNTdm
|
11
|
+
NjgwZTkxYzdiZjAxYWJlZTE0YjBlOGRkMjk0NjRiMGM0OTcxMzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjJlN2I3ODNjNTViZTRlNzQ5ZjYyMDBhMmQyY2QwNzQ3MzI0ODVkNzA2MmY2
|
14
|
+
Y2UwMTM2NGRkZTVkMGY2YWQzYTM5MmQ3OGZhNTMzM2Q1OTliNWM2NDI5OGQ0
|
15
|
+
ZDRjZDUxNTE1MjM4NDJiYWI4ZGYzZGIyMGQyNjA4ZjViMTY4N2Q=
|
data/config/contests.yml
CHANGED
@@ -6,7 +6,7 @@ quina:
|
|
6
6
|
:dom: '//span[@id="sorteio2"]/ul/li'
|
7
7
|
duplasena:
|
8
8
|
:url: 'http://www1.caixa.gov.br/loterias/loterias/duplasena/duplasena_pesquisa_new.asp'
|
9
|
-
:dom: '//span[@class="num_sorteio"][position()<=
|
9
|
+
:dom: '//span[@class="num_sorteio"][position()<=1]/ul'
|
10
10
|
# instantanea:
|
11
11
|
# url: ""
|
12
12
|
# dom: ""
|
data/lib/lottery/loteca.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
+
# encoding: ISO-8859-1
|
1
2
|
module Lottery
|
2
3
|
class Loteca < Lottery::Gamble
|
3
4
|
def get_numbers
|
4
5
|
|
5
6
|
games = Hash.new
|
7
|
+
dom = path[:etc]
|
6
8
|
|
7
9
|
super.each do |tr|
|
8
10
|
games.merge!({
|
9
|
-
tr.xpath(
|
10
|
-
:date => tr.xpath(
|
11
|
-
:player1 => { :name => tr.xpath(
|
12
|
-
:player2 => { :name => tr.xpath(
|
11
|
+
tr.xpath(dom[:game]).text => {
|
12
|
+
:date => tr.xpath(dom[:date]).inner_html,
|
13
|
+
:player1 => { :name => tr.xpath(dom[:player1]).inner_html, :score => tr.xpath(dom[:score_1]).text.to_i },
|
14
|
+
:player2 => { :name => tr.xpath(dom[:player2]).inner_html, :score => tr.xpath(dom[:score_2]).text.to_i }
|
13
15
|
}
|
14
16
|
})
|
15
17
|
end
|