ehbrs_ruby_utils 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb132b2dc682b7683edc567c4716ef2f34aa93d2b63b11bc03de8e7aa217ff02
4
- data.tar.gz: 022db3bbe7aa0dc1fb8aa746f04ffcd7d7c8f96f06415d599a7f3b244c299719
3
+ metadata.gz: b1b4304692f05e5e54ceb820c286af557d625f2c387c88b413f79cadf23a6da2
4
+ data.tar.gz: a09d3e1bd870a882c541b161cdba964de47454cac366f5dcbc1ba905246d2d7e
5
5
  SHA512:
6
- metadata.gz: 5cdc02ecfd1f669e49f59f0ba2d93a7e3182cbf26cbda07865e9cf488d18359fef81c6b9470c9db74c328608e3016793d15b8cf892e22ab213795be5efe617c8
7
- data.tar.gz: fc57f7bd021af03b4c9cbbea611cecaa9926f5cc59098d7662f213a3485c557b0a70f449b47e797f99ef6f6302a52e2f43298030d2f5012cf0cf555fd7cc1c72
6
+ metadata.gz: a205eed1a3e4659a457f57ad3f0b6965fc02e5a2105fe6dbac1adc9ac714798ba1db424024d34d1ba15cd9b04a367c853765bbdcbcdaa8714289e6c8035be1c1
7
+ data.tar.gz: f8dbde785c72cfb1641881de9d193079bbec210f9c77f33710519ada3fc8775f29a49eb7634efe295a4b20af8ef06fdbb40323989dffb5740b1897720779ab57
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EhbrsRubyUtils
4
- VERSION = '0.14.0'
4
+ VERSION = '0.15.0'
5
5
  end
@@ -53,6 +53,10 @@ module EhbrsRubyUtils
53
53
  tags[:language]
54
54
  end
55
55
 
56
+ def language_with_title
57
+ [language, title].reject(&:blank?).if_present { |v| v.join('_').variableize }
58
+ end
59
+
56
60
  def title
57
61
  tags[:title]
58
62
  end
@@ -14,7 +14,7 @@ module EhbrsRubyUtils
14
14
  end
15
15
 
16
16
  def root_url
17
- read_entry(:url)
17
+ read_entry(::Avm::Instances::EntryKeys::WEB_URL)
18
18
  end
19
19
 
20
20
  def resource_url(resource_url_suffix)
@@ -7,7 +7,7 @@ RSpec.describe ::EhbrsRubyUtils::Videos::Stream do
7
7
 
8
8
  def source_data(source_file)
9
9
  instance = described_class.new(::YAML.load_file(source_file))
10
- %w[codec_name codec_long_name codec_type index language title]
10
+ %w[codec_name codec_long_name codec_type index language language_with_title title]
11
11
  .map { |k| [k.to_sym, instance.send(k)] }.sort.to_h
12
12
  end
13
13
  end
@@ -4,4 +4,5 @@
4
4
  :codec_type: :attachment
5
5
  :index: 19
6
6
  :language:
7
+ :language_with_title:
7
8
  :title:
@@ -4,4 +4,5 @@
4
4
  :codec_type: :audio
5
5
  :index: 18
6
6
  :language: jpn
7
+ :language_with_title: jpn_animerg_tenshi_no_tamago_1080p_scavvykid
7
8
  :title: "[AnimeRG] Tenshi No Tamago [1080p] [ScavvyKiD]"
@@ -4,4 +4,5 @@
4
4
  :codec_type: :subtitle
5
5
  :index: 0
6
6
  :language: fre
7
+ :language_with_title: fre_french_subs
7
8
  :title: French Subs
@@ -4,4 +4,5 @@
4
4
  :codec_type: :video
5
5
  :index: 17
6
6
  :language: eng
7
+ :language_with_title: eng_animerg_tenshi_no_tamago_1080p_scavvykid
7
8
  :title: "[AnimeRG] Tenshi No Tamago [1080p] [ScavvyKiD]"
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.14.0
4
+ version: 0.15.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: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2022-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers