Skip to content

Commit

Permalink
chore!: drop support for Ruby 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bajankristof committed May 2, 2024
1 parent 302e58a commit 7e22451
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0

Metrics/AbcSize:
Enabled: false
Expand Down Expand Up @@ -32,5 +32,8 @@ Metrics/ParameterLists:
Gemspec/DevelopmentDependencies:
Enabled: false

Style/ArgumentsForwarding:
Enabled: false

Style/FloatDivision:
Enabled: false
18 changes: 18 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ffmpeg.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion lib/ffmpeg/media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/ffmpeg/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module FFMPEG
VERSION = '4.2.0'
VERSION = '5.0.0'
end

0 comments on commit 7e22451

Please sign in to comment.