video_conv 0.1.0 → 0.2.1

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: d48bb5273eda951a217f989a3731a37954b324b4f2396f3e89f056bae8c5bec7
4
- data.tar.gz: 1739afe37ca0884ba36f788bbf9cbfac4899ed2ff576b7e6b2e6ce47f3f3a905
3
+ metadata.gz: 7b04dc9407b04a11b89e1a628756c13570ed9e50e64c868e0720af8250726bb6
4
+ data.tar.gz: 1e448a29777aa9e4213b8d4548270f05e86aab7171f77932d3f970838170804c
5
5
  SHA512:
6
- metadata.gz: 36d68e3dca364c7d89094f51c2813debbac937745650e41305c842401c939e6a360ae1d7414d5a10379c33ec60b786ae4bc19ad94bf2359bc0d3c30571ca2ce0
7
- data.tar.gz: e87a87ed948deb9016edff22d99c92c630b539b329dbb1fccf670b1c6a5d438419407785c227ab8ff1a9ce929042f8346951cc9184fb4b1dfec82c48e89853c7
6
+ metadata.gz: 1863c9615f6927194e79fda03a35e91e6514413e8ea4c1aff4f94646f7fde078bf9830e7f0a04cef2aa837f94a0f596d367052304863022d4a4937f345995d89
7
+ data.tar.gz: 120cef92bd67fc743813259f2d6b3c3c0149ac21c8798019fb7c9f9a55c4f0442f6e80172df6272187fbbac4c9b3a19dbe319a33567d42168f066072698355eb
@@ -1,4 +1,4 @@
1
1
  module VideoConverter
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
4
4
 
@@ -51,6 +51,7 @@ module VideoConverter
51
51
  if !File.exist?(new_filename)
52
52
  convert_file(file, new_filename)
53
53
  puts "Converted: #{file} -> #{new_filename}"
54
+ FileUtils.rm(file) # Remove the original file after conversion
54
55
  else
55
56
  puts "Skipped conversion (already exists): #{file}"
56
57
  end
@@ -60,5 +61,15 @@ module VideoConverter
60
61
 
61
62
  threads.each(&:join)
62
63
  end
64
+
65
+ def convert_single_file(source_file, target_file)
66
+ if File.exist?(source_file)
67
+ convert_file(source_file, target_file)
68
+ puts "Converted: #{source_file} -> #{target_file}"
69
+ FileUtils.rm(source_file) # Remove the original file after conversion
70
+ else
71
+ puts "File not found: #{source_file}"
72
+ end
73
+ end
63
74
  end
64
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_conv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Webster