diff --git a/ChangeLog.md b/ChangeLog.md index 5a94b26..8dcd184 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,9 @@ +### 0.2.2 / 2024-07-20 + +* Added option to set a custom directory for temporary files that internally duplicate input files. +* Also added an option for the custom temp directory in the datamosh cli. +* Some improvements regarding internal temporary files. + ### 0.2.0 / 2021-09-13 * Support for AVI2.0 formatted files. Now this library can handle files larger than 1GB. diff --git a/LICENSE b/LICENSE index 668d9e5..7ee9c69 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009-2021 ucnv +Copyright (c) 2009-2024 ucnv Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/lib/aviglitch.rb b/lib/aviglitch.rb index 679f50d..bb36643 100644 --- a/lib/aviglitch.rb +++ b/lib/aviglitch.rb @@ -28,9 +28,16 @@ # end # avi.output '/path/to/broken.avi' # +# Since v0.2.2, it allows to specify the temporary directory. This library +# duplicates and processes a input file in the temporary directory, which +# by default is +Dir.tmpdir+. To specify the custom temporary directory, use +# +tmpdir:+ option, like: +# +# avi = AviGlitch.open '/path/to/your.avi', tmpdir: '/path/to/tmpdir' +# module AviGlitch - VERSION = '0.2.0' + VERSION = '0.2.2' BUFFER_SIZE = 2 ** 24 diff --git a/spec/frames_spec.rb b/spec/frames_spec.rb index 44a31f4..fbd1e69 100644 --- a/spec/frames_spec.rb +++ b/spec/frames_spec.rb @@ -1,8 +1,8 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper') -# Since Ruby 3.3.x, Windows frequently fails to close the Tempfile automatically. -# Now this spec is skipped in Windows because it could generate a lot of warnings. +# Since Ruby 3.3.x, Windows frequently fails to close the Tempfile on GC. # Although not a fatal error, it should be better to remove them manually in such cases. +# Now this spec is skipped in Windows because it could generate a lot of warning messages and undeleted temp files. describe AviGlitch::Frames, :skip => Gem.win_platform? do before :all do