Sha256: ba75cead6a43de5007b6542a1bd27f8a48a5101663b960cca6b1a90b5743d3d9

Contents?: true

Size: 554 Bytes

Versions: 54

Compression:

Stored size: 554 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]

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
tiktoken_ruby-0.0.10-x86_64-darwin Rakefile
tiktoken_ruby-0.0.10-arm64-darwin Rakefile
tiktoken_ruby-0.0.8-x86_64-linux Rakefile
tiktoken_ruby-0.0.8-x86_64-linux-musl Rakefile
tiktoken_ruby-0.0.8-x86_64-darwin Rakefile
tiktoken_ruby-0.0.8-x64-mingw-ucrt Rakefile
tiktoken_ruby-0.0.8-arm64-darwin Rakefile
tiktoken_ruby-0.0.8-arm-linux Rakefile
tiktoken_ruby-0.0.8-aarch64-linux Rakefile
tiktoken_ruby-0.0.8 Rakefile
tiktoken_ruby-0.0.7-x86_64-linux Rakefile
tiktoken_ruby-0.0.7-x86_64-linux-musl Rakefile
tiktoken_ruby-0.0.7-x86_64-darwin Rakefile
tiktoken_ruby-0.0.7-x64-mingw32 Rakefile
tiktoken_ruby-0.0.7-x64-mingw-ucrt Rakefile
tiktoken_ruby-0.0.7-arm64-darwin Rakefile
tiktoken_ruby-0.0.7-arm-linux Rakefile
tiktoken_ruby-0.0.7-aarch64-linux Rakefile
tiktoken_ruby-0.0.7 Rakefile
tiktoken_ruby-0.0.6-x86_64-linux Rakefile