Skip to content

Commit

Permalink
update ruby 3.3 bindings (#28)
Browse files Browse the repository at this point in the history
* ci: test ruby 3.4 bindings

* add console

* add console
  • Loading branch information
q9f authored Dec 29, 2024
1 parent b53bbd9 commit e1766cf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.3
- name: Install Dependencies
run: |
gem install test-unit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: github/codeql-action/analyze@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
ruby-version: '3.3'
bundler-cache: true
- name: "Run rufo code formatting checks"
run: |
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ https://github.com/sydneyitguy/digest-sha3-ruby
Copyright (c) 2019-2021 Alex Kotov; licensed under MIT License
https://github.com/kotovalexarian/digest-keccak

Copyright (c) 2021-2022 Afri Schoedon; re-licensed under Apache 2.0
Copyright (c) 2021-2025 Afri Schoedon; re-licensed under Apache 2.0
https://github.com/q9f/keccak.rb
10 changes: 10 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby

# use the local version of the code instead of a globally installed gem
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

require "digest/keccak"
include Digest

require "pry"
Pry.start
6 changes: 3 additions & 3 deletions keccak.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.email = "%w[[email protected]]"
spec.extensions << "ext/digest/extconf.rb"
spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = ">= 2.7", "< 4.0"
spec.required_ruby_version = ">= 3.0", "< 4.0"
spec.license = "Apache-2.0"
spec.metadata = {
"homepage_uri" => "https://github.com/q9f/keccak.rb",
Expand All @@ -34,6 +34,6 @@ Gem::Specification.new do |spec|
"lib/**/*"
]
spec.test_files = spec.files.grep %r{^(test|spec|features)/}
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "test-unit", "~> 3.4"
spec.add_development_dependency "bundler", "~> 2.4"
spec.add_development_dependency "test-unit", "~> 3.6"
end

0 comments on commit e1766cf

Please sign in to comment.