Files
wehub-resource-sync 9f2e1cd2af
Ruby / Ruby 4.0.5 (push) Failing after 5m13s
Ruby / Ruby 3.3.4 (push) Failing after 5m43s
Ruby / Ruby 2.6.8 (push) Failing after 16m2s
chore: import upstream snapshot with attribution
2026-07-13 12:33:07 +08:00

35 lines
815 B
Ruby

# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
namespace :build do
desc "Build both openclacky and clacky gems"
task :all do
puts "Building openclacky gem..."
sh "gem build openclacky.gemspec"
puts "Building clacky gem..."
sh "cd clacky-legacy && gem build clacky.gemspec"
sh "cd clacky-legacy && gem build clarky.gemspec"
puts "Moving gems to pkg directory..."
sh "mkdir -p pkg"
sh "mv openclacky-*.gem pkg/"
sh "mv clacky-legacy/*.gem pkg/"
puts "✅ Build complete! Gems are in pkg/ directory:"
sh "ls -lh pkg/*.gem"
end
desc "Clean built gems from pkg directory"
task :clean do
sh "rm -rf pkg/*.gem"
puts "✅ Cleaned pkg directory"
end
end
task default: %i[spec]