Sha256: 4f63f20deffc14e5fca005f0b02e5e2150215608668fb64394b1dce7a4883c5f

Contents?: true

Size: 873 Bytes

Versions: 5

Compression:

Stored size: 873 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/clean"
require "rake/testtask"
require "rake/extensiontask"

Rake::ExtensionTask.new("um_ext") do |ext|
  ext.ext_dir = "ext/um"
end

task :recompile => [:clean, :compile]
task :default => [:compile, :test]

test_config = -> (t) {
  t.libs << "test"
  t.test_files = FileList["test/**/test_*.rb"]
}
Rake::TestTask.new(test: :compile, &test_config)

task :stress_test do
  exec 'ruby test/stress.rb'
end

CLEAN.include "**/*.o", "**/*.so", "**/*.so.*", "**/*.a", "**/*.bundle", "**/*.jar", "pkg", "tmp"

task :release do
  require_relative './lib/uringmachine/version'
  version = UringMachine::VERSION

  puts 'Building uringmachine...'
  `gem build uringmachine.gemspec`

  puts "Pushing uringmachine #{version}..."
  `gem push uringmachine-#{version}.gem`

  puts "Cleaning up..."
  `rm *.gem`
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uringmachine-0.5.1 Rakefile
uringmachine-0.5 Rakefile
uringmachine-0.4 Rakefile
uringmachine-0.3 Rakefile
uringmachine-0.2 Rakefile