ehbrs_ruby_utils 0.29.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress.rb +38 -0
  3. data/lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb +25 -0
  4. data/lib/ehbrs_ruby_utils/bga/parsers/table/{players.rb → ended_players.rb} +1 -1
  5. data/lib/ehbrs_ruby_utils/bga/parsers/table.rb +27 -6
  6. data/lib/ehbrs_ruby_utils/bga/session/player_tables_on_game_in_progress.rb +39 -0
  7. data/lib/ehbrs_ruby_utils/bga/session/table.rb +7 -6
  8. data/lib/ehbrs_ruby_utils/bga/table/player.rb +2 -2
  9. data/lib/ehbrs_ruby_utils/bga/urls.rb +6 -0
  10. data/lib/ehbrs_ruby_utils/version.rb +1 -1
  11. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec.rb +7 -0
  12. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.source.html +8657 -0
  13. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.target.yaml +41 -0
  14. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.source.html +8650 -0
  15. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.target.yaml +41 -0
  16. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.source.html +8657 -0
  17. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.target.yaml +5 -0
  18. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.source.html +8657 -0
  19. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.target.yaml +13 -0
  20. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.source.html +8657 -0
  21. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.target.yaml +29 -0
  22. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.source.html +8657 -0
  23. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.target.yaml +7 -0
  24. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.source.html +8657 -0
  25. data/spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.target.yaml +1 -0
  26. data/spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.source.html +1480 -0
  27. data/spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.target.yaml +32 -0
  28. metadata +75 -38
@@ -0,0 +1,32 @@
1
+ ---
2
+ :game_code: classicgo
3
+ :game_name: Go
4
+ :creation_time: 02/06/2023 às 22:14
5
+ :estimated_duration: há 11 dias
6
+ :options:
7
+ - :label: Modo de Jogo
8
+ :value: Modo Normal
9
+ :description: ''
10
+ - :label: Velocidade do jogo
11
+ :value: Modo em turnos • 1 movimento a cada 2 dias
12
+ :description: "+2 dias por turno (maximum 6 dias)"
13
+ - :label: Tamanho do tabuleiro
14
+ :value: 13x13
15
+ :description: ''
16
+ - :label: Método de contagem
17
+ :value: Japonês
18
+ :description: ''
19
+ - :label: Komi e vantagens
20
+ :value: Komi normal (6.0 se não for pelas regras da AGA e contagem Japonesa; 7.0
21
+ se não for pelas regras da AGA e contagem Chinesa; 7.0 se for pelas regras da
22
+ AGA)
23
+ :description: ''
24
+ - :label: Regras AGA
25
+ :value: Sim
26
+ :description: ''
27
+ :players:
28
+ - :id: 84920871
29
+ :name: eduardobogoni
30
+ - :id: 93212034
31
+ :name: danieltc
32
+ :game_conceded: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs_ruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-12 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.20'
39
+ version: '0.21'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.20'
46
+ version: '0.21'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: aranha-selenium
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -240,14 +240,17 @@ files:
240
240
  - lib/ehbrs_ruby_utils/bga.rb
241
241
  - lib/ehbrs_ruby_utils/bga/game.rb
242
242
  - lib/ehbrs_ruby_utils/bga/game/image.rb
243
+ - lib/ehbrs_ruby_utils/bga/parsers/game_in_progress.rb
243
244
  - lib/ehbrs_ruby_utils/bga/parsers/game_stats.rb
244
245
  - lib/ehbrs_ruby_utils/bga/parsers/game_stats/players.rb
245
246
  - lib/ehbrs_ruby_utils/bga/parsers/table.rb
247
+ - lib/ehbrs_ruby_utils/bga/parsers/table/active_players.rb
248
+ - lib/ehbrs_ruby_utils/bga/parsers/table/ended_players.rb
246
249
  - lib/ehbrs_ruby_utils/bga/parsers/table/options.rb
247
- - lib/ehbrs_ruby_utils/bga/parsers/table/players.rb
248
250
  - lib/ehbrs_ruby_utils/bga/session.rb
249
251
  - lib/ehbrs_ruby_utils/bga/session/login.rb
250
252
  - lib/ehbrs_ruby_utils/bga/session/player.rb
253
+ - lib/ehbrs_ruby_utils/bga/session/player_tables_on_game_in_progress.rb
251
254
  - lib/ehbrs_ruby_utils/bga/session/player_tables_on_game_stats.rb
252
255
  - lib/ehbrs_ruby_utils/bga/session/skip_trophies.rb
253
256
  - lib/ehbrs_ruby_utils/bga/session/table.rb
@@ -327,6 +330,21 @@ files:
327
330
  - lib/ehbrs_ruby_utils/web_utils/videos/file.rb
328
331
  - lib/ehbrs_ruby_utils/web_utils/videos/file/rename.rb
329
332
  - lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb
333
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec.rb
334
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.source.html
335
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.target.yaml
336
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.source.html
337
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.target.yaml
338
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.source.html
339
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.target.yaml
340
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.source.html
341
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.target.yaml
342
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.source.html
343
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.target.yaml
344
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.source.html
345
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.target.yaml
346
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.source.html
347
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.target.yaml
330
348
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec.rb
331
349
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.source.html
332
350
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.target.yaml
@@ -347,6 +365,8 @@ files:
347
365
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373602409.target.yaml
348
366
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.source.html
349
367
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.target.yaml
368
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.source.html
369
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.target.yaml
350
370
  - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb
351
371
  - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml
352
372
  - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml
@@ -406,50 +426,67 @@ signing_key:
406
426
  specification_version: 4
407
427
  summary: Utilities for EHB/RS's Ruby projects.
408
428
  test_files:
409
- - spec/spec_helper.rb
410
- - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb
411
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.target.yaml
412
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.target.yaml
413
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.source.yaml
414
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.source.yaml
415
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.source.yaml
416
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.target.yaml
417
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.target.yaml
418
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.source.yaml
419
- - spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
420
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb
421
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb
422
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml
423
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml
424
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html
425
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html
426
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html
427
- - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml
428
- - spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb
429
+ - spec/rubocop_check_spec.rb
429
430
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_308782287.target.yaml
430
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_368448439.target.yaml
431
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_356513708.source.html
432
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_357408039.source.html
431
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.target.yaml
433
432
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_356513708.target.yaml
434
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.target.yaml
435
433
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_302873643.target.yaml
436
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.source.html
437
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_302873643.source.html
438
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373602409.target.yaml
439
- - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_308782287.source.html
434
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_368448439.target.yaml
440
435
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_368448439.source.html
436
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_357408039.source.html
437
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_383405743.source.html
438
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_356513708.source.html
439
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.source.html
441
440
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373602409.source.html
441
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373602409.target.yaml
442
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_302873643.source.html
442
443
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_357408039.target.yaml
443
- - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.source.html
444
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_308782287.source.html
445
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec_files/table_373747455.target.yaml
444
446
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/2.target.yaml
445
- - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.target.yaml
446
447
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/2.source.html
448
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.source.html
449
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec_files/1.target.yaml
447
450
  - spec/lib/ehbrs_ruby_utils/bga/parsers/game_stats_spec.rb
448
451
  - spec/lib/ehbrs_ruby_utils/bga/parsers/table_spec.rb
449
- - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml
452
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.source.html
453
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.target.yaml
454
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.target.yaml
455
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93167144_2023-06-12.source.html
456
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.source.html
457
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.target.yaml
458
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.target.yaml
459
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.target.yaml
460
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93223573_2023-06-12.source.html
461
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-12.target.yaml
462
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93205235_2023-06-12.source.html
463
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93248308_2023-06-12.source.html
464
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_84920871_2023-06-19.target.yaml
465
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec_files/player_93212034_2023-06-12.source.html
466
+ - spec/lib/ehbrs_ruby_utils/bga/parsers/game_in_progress_spec.rb
467
+ - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb
450
468
  - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.target.yaml
451
- - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml
452
469
  - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml
453
- - spec/rubocop_check_spec.rb
470
+ - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml
471
+ - spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml
472
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml
473
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html
474
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb
475
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb
476
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html
477
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml
478
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html
479
+ - spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml
480
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb
481
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.target.yaml
482
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.target.yaml
483
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.target.yaml
484
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.target.yaml
485
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.source.yaml
486
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.source.yaml
487
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.source.yaml
488
+ - spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.source.yaml
489
+ - spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
490
+ - spec/spec_helper.rb
454
491
  - ".rubocop.yml"
455
492
  - ".rspec"