ehbrs_ruby_utils 0.17.3 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/base_level.rb +1 -1
  3. data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/group_level.rb +5 -5
  4. data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/item_level.rb +4 -4
  5. data/lib/ehbrs_ruby_utils/circular_list_spreader/list/item_pair_spreadness.rb +72 -0
  6. data/lib/ehbrs_ruby_utils/circular_list_spreader/list.rb +49 -0
  7. data/lib/ehbrs_ruby_utils/circular_list_spreader.rb +32 -0
  8. data/lib/ehbrs_ruby_utils/music/ous/album.rb +1 -1
  9. data/lib/ehbrs_ruby_utils/version.rb +1 -1
  10. data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode.rb +30 -0
  11. data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb +26 -0
  12. data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers.rb +13 -0
  13. data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/episode.rb +44 -0
  14. data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/subtitle.rb +39 -0
  15. data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/title.rb +37 -0
  16. data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors.rb +13 -0
  17. data/lib/ehbrs_ruby_utils/videos/opensubtitles.rb +9 -0
  18. data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb +66 -0
  19. data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml +124 -0
  20. data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml +70 -0
  21. data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml +7 -0
  22. data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.target.yaml +5 -0
  23. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb +7 -0
  24. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html +993 -0
  25. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml +5 -0
  26. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html +478 -0
  27. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml +43 -0
  28. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb +7 -0
  29. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html +763 -0
  30. data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml +22 -0
  31. metadata +77 -39
  32. data/lib/ehbrs_ruby_utils/spreader_t1.rb +0 -17
@@ -0,0 +1,70 @@
1
+ ---
2
+ - en | Pop anglofônico | Lana Del Rey | 2021 - Chemtrails Over The Country Club
3
+ - pt | MPB | Chico Buarque | 2022 - Selecionadas - 1
4
+ - en | Rock anglofônico | Queen | 2011 - The Ultimate Best Of Queen - P2
5
+ - pt | Pop-rock brasileiro | Anavitória | 2018 - O Tempo é Agora
6
+ - en | Anglofônico - Vários | Vários | 2021 - Cinema Selecionadas
7
+ - pt | MPB | Marisa Monte | (2006) Infinito Particular
8
+ - en | Pop anglofônico | Michael Jackson | Michael Jackson P3
9
+ - pt | MPB | Vários | 1976 - Doces Bárbaros
10
+ - en | Americana - Country | Dixie Chicks | 2006 - Taking The Long Way
11
+ - pt | MPB | Marina Machado | 2002 - Marina 6 Horas da Tarde
12
+ - en | Pop anglofônico | Adele | 2011 - 21
13
+ - en | Rock anglofônico | Alanis Morissette | 2020 - Jagged Little Pill
14
+ - pt | MPB | Chico Buarque | (1983) Para Viver Um Grande Amor - Trilha Sonora
15
+ - en | Pop anglofônico | Lana Del Rey | 2012 - Paradise
16
+ - pt | MPB | Diana Pequeno | 1979 - Eterno Como Areia
17
+ - en | Pop anglofônico | Aurora | 2018 - Infections Of A Different Kind – Step 1
18
+ - pt | Pop-rock brasileiro | Rita Lee | 2003 - Balacobaco
19
+ - en | Rock anglofônico | Weyes Blood | 2019 - Titanic Rising
20
+ - pt | MPB | Belchior | 2022 - Selecionadas - Parte 2
21
+ - en | Anglofônico - Vários | FKA Twigs | 2019 - Magdalene
22
+ - pt | MPB | Beto Guedes | 2022 - Selecionadas - 1
23
+ - en | Pop anglofônico | Maroon 5 | 2018 - Essentials - P2
24
+ - pt | MPB | Zé Ramalho | 1978 - Zé Ramalho I
25
+ - en | Americana - Country | Kacey Musgraves | 2018 - Golden Hour
26
+ - pt | MPB | Elis Regina | 1976. Falso Brilhante
27
+ - en | Pop anglofônico | Lana Del Rey | 2019 - Norman Fucking Rockwell
28
+ - pt | Pop-rock brasileiro | Nando Reis | 2016 - Jardim-Pomar
29
+ - en | Rock anglofônico | Michael Kiwanuka | 2019 - Kiwanuka
30
+ - pt | MPB | Lô Borges | 2022 - Selecionadas
31
+ - en | Pop anglofônico | Adele | 2015 - 25
32
+ - pt | MPB | Marisa Monte | (2002) - Tribalistas
33
+ - en | Anglofônico - Vários | Norah Jones | [2002] Come Away With Me
34
+ - pt | Pop-rock brasileiro | Ira | A26 2004 Ira! - Acústico MTV
35
+ - en | Americana - Country | Kacey Musgraves | 2013 - Same Trailer Different Park
36
+ - pt | MPB | Chico Buarque | (1988) Dança Da Meia-Lua
37
+ - en | Pop anglofônico | Michael Jackson | Michael Jackson P2
38
+ - pt | MPB | Trio Amaranto | Brasilêro
39
+ - en | Rock anglofônico | Christopher Cross | 1979 - Christopher Cross
40
+ - en | Pop anglofônico | Taylor Swift | 2008 - Fearless
41
+ - pt | Pop-rock brasileiro | Pitty | 2003 - Admirável Chip Novo
42
+ - pt | MPB | Zeca Baleiro | 2019 - O Amor no Caos, Vol. 1
43
+ - en | Pop anglofônico | Colbie Caillat | 2011 - All Of You
44
+ - pt | MPB | Milton Nascimento | 1999 - Crooner
45
+ - en | Rock anglofônico | Queen | 2011 - The Ultimate Best Of Queen - P1
46
+ - pt | MPB | Beto Guedes | 2004 - Em Algum Lugar
47
+ - en | Pop anglofônico | Aurora | 2016 - All My Demons Greeting Me as a Friend
48
+ - pt | MPB | Belchior | 2022 - Selecionadas - Parte 1
49
+ - en | Anglofônico - Vários | Jamila Woods | 2019 - LEGACY! LEGACY!
50
+ - pt | Pop-rock brasileiro | Anavitória | 2016 - Anavitória
51
+ - en | Pop anglofônico | Lana Del Rey | 2012 - Born To Die - Disc 1
52
+ - pt | MPB | Chico Buarque | (1972) Quando O Carnaval Chegar
53
+ - en | Pop anglofônico | Michael Jackson | Michael Jackson P1
54
+ - pt | MPB | Diana Pequeno | 1978 - Diana Pequeno
55
+ - en | Rock anglofônico | Sinead O'Connor | 1990 - I Do Not Want What I Haven't Got
56
+ - pt | MPB | Os Mutantes | 1971 - Jardim Elétrico
57
+ - en | Pop anglofônico | Olivia Rodrigo | 2021 - Sour
58
+ - pt | MPB | Marina Machado | 2008 - Tempo Quente
59
+ - en | Americana - Country | Kacey Musgraves | 2021 - Star-Crossed
60
+ - pt | Pop-rock brasileiro | Tiago Iorc | 2015 - Troco Likes
61
+ - en | Pop anglofônico | Celine Dion | 2008 - My Love (Essential Collection)
62
+ - pt | MPB | Maria Bethania | 1977 - Pássaro da Manhã
63
+ - en | Rock anglofônico | Guns n' Roses | 2004 - Greatest Hits
64
+ - pt | MPB | Marisa Monte | (2000) Memorias, Cronicas e Declaracoes de Amor
65
+ - en | Anglofônico - Vários | Aldous Harding | 2019 - Designer
66
+ - pt | MPB | Gilberto Gil | 1972 - Expresso 2222
67
+ - en | Pop anglofônico | Maroon 5 | 2018 - Essentials - P1
68
+ - pt | Pop-rock brasileiro | Kiko Zambianchi | 1985 - Choque
69
+ - en | Pop anglofônico | Adele | 2021 - 30
70
+ - pt | MPB | Beto Guedes | 2022 - Selecionadas - 2
@@ -0,0 +1,7 @@
1
+ ---
2
+ A:
3
+ A1: true
4
+ A2: true
5
+ B:
6
+ B1: true
7
+ B2: true
@@ -0,0 +1,5 @@
1
+ ---
2
+ - B | B2
3
+ - A | A2
4
+ - B | B1
5
+ - A | A1
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ehbrs_ruby_utils/videos/opensubtitles/parsers/episode'
4
+
5
+ RSpec.describe ::EhbrsRubyUtils::Videos::Opensubtitles::Parsers::Episode do
6
+ include_examples 'source_target_fixtures', __FILE__
7
+ end