mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
* Ruby binding * use relative regorus crate in ruby instead of a published version, also cargo fmt * remove unnecessary Cargo.toml, include the top level Cargo.lock in ruby gem * ruby bindings continued- add eval_rule, fix _json methods, update README.md also added rubocop-minitest and rubocop-rake, and added more test coverage * update README.md to include Ruby bindings Closes #191
24 lines
493 B
Ruby
24 lines
493 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "bundler/gem_tasks"
|
|
require "minitest/test_task"
|
|
|
|
Minitest::TestTask.create
|
|
|
|
require "rubocop/rake_task"
|
|
|
|
RuboCop::RakeTask.new
|
|
|
|
require "rb_sys/extensiontask"
|
|
|
|
desc "build the .gem file, including native extensions, according to the .gemspec"
|
|
task build: :compile
|
|
|
|
GEMSPEC = Gem::Specification.load("regorusrb.gemspec")
|
|
|
|
RbSys::ExtensionTask.new("regorusrb", GEMSPEC) do |ext|
|
|
ext.lib_dir = "lib/regorusrb"
|
|
end
|
|
|
|
task default: %i[compile test rubocop]
|