Skip to content

Commit

Permalink
Add Ruby 3.4 support (#275)
Browse files Browse the repository at this point in the history
* Fix warnings on Ruby 3.4

* Add Ruby 3.4 and head to CI
  • Loading branch information
david942j authored Jan 11, 2025
1 parent 0861ce0 commit 4d7888b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu]
ruby-version: ['3.1', '3.2', '3.3']
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'head']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GEM
language_server-protocol (3.17.0.3)
logger (1.6.5)
os (1.1.4)
ostruct (0.6.1)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -67,6 +68,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
ostruct
rake (~> 13.0)
rake-compiler (~> 1.0)
rspec (~> 3.9)
Expand Down
2 changes: 1 addition & 1 deletion lib/seccomp-tools/instruction/ret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def ret_str
return 'A' if type == :a

str = ACTION.invert[type & SECCOMP_RET_ACTION_FULL].to_s
str << "(#{type & SECCOMP_RET_DATA})" if str == 'ERRNO'
str += "(#{type & SECCOMP_RET_DATA})" if str == 'ERRNO'
str
end
end
Expand Down
1 change: 1 addition & 0 deletions seccomp-tools.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Visit https://github.com/david942j/seccomp-tools for more details.

s.required_ruby_version = '>= 3.1'

s.add_development_dependency 'ostruct'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rake-compiler', '~> 1.0'
s.add_development_dependency 'rspec', '~> 3.9'
Expand Down

0 comments on commit 4d7888b

Please sign in to comment.