ehbrs_ruby_utils 0.5.0 → 0.7.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: 5190ccf9f17c01b8b59b4dc45cb9e711a8f059a755eb8cdb8e3367a6778fcf53
4
- data.tar.gz: d9289e10d539ce6c9a5b714d23df7b70ac9b496327559f6eac767f9e864dead7
3
+ metadata.gz: d1db8f880cc352ae33c4c463b939ed297c85e2a3929e4772d2234ebe496a7fcd
4
+ data.tar.gz: 38956ec13fb3d729584be1b37b7d2e7375e8ffb282ac0b30ef1394e06840e34b
5
5
  SHA512:
6
- metadata.gz: c87878872a7ae1a224ac658b01c97085ca2b05f38c77dc28d60ab57b150d427af90f5b71defcba1726ab025dc019e8b0d27802a45120386bc7372888773ccc5b
7
- data.tar.gz: 7e2e43b0755743b29c00bd9e5dbb39f7168a91122abfc926fcc4107a68acb329dad5ee9e8711ced986a62c190a3efcb694bdd32ff7f5c9a332b3d47d709bd693
6
+ metadata.gz: fdf2feaa8744a08c7fdbd5216435b84ce0c8d9332824db70d948b468b2725c818aae84f44875e6fbfdf35dd5e6a37947261567b334a3390cfd038c13682d35f7
7
+ data.tar.gz: 8bd6c93afa5dc990675ea276f409411f11f8f99a329722f4d5cdb8371922d5bd99dcb7b0ee0e0243b4d2d44c2349e9dc489003e90adb1aa732c116ab63a1e71d
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_docker/images/templatized'
4
+ require 'ehbrs_ruby_utils/patches/object/template'
5
+
6
+ module EhbrsRubyUtils
7
+ module Finances
8
+ module BbBrowser
9
+ class DockerImage < ::EacDocker::Images::Templatized
10
+ class << self
11
+ def create
12
+ new.tag(name.variableize)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_templates/patches/object/template'
4
+
5
+ ::EacTemplates::Searcher.default.included_paths <<
6
+ ::File.expand_path('../../../../template', __dir__)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EhbrsRubyUtils
4
- VERSION = '0.5.0'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -11,7 +11,7 @@ module EhbrsRubyUtils
11
11
  'matroska' => '.mkv'
12
12
  }.freeze
13
13
 
14
- enable_console_speaker
14
+ enable_speaker
15
15
  enable_simple_cache
16
16
  common_constructor :input, :ffmpeg_convert_args do
17
17
  self.input = input.to_pathname.expand_path
@@ -8,7 +8,7 @@ module EhbrsRubyUtils
8
8
  enable_simple_cache
9
9
  enable_listable
10
10
 
11
- lists.add_symbol :codec_type, :audio, :video, :subtitle, :data
11
+ lists.add_symbol :codec_type, :audio, :video, :subtitle, :data, :attachment
12
12
 
13
13
  common_constructor :ffprobe_data do
14
14
  self.ffprobe_data = ffprobe_data.symbolize_keys.freeze
@@ -29,12 +29,18 @@ module EhbrsRubyUtils
29
29
  ffprobe_data
30
30
  end
31
31
 
32
- %i[index codec_name codec_long_name].each do |method_name|
32
+ %i[index].each do |method_name|
33
33
  define_method method_name do
34
34
  ffprobe_data.fetch(method_name)
35
35
  end
36
36
  end
37
37
 
38
+ %i[codec_name codec_long_name].each do |method_name|
39
+ define_method method_name do
40
+ ffprobe_data[method_name]
41
+ end
42
+ end
43
+
38
44
  def codec_type
39
45
  ffprobe_data.fetch(:codec_type).to_sym
40
46
  end
@@ -46,6 +52,10 @@ module EhbrsRubyUtils
46
52
  def language
47
53
  tags[:language]
48
54
  end
55
+
56
+ def title
57
+ tags[:title]
58
+ end
49
59
  end
50
60
  end
51
61
  end
@@ -8,7 +8,7 @@ module EhbrsRubyUtils
8
8
  module WebUtils
9
9
  module Videos
10
10
  class FilesList
11
- enable_console_speaker
11
+ enable_speaker
12
12
  enable_simple_cache
13
13
 
14
14
  common_constructor :type_class, :root_path, :options do
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.5.0
4
+ version: 0.7.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: 2020-12-12 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -16,16 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.36'
19
+ version: '0.70'
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.36'
26
+ version: '0.70'
27
27
  - !ruby/object:Gem::Dependency
28
- name: eac_ruby_gem_support
28
+ name: eac_templates
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
@@ -34,7 +34,7 @@ dependencies:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 0.1.1
37
- type: :development
37
+ type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
@@ -44,6 +44,34 @@ dependencies:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.1.1
47
+ - !ruby/object:Gem::Dependency
48
+ name: aranha-parsers
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.8'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.8'
61
+ - !ruby/object:Gem::Dependency
62
+ name: eac_ruby_gem_support
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.3'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.3'
47
75
  description:
48
76
  email:
49
77
  executables: []
@@ -52,6 +80,8 @@ extra_rdoc_files: []
52
80
  files:
53
81
  - lib/ehbrs_ruby_utils.rb
54
82
  - lib/ehbrs_ruby_utils/executables.rb
83
+ - lib/ehbrs_ruby_utils/finances/bb_browser/docker_image.rb
84
+ - lib/ehbrs_ruby_utils/patches/object/template.rb
55
85
  - lib/ehbrs_ruby_utils/version.rb
56
86
  - lib/ehbrs_ruby_utils/videos.rb
57
87
  - lib/ehbrs_ruby_utils/videos/container.rb
@@ -82,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
112
  - !ruby/object:Gem::Version
83
113
  version: '0'
84
114
  requirements: []
85
- rubygems_version: 3.0.8
115
+ rubygems_version: 3.1.6
86
116
  signing_key:
87
117
  specification_version: 4
88
118
  summary: Utilities for EHB/RS's Ruby projects.