Sha256: 7398880969acd21046f115375b6f7a481f3e81ad34aff9d7341959cf12758534

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

require 'rake/clean'

require 'rake/extensiontask'
Rake::ExtensionTask.new('extralite_ext') do |ext|
  ext.ext_dir = 'ext/extralite'
end

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

task :default => [:compile, :doc, :test]
task :doc => :yard
task :test do
  exec 'ruby test/run.rb'
end

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

require 'yard'
YARD_FILES = FileList['ext/extralite/extralite.c', 'lib/extralite.rb', 'lib/sequel/adapters/extralite.rb']

YARD::Rake::YardocTask.new do |t|
  t.files   = YARD_FILES
  t.options = %w(-o doc --readme README.md)
end

task :release do
  require_relative './lib/extralite/version'
  version = Extralite::VERSION
  
  puts 'Building extralite...'
  `gem build extralite.gemspec`

  puts 'Building extralite-bundle...'
  `gem build extralite-bundle.gemspec`

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
extralite-bundle-1.14 Rakefile