foot_stats 0.0.1

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 (40) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +72 -0
  6. data/Rakefile +1 -0
  7. data/foot_stats.gemspec +26 -0
  8. data/lib/foot_stats/championship.rb +66 -0
  9. data/lib/foot_stats/championship_classification.rb +55 -0
  10. data/lib/foot_stats/error_response.rb +13 -0
  11. data/lib/foot_stats/match.rb +77 -0
  12. data/lib/foot_stats/narration.rb +69 -0
  13. data/lib/foot_stats/request.rb +58 -0
  14. data/lib/foot_stats/resource.rb +27 -0
  15. data/lib/foot_stats/response.rb +61 -0
  16. data/lib/foot_stats/setup.rb +27 -0
  17. data/lib/foot_stats/team.rb +37 -0
  18. data/lib/foot_stats/version.rb +3 -0
  19. data/lib/foot_stats.rb +14 -0
  20. data/spec/cassettes/championship.yml +62 -0
  21. data/spec/cassettes/championship_classification.yml +76 -0
  22. data/spec/cassettes/championship_classification_error_response.yml +63 -0
  23. data/spec/cassettes/championship_match.yml +82 -0
  24. data/spec/cassettes/championship_match_error_response.yml +63 -0
  25. data/spec/cassettes/championship_teams.yml +68 -0
  26. data/spec/cassettes/championship_teams_error_response.yml +63 -0
  27. data/spec/cassettes/error_response.yml +62 -0
  28. data/spec/cassettes/match_narration.yml +83 -0
  29. data/spec/cassettes/match_narration_error_response.yml +63 -0
  30. data/spec/cassettes/match_null_narration.yml +73 -0
  31. data/spec/foot_stats/championship_classification_spec.rb +53 -0
  32. data/spec/foot_stats/championship_spec.rb +77 -0
  33. data/spec/foot_stats/match_spec.rb +67 -0
  34. data/spec/foot_stats/narration_spec.rb +69 -0
  35. data/spec/foot_stats/request_spec.rb +43 -0
  36. data/spec/foot_stats/response_spec.rb +72 -0
  37. data/spec/foot_stats/setup_spec.rb +6 -0
  38. data/spec/foot_stats/team_spec.rb +38 -0
  39. data/spec/spec_helper.rb +15 -0
  40. metadata +184 -0
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaCampeonatos
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '15'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ V2VkLCAwMiBKYW4gMjAxMyAyMDo0MzoyMSBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ <string xmlns="http://tempuri.org/">
57
+ { "Campeonato": [ { "@Id": "172", "@Nome": "Camp. Paulista 2012", "@TemClassificacao": "True", "@RodadaATual": "1", "@Rodadas": "18" } ] }
58
+ </string>
59
+ http_version: !binary |-
60
+ MS4x
61
+ recorded_at: Wed, 02 Jan 2013 20:43:25 GMT
62
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaClassificacao
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Campeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '30'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMToyNToyOSBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ <string xmlns="http://tempuri.org/">
57
+ {"Campeonato":{"@Id":"198","@Nome":"Camp. Mineiro 2012","@Temporada":"2012",
58
+ "@Fase":"Primeira Fase","Classificacoes":{"Classificacao":{"@Taca":"",
59
+ "Equipe":[
60
+ {"@Id":"1487","@Nome":"América (Teófilo Otoni)",
61
+ "@Grupo":"","Posicao":"1",
62
+ "Pontos_Ganhos":"30",
63
+ "Jogos":"10",
64
+ "Vitorias":"10","Empates":"0","Derrotas":"0",
65
+ "Gols_Pro":"23","Gols_Contra":"9","Saldo_Gols":"14",
66
+ "Vitorias_Casa":"5","Empates_Casa":"0","Derrotas_Casa":"0",
67
+ "Vitorias_Fora":"5","Empate_Fora":"0","Derrotas_Fora":"0",
68
+ "Aproveitamento":"",
69
+ "Ponto_Maximo":"33"}
70
+ ]
71
+ }}}}
72
+ </string>
73
+ http_version: !binary |-
74
+ MS4x
75
+ recorded_at: Thu, 03 Jan 2013 01:25:32 GMT
76
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaClassificacao
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Campeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '30'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMToyNzo1OSBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdHJp
57
+ bmcgeG1sbnM9Imh0dHA6Ly90ZW1wdXJpLm9yZy8iPnsiRXJybyI6eyJATWVu
58
+ c2FnZW0iOiJVc3XDoXJpbyBvdSBzZW5oYSBJbnbDoWxpZG9zIn19PC9zdHJp
59
+ bmc+
60
+ http_version: !binary |-
61
+ MS4x
62
+ recorded_at: Thu, 03 Jan 2013 01:28:02 GMT
63
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaPartidas
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Campeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '30'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMjo1NTo1NiBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ {"Partidas": {
57
+ "Partida":[{
58
+ "@Id":"34829",
59
+ "Equipe":[
60
+ {"@Id":"1077","@Nome":"Caldense","@Placar":" ","@PlacarPenaltis":"","@Tipo":"Mandante"},
61
+ {"@Id":"1242","@Nome":"Tupi","@Placar":" ","@PlacarPenaltis":"","@Tipo":"Visitante"}
62
+ ],
63
+ "Data":"1/29/2012 4:00:00 PM",
64
+ "Status":"Partida não iniciada",
65
+ "Arbitro":"0",
66
+ "Estadio":"Ronaldo Junqueira",
67
+ "Cidade":"Poços de Caldas",
68
+ "Estado":"MG",
69
+ "Pais":"Brasil",
70
+ "TemEstatistica":"Não",
71
+ "TemNarracao":"Não",
72
+ "Rodada":"1",
73
+ "Fase":"Primeira Fase",
74
+ "Taca":"9","Grupo":"3",
75
+ "NumeroJogo":"100",
76
+ "AoVivo":"Não"
77
+ }]
78
+ }}
79
+ http_version: !binary |-
80
+ MS4x
81
+ recorded_at: Thu, 03 Jan 2013 02:56:00 GMT
82
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaPartidas
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Campeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '30'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMjo1NTo1NyBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdHJp
57
+ bmcgeG1sbnM9Imh0dHA6Ly90ZW1wdXJpLm9yZy8iPnsiRXJybyI6eyJATWVu
58
+ c2FnZW0iOiJVc3XDoXJpbyBvdSBzZW5oYSBJbnbDoWxpZG9zIn19PC9zdHJp
59
+ bmc+
60
+ http_version: !binary |-
61
+ MS4x
62
+ recorded_at: Thu, 03 Jan 2013 02:56:00 GMT
63
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaEquipesCampeonato
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&IdCampeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '32'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMjoyMjowMiBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ <string xmlns="http://tempuri.org/">
57
+ { "Equipe": [ {
58
+ "@Id": "1487",
59
+ "@Nome": "América (Teófilo Otoni)",
60
+ "@Cidade": "Teófilo Otoni",
61
+ "@Pais": "Brasil"
62
+ }]
63
+ }
64
+ </string>
65
+ http_version: !binary |-
66
+ MS4x
67
+ recorded_at: Thu, 03 Jan 2013 02:22:06 GMT
68
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaEquipesCampeonato
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&IdCampeonato=198
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '32'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMjoyMjowMyBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdHJp
57
+ bmcgeG1sbnM9Imh0dHA6Ly90ZW1wdXJpLm9yZy8iPnsiRXJybyI6eyJATWVu
58
+ c2FnZW0iOiJVc3XDoXJpbyBvdSBzZW5oYSBJbnbDoWxpZG9zIn19PC9zdHJp
59
+ bmc+
60
+ http_version: !binary |-
61
+ MS4x
62
+ recorded_at: Thu, 03 Jan 2013 02:22:06 GMT
63
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/ListaCampeonatos
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '15'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ V2VkLCAwMiBKYW4gMjAxMyAyMzo1OTowMCBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ <string xmlns="http://tempuri.org/">
57
+ {"Erro": {"@Mensagem": "Usuário ou senha Inválidos"}}
58
+ </string>
59
+ http_version: !binary |-
60
+ MS4x
61
+ recorded_at: Wed, 02 Jan 2013 23:59:03 GMT
62
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/Narracao
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Partida=19
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '26'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMzo1NDo0MCBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: >
56
+ <string xmlns="http://tempuri.org/">
57
+ {"Campeonato":{
58
+ "@Id":"172",
59
+ "@Nome":"Camp. Mineiro 2012",
60
+ "@Temporada":"2012",
61
+ "Partida":{
62
+ "@Id":"34829",
63
+ "@Rodada":"1",
64
+ "@Placar":" - ",
65
+ "@TemDisputaPenaltis":"Nao"
66
+ },
67
+ "Narracoes": [{
68
+ "@Id": "109",
69
+ "IdEquipe": "18",
70
+ "NomeEquipe": "Santos",
71
+ "IdJogador": "11",
72
+ "NomeJogador": "Neymar",
73
+ "Periodo": "1",
74
+ "Momento": "23",
75
+ "Descricao": "Impedimento",
76
+ "Acao": "acao"
77
+ }]
78
+ }}
79
+ </string>
80
+ http_version: !binary |-
81
+ MS4x
82
+ recorded_at: Thu, 03 Jan 2013 03:54:44 GMT
83
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://footstats.com.br/modyo.asmx/Narracao
6
+ body:
7
+ encoding: US-ASCII
8
+ string: Usuario=&Senha=&Partida=19
9
+ headers:
10
+ accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ content-length:
15
+ - '26'
16
+ content-type:
17
+ - application/x-www-form-urlencoded
18
+ user-agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: !binary |-
24
+ T0s=
25
+ headers:
26
+ !binary "ZGF0ZQ==":
27
+ - !binary |-
28
+ VGh1LCAwMyBKYW4gMjAxMyAwMzozMDo0MCBHTVQ=
29
+ !binary "c2VydmVy":
30
+ - !binary |-
31
+ TWljcm9zb2Z0LUlJUy82LjA=
32
+ !binary "eC1wb3dlcmVkLWJ5":
33
+ - !binary |-
34
+ QVNQLk5FVA==
35
+ !binary "eC1hc3BuZXQtdmVyc2lvbg==":
36
+ - !binary |-
37
+ Mi4wLjUwNzI3
38
+ !binary "Y2FjaGUtY29udHJvbA==":
39
+ - !binary |-
40
+ bm8tY2FjaGU=
41
+ !binary "cHJhZ21h":
42
+ - !binary |-
43
+ bm8tY2FjaGU=
44
+ !binary "ZXhwaXJlcw==":
45
+ - !binary |-
46
+ LTE=
47
+ !binary "Y29udGVudC10eXBl":
48
+ - !binary |-
49
+ dGV4dC94bWw7IGNoYXJzZXQ9dXRmLTg=
50
+ !binary "Y29udGVudC1sZW5ndGg=":
51
+ - !binary |-
52
+ MTM4
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdHJp
57
+ bmcgeG1sbnM9Imh0dHA6Ly90ZW1wdXJpLm9yZy8iPnsiRXJybyI6eyJATWVu
58
+ c2FnZW0iOiJVc3XDoXJpbyBvdSBzZW5oYSBJbnbDoWxpZG9zIn19PC9zdHJp
59
+ bmc+
60
+ http_version: !binary |-
61
+ MS4x
62
+ recorded_at: Thu, 03 Jan 2013 03:30:43 GMT
63
+ recorded_with: VCR 2.3.0