diff --git a/.github/workflows/ci.test.yml b/.github/workflows/ci.test.yml index 6a6122d..5024710 100644 --- a/.github/workflows/ci.test.yml +++ b/.github/workflows/ci.test.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.7', '3.3'] + ruby-version: ['3.0', '3.1', '3.2', '3.3'] ffmpeg-version: ['6.0.1', '5.1.1', '4.4.1'] steps: diff --git a/.rubocop.yml b/.rubocop.yml index 9b85acd..39b073f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml AllCops: NewCops: enable SuggestExtensions: false - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Metrics/AbcSize: Enabled: false @@ -32,5 +32,8 @@ Metrics/ParameterLists: Gemspec/DevelopmentDependencies: Enabled: false +Style/ArgumentsForwarding: + Enabled: false + Style/FloatDivision: Enabled: false diff --git a/CHANGELOG b/CHANGELOG index cb9bfc0..43f5464 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,21 @@ +== 5.0.0 2024-05-02 + +Breaking Changes: +* Dropped support for Ruby 2.x + +== 4.2.0 2024-05-02 + +Improvements: +* Added new methods to cut `FFMPEG::Media#cut` and concat `FFMPEG::Media.concat` media +* Added new API to deal with filters +* Added `FFMPEG::Filters::SilenceDetect` to detect silence in audio streams +* Added `FFMPEG::Filters::Grayscale` as a sample filter + +== 4.1.0 2024-04-29 + +Improvements: +* Added new `(ffmpeg|ffprobe)_(capture3|popen3)` methods to the `FFMPEG` module to allow custom calls to the ffmpeg and ffprobe binaries + == 4.0.0 2024-04-27 Breaking Changes: diff --git a/README.md b/README.md index 8162485..354a8a6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Simple yet powerful wrapper around the ffmpeg command for reading metadata and t ### Ruby -Only guaranteed to work with Ruby 2.7 or later. +Only guaranteed to work with Ruby 3.0 or later. ### ffmpeg diff --git a/ffmpeg.gemspec b/ffmpeg.gemspec index b1598b1..b74a06c 100644 --- a/ffmpeg.gemspec +++ b/ffmpeg.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/instructure/ffmpeg' s.summary = 'Wraps ffmpeg to read metadata and transcodes videos.' - s.required_ruby_version = '>= 2.7' + s.required_ruby_version = '>= 3.0' s.add_dependency('multi_json', '~> 1.8') diff --git a/lib/ffmpeg/media.rb b/lib/ffmpeg/media.rb index bf1de5f..203ef2f 100644 --- a/lib/ffmpeg/media.rb +++ b/lib/ffmpeg/media.rb @@ -262,7 +262,7 @@ def cut(output_path, from, to, options = EncodingOptions.new, **kwargs) end options = options.merge(seek_time: from) - transcoder(output_path, options, **kwargs).run + transcode(output_path, options, **kwargs) end end end diff --git a/lib/ffmpeg/version.rb b/lib/ffmpeg/version.rb index b2d9c46..0951c77 100644 --- a/lib/ffmpeg/version.rb +++ b/lib/ffmpeg/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module FFMPEG - VERSION = '4.2.0' + VERSION = '5.0.0' end