-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from fetlife/ruby-3.3-compat
Ruby 3.3 compatibility
- Loading branch information
Showing
4 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
*.bundle | ||
*.so | ||
/target | ||
Gemfile.lock | ||
.ruby-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
require 'rubygems/package_task' | ||
|
||
spec = eval(File.read("libfacedetection.gemspec")) | ||
GEM_RUBY_VERSION = "3.3.0" | ||
|
||
gem_task = Gem::PackageTask.new(spec) do |pkg| | ||
pkg.need_zip = true | ||
pkg.need_tar = true | ||
end | ||
|
||
desc "Generate a pre-compiled native gem" | ||
desc "Generate a pre-compiled native gem for #{RUBY_PLATFORM}" | ||
task "gem:native" => ["gem"] do | ||
sh "gem compile #{gem_task.package_dir_path}.gem" | ||
end | ||
|
||
desc "Generate a pre-compiled native gem for aarch64-linux" | ||
task "gem:native:aarch64-linux" => ["gem"] do | ||
sh %{docker run --rm --platform linux/arm64 -v $(pwd):/src -w /src ruby:#{GEM_RUBY_VERSION} /bin/bash -c "gem instal gem-compiler; curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; source '/root/.cargo/env'; rake gem:native"} | ||
end | ||
|
||
desc "Generate a pre-compiled native gem for x86_64-linux" | ||
task "gem:native:x86_64-linux" => ["gem"] do | ||
sh %{docker run --rm --platform linux/amd64 -v $(pwd):/src -w /src ruby:#{GEM_RUBY_VERSION} /bin/bash -c "gem instal gem-compiler; curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; source '/root/.cargo/env'; rake gem:native"} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Libfacedetection | ||
VERSION = "0.2.6".freeze | ||
VERSION = "0.2.7".freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters