Sha256: 962a5ebd7df99156e21936c2a77acf2c7ad065013114b7432c72c59093a76d95

Contents?: true

Size: 734 Bytes

Versions: 20

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "standard/rake"
require "rake/extensiontask"
require "rb_sys/extensiontask"

GEMSPEC = Gem::Specification.load("tiktoken_ruby.gemspec")

RbSys::ExtensionTask.new("tiktoken_ruby", GEMSPEC) do |ext|
  ext.lib_dir = "lib/tiktoken_ruby"
end

RSpec::Core::RakeTask.new(:spec)

task :native, [:platform] do |_t, platform:|
  sh "bundle", "exec", "rb-sys-dock", "--platform", platform, "--build"
end

task build: :compile

task default: %i[compile spec standard]

# Packaging default (non-precompiled) gem
require "rubygems/package_task"
gem_path = Gem::PackageTask.new(GEMSPEC).define
desc "Package the Ruby gem"
task "package" => [gem_path]

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tiktoken_ruby-0.0.11.1 Rakefile
tiktoken_ruby-0.0.11.1-x86_64-linux Rakefile
tiktoken_ruby-0.0.11.1-x86_64-linux-musl Rakefile
tiktoken_ruby-0.0.11.1-x86_64-darwin Rakefile
tiktoken_ruby-0.0.11.1-x64-mingw-ucrt Rakefile
tiktoken_ruby-0.0.11.1-arm64-darwin Rakefile
tiktoken_ruby-0.0.11.1-arm-linux Rakefile
tiktoken_ruby-0.0.11.1-aarch64-linux Rakefile
tiktoken_ruby-0.0.11 Rakefile
tiktoken_ruby-0.0.11-x86_64-linux Rakefile
tiktoken_ruby-0.0.11-x86_64-linux-musl Rakefile
tiktoken_ruby-0.0.11-x86_64-darwin Rakefile
tiktoken_ruby-0.0.11-x64-mingw-ucrt Rakefile
tiktoken_ruby-0.0.11-arm64-darwin Rakefile
tiktoken_ruby-0.0.11-arm-linux Rakefile
tiktoken_ruby-0.0.11-aarch64-linux Rakefile
tiktoken_ruby-0.0.10 Rakefile
tiktoken_ruby-0.0.10-x86_64-linux Rakefile
tiktoken_ruby-0.0.10-x86_64-linux-musl Rakefile
tiktoken_ruby-0.0.10-aarch64-linux Rakefile