appydave-tools 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e50556323b419ef5468e5199cf148812e25ff5c6001db7d35dc7f4cd52d7bb50
4
- data.tar.gz: 23015d1c15d2fcde38f973fed02add0b7f55d09be3acda11f06705a15fcd6fdf
3
+ metadata.gz: 17dec612ce270c5ffa25c2173a96b437b85ccd6dfe1e1d2eb913060a4ebc54c1
4
+ data.tar.gz: 6b280aebe5245dc5c619169aa75638c9be027048736c28f4f8f3baeb33dccc65
5
5
  SHA512:
6
- metadata.gz: 9f097fe81dae81d638bfa6040b44f9da187c95892a903a2e2c9e91c493134fd18fe0541e0b77daa99bfc56fa84378a1527d6d43f0955d74fdc038f3e9c4271a4
7
- data.tar.gz: bdbf1c0ec19ce47042e17a16b8af96110e0e9b037fd61336debb32a5d251d80e50ce2259d4130b9bc220e9d95404b70c34b9ae9340e8ec557a1a595e0614e388
6
+ metadata.gz: 143d0c023e0ffd5dd86086e5f34f434216b7f3ed10c129e6971a9e0144eae3a36f631fc2ffbbd4a1b6ad290fdcb9e1ce5032810b65087bcfbc724799a7812c96
7
+ data.tar.gz: 9a26010a6d0f7936b094e2f1e5b4391e96d0f8a7bb58f686d6e7ca03100f7eb67da342a92f046499240c127d718bfa08ca41e07c1c3909c3fdd83b47827ecdc2
data/.rubocop.yml CHANGED
@@ -91,7 +91,7 @@ Metrics/ParameterLists:
91
91
  Exclude:
92
92
  - "**/spec/**/*"
93
93
  - "**/models/**/*"
94
- - "lib/appydave/tools/subtitle_master/join.rb"
94
+ - "lib/appydave/tools/subtitle_manager/join.rb"
95
95
  Layout/EmptyLineBetweenDefs:
96
96
  Exclude:
97
97
  - "**/spec/**/*"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [0.12.0](https://github.com/appydave/appydave-tools/compare/v0.11.11...v0.12.0) (2024-12-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update cops ([0efed07](https://github.com/appydave/appydave-tools/commit/0efed07376a7fa8d460a3ab03264a82764245ebe))
7
+
8
+
9
+ ### Features
10
+
11
+ * add srt-join tool ([0576ed4](https://github.com/appydave/appydave-tools/commit/0576ed44f330869760832875126dd1f4c2bfcbd1))
12
+
1
13
  ## [0.11.11](https://github.com/appydave/appydave-tools/compare/v0.11.10...v0.11.11) (2024-11-26)
2
14
 
3
15
 
@@ -67,7 +67,7 @@ class SubtitleMasterCLI
67
67
  def parse_options(args, command, extra_options = [])
68
68
  options = { file: nil, output: nil }
69
69
  OptionParser.new do |opts|
70
- opts.banner = "Usage: subtitle_master.rb #{command} [options]"
70
+ opts.banner = "Usage: subtitle_manager.rb #{command} [options]"
71
71
 
72
72
  opts.on('-f', '--file FILE', 'SRT file to process') { |v| options[:file] = v }
73
73
  opts.on('-o', '--output FILE', 'Output file') { |v| options[:output] = v }
@@ -99,14 +99,14 @@ class SubtitleMasterCLI
99
99
  end
100
100
 
101
101
  def print_help
102
- puts 'Usage: subtitle_master.rb [command] [options]'
102
+ puts 'Usage: subtitle_manager.rb [command] [options]'
103
103
  puts 'Commands:'
104
104
  puts ' clean Clean and normalize SRT files'
105
105
  puts ' correct Correct common typos and mistranslations in SRT files'
106
106
  puts ' split Split subtitle groups based on word count'
107
107
  puts ' highlight Highlight power words in subtitles'
108
108
  puts ' image_prompts Generate image prompts from subtitle text'
109
- puts "Run 'subtitle_master.rb [command] --help' for more information on a command."
109
+ puts "Run 'subtitle_manager.rb [command] --help' for more information on a command."
110
110
  end
111
111
  end
112
112
 
@@ -39,7 +39,7 @@ class SubtitleMasterCLI
39
39
 
40
40
  # Command-specific option parser
41
41
  clean_parser = OptionParser.new do |opts|
42
- opts.banner = 'Usage: subtitle_master.rb clean [options]'
42
+ opts.banner = 'Usage: subtitle_manager.rb clean [options]'
43
43
 
44
44
  opts.on('-f', '--file FILE', 'SRT file to process') do |v|
45
45
  options[:file] = v
@@ -87,7 +87,7 @@ class SubtitleMasterCLI
87
87
  }
88
88
 
89
89
  join_parser = OptionParser.new do |opts|
90
- opts.banner = 'Usage: subtitle_master.rb join [options]'
90
+ opts.banner = 'Usage: subtitle_manager.rb join [options]'
91
91
 
92
92
  opts.on('-d', '--directory DIR', 'Directory containing SRT files (default: current directory)') do |v|
93
93
  options[:folder] = v
@@ -141,11 +141,11 @@ class SubtitleMasterCLI
141
141
  end
142
142
 
143
143
  def print_help
144
- puts 'Usage: subtitle_master.rb [command] [options]'
144
+ puts 'Usage: subtitle_manager.rb [command] [options]'
145
145
  puts 'Commands:'
146
146
  puts ' clean Clean and normalize SRT files'
147
147
  puts ' join Join multiple SRT files'
148
- puts "Run 'subtitle_master.rb [command] --help' for more information on a command."
148
+ puts "Run 'subtitle_manager.rb [command] --help' for more information on a command."
149
149
  end
150
150
  end
151
151
 
@@ -31,10 +31,10 @@ cleaner = SubtitleMaster::Clean.new(srt_content: srt_content_string)
31
31
  ### Command Line Usage
32
32
 
33
33
  ```bash
34
- ./bin/subtitle_master.rb clean -f path/to/example.srt -o path/to/example_cleaned.srt
34
+ ./bin/subtitle_manager.rb clean -f path/to/example.srt -o path/to/example_cleaned.srt
35
35
 
36
36
  # Example using alias
37
- ad_subtitle_master clean -f transcript/a45-banned-from-midjourney-16-alternatives.srt -o a45-transcript.srt
37
+ ad_subtitle_manager clean -f transcript/a45-banned-from-midjourney-16-alternatives.srt -o a45-transcript.srt
38
38
  ```
39
39
 
40
40
  This component reads the SRT file, processes the content to remove tags and normalize lines, and outputs a cleaned and formatted subtitle file that is easier to read and upload to platforms.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Appydave
4
4
  module Tools
5
- VERSION = '0.12.0'
5
+ VERSION = '0.13.0'
6
6
  end
7
7
  end
@@ -50,8 +50,8 @@ require 'appydave/tools/name_manager/project_name'
50
50
 
51
51
  require 'appydave/tools/prompt_tools/prompt_completion'
52
52
 
53
- require 'appydave/tools/subtitle_master/clean'
54
- require 'appydave/tools/subtitle_master/join'
53
+ require 'appydave/tools/subtitle_manager/clean'
54
+ require 'appydave/tools/subtitle_manager/join'
55
55
 
56
56
  require 'appydave/tools/youtube_automation/gpt_agent'
57
57
 
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appydave-tools",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appydave-tools",
9
- "version": "0.12.0",
9
+ "version": "0.13.0",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.3",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appydave-tools",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "AppyDave YouTube Automation Tools",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appydave-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -163,8 +163,8 @@ files:
163
163
  - bin/move_images.rb
164
164
  - bin/prompt_tools.rb
165
165
  - bin/setup
166
- - bin/subtitle_master-old.rb
167
- - bin/subtitle_master.rb
166
+ - bin/subtitle_manager-old.rb
167
+ - bin/subtitle_manager.rb
168
168
  - bin/youtube_automation.rb
169
169
  - bin/youtube_manager.rb
170
170
  - docs/usage/gpt-context.md
@@ -195,11 +195,11 @@ files:
195
195
  - lib/appydave/tools/name_manager/project_name.rb
196
196
  - lib/appydave/tools/prompt_tools/_doc.md
197
197
  - lib/appydave/tools/prompt_tools/prompt_completion.rb
198
- - lib/appydave/tools/subtitle_master/_doc-clean.md
199
- - lib/appydave/tools/subtitle_master/_doc-join.md
200
- - lib/appydave/tools/subtitle_master/_doc-todo.md
201
- - lib/appydave/tools/subtitle_master/clean.rb
202
- - lib/appydave/tools/subtitle_master/join.rb
198
+ - lib/appydave/tools/subtitle_manager/_doc-clean.md
199
+ - lib/appydave/tools/subtitle_manager/_doc-join.md
200
+ - lib/appydave/tools/subtitle_manager/_doc-todo.md
201
+ - lib/appydave/tools/subtitle_manager/clean.rb
202
+ - lib/appydave/tools/subtitle_manager/join.rb
203
203
  - lib/appydave/tools/types/array_type.rb
204
204
  - lib/appydave/tools/types/base_model.rb
205
205
  - lib/appydave/tools/types/hash_type.rb