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.
- checksums.yaml +4 -4
- data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/base_level.rb +1 -1
- data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/group_level.rb +5 -5
- data/lib/ehbrs_ruby_utils/{spreader_t1 → circular_list_spreader}/item_level.rb +4 -4
- data/lib/ehbrs_ruby_utils/circular_list_spreader/list/item_pair_spreadness.rb +72 -0
- data/lib/ehbrs_ruby_utils/circular_list_spreader/list.rb +49 -0
- data/lib/ehbrs_ruby_utils/circular_list_spreader.rb +32 -0
- data/lib/ehbrs_ruby_utils/music/ous/album.rb +1 -1
- data/lib/ehbrs_ruby_utils/version.rb +1 -1
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode.rb +30 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb +26 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers.rb +13 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/episode.rb +44 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/subtitle.rb +39 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors/title.rb +37 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles/processors.rb +13 -0
- data/lib/ehbrs_ruby_utils/videos/opensubtitles.rb +9 -0
- data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb +66 -0
- data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml +124 -0
- data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml +70 -0
- data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml +7 -0
- data/spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.target.yaml +5 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb +7 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html +993 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml +5 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html +478 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml +43 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb +7 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html +763 -0
- data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml +22 -0
- metadata +77 -39
- data/lib/ehbrs_ruby_utils/spreader_t1.rb +0 -17
data/spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
:episodes:
|
3
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-4912028"
|
4
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-4912030"
|
5
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6410806"
|
6
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6410816"
|
7
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6459228"
|
8
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6459232"
|
9
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6477420"
|
10
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6477424"
|
11
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6477426"
|
12
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-6477430"
|
13
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8084434"
|
14
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458070"
|
15
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8072110"
|
16
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458074"
|
17
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8442998"
|
18
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458076"
|
19
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458078"
|
20
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458080"
|
21
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458082"
|
22
|
+
- :href: "/en/search/sublanguageid-pob/imdbid-8458084"
|
metadata
CHANGED
@@ -1,89 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ehbrs_ruby_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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:
|
11
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aranha
|
14
|
+
name: aranha
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.18'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: aranha-parsers
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.14'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.14.4
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.14'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
46
|
+
version: 0.14.4
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: avm
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 0.12.3
|
53
|
+
version: '0.62'
|
57
54
|
type: :runtime
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
58
|
- - "~>"
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
64
|
-
|
60
|
+
version: '0.62'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: eac_fs
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
65
66
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
67
|
+
version: '0.16'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0.16'
|
67
75
|
- !ruby/object:Gem::Dependency
|
68
76
|
name: eac_ruby_utils
|
69
77
|
requirement: !ruby/object:Gem::Requirement
|
70
78
|
requirements:
|
71
79
|
- - "~>"
|
72
80
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 0.102.1
|
81
|
+
version: '0.111'
|
77
82
|
type: :runtime
|
78
83
|
prerelease: false
|
79
84
|
version_requirements: !ruby/object:Gem::Requirement
|
80
85
|
requirements:
|
81
86
|
- - "~>"
|
82
87
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0.
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 0.102.1
|
88
|
+
version: '0.111'
|
87
89
|
- !ruby/object:Gem::Dependency
|
88
90
|
name: eac_templates
|
89
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,7 +115,7 @@ dependencies:
|
|
113
115
|
version: '1.1'
|
114
116
|
- - ">="
|
115
117
|
- !ruby/object:Gem::Version
|
116
|
-
version: 1.1.
|
118
|
+
version: 1.1.3
|
117
119
|
type: :runtime
|
118
120
|
prerelease: false
|
119
121
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,7 +125,7 @@ dependencies:
|
|
123
125
|
version: '1.1'
|
124
126
|
- - ">="
|
125
127
|
- !ruby/object:Gem::Version
|
126
|
-
version: 1.1.
|
128
|
+
version: 1.1.3
|
127
129
|
- !ruby/object:Gem::Dependency
|
128
130
|
name: ultimate_lyrics
|
129
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,6 +183,12 @@ files:
|
|
181
183
|
- ".rspec"
|
182
184
|
- ".rubocop.yml"
|
183
185
|
- lib/ehbrs_ruby_utils.rb
|
186
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader.rb
|
187
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader/base_level.rb
|
188
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader/group_level.rb
|
189
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader/item_level.rb
|
190
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader/list.rb
|
191
|
+
- lib/ehbrs_ruby_utils/circular_list_spreader/list/item_pair_spreadness.rb
|
184
192
|
- lib/ehbrs_ruby_utils/core_ext.rb
|
185
193
|
- lib/ehbrs_ruby_utils/executables.rb
|
186
194
|
- lib/ehbrs_ruby_utils/finances/bb_browser/docker_image.rb
|
@@ -201,14 +209,18 @@ files:
|
|
201
209
|
- lib/ehbrs_ruby_utils/patches.rb
|
202
210
|
- lib/ehbrs_ruby_utils/patches/object.rb
|
203
211
|
- lib/ehbrs_ruby_utils/patches/object/template.rb
|
204
|
-
- lib/ehbrs_ruby_utils/spreader_t1.rb
|
205
|
-
- lib/ehbrs_ruby_utils/spreader_t1/base_level.rb
|
206
|
-
- lib/ehbrs_ruby_utils/spreader_t1/group_level.rb
|
207
|
-
- lib/ehbrs_ruby_utils/spreader_t1/item_level.rb
|
208
212
|
- lib/ehbrs_ruby_utils/version.rb
|
209
213
|
- lib/ehbrs_ruby_utils/videos.rb
|
210
214
|
- lib/ehbrs_ruby_utils/videos/container.rb
|
211
215
|
- lib/ehbrs_ruby_utils/videos/convert_job.rb
|
216
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles.rb
|
217
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/parsers.rb
|
218
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode.rb
|
219
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb
|
220
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/processors.rb
|
221
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/processors/episode.rb
|
222
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/processors/subtitle.rb
|
223
|
+
- lib/ehbrs_ruby_utils/videos/opensubtitles/processors/title.rb
|
212
224
|
- lib/ehbrs_ruby_utils/videos/quality.rb
|
213
225
|
- lib/ehbrs_ruby_utils/videos/resolution.rb
|
214
226
|
- lib/ehbrs_ruby_utils/videos/series.rb
|
@@ -233,6 +245,19 @@ files:
|
|
233
245
|
- lib/ehbrs_ruby_utils/web_utils/videos/file.rb
|
234
246
|
- lib/ehbrs_ruby_utils/web_utils/videos/file/rename.rb
|
235
247
|
- lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb
|
248
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb
|
249
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml
|
250
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml
|
251
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml
|
252
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.target.yaml
|
253
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb
|
254
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html
|
255
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml
|
256
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html
|
257
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml
|
258
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb
|
259
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html
|
260
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml
|
236
261
|
- spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
|
237
262
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb
|
238
263
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.source.yaml
|
@@ -279,17 +304,30 @@ signing_key:
|
|
279
304
|
specification_version: 4
|
280
305
|
summary: Utilities for EHB/RS's Ruby projects.
|
281
306
|
test_files:
|
282
|
-
- spec/
|
283
|
-
- spec/lib/ehbrs_ruby_utils/
|
284
|
-
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.target.yaml
|
285
|
-
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.target.yaml
|
307
|
+
- spec/spec_helper.rb
|
308
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec.rb
|
286
309
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.target.yaml
|
287
310
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.target.yaml
|
288
|
-
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.source.yaml
|
289
311
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.source.yaml
|
290
|
-
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.source.yaml
|
291
312
|
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.source.yaml
|
313
|
+
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.source.yaml
|
314
|
+
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.target.yaml
|
315
|
+
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.target.yaml
|
316
|
+
- spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.source.yaml
|
292
317
|
- spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
|
293
|
-
- spec/
|
318
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec.rb
|
319
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec.rb
|
320
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.target.yaml
|
321
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.target.yaml
|
322
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/counterpart_s01e01.source.html
|
323
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/episode_spec_files/wire-season-1-page-1.source.html
|
324
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.source.html
|
325
|
+
- spec/lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title_spec_files/countepart.target.yaml
|
326
|
+
- spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb
|
327
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.source.yaml
|
328
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/minimum.target.yaml
|
329
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.target.yaml
|
330
|
+
- spec/lib/ehbrs_ruby_utils/circular_list_spreader_spec_files/ehbrs_music1.source.yaml
|
331
|
+
- spec/rubocop_check_spec.rb
|
294
332
|
- ".rubocop.yml"
|
295
333
|
- ".rspec"
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module EhbrsRubyUtils
|
6
|
-
class SpreaderT1
|
7
|
-
require_sub __FILE__
|
8
|
-
common_constructor :items
|
9
|
-
|
10
|
-
# @return [Array]
|
11
|
-
def result
|
12
|
-
root_level = ::EhbrsRubyUtils::SpreaderT1::GroupLevel.new('ROOT')
|
13
|
-
items.each { |item| root_level.push(item.to_spreader_t1_path, item) }
|
14
|
-
root_level.pop_all
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|