Sha256: 99b83269495a0c5cef22ecf17cd8b53d583aeba2f229ca0ef7ae844249ce0325

Contents?: true

Size: 1.18 KB

Versions: 28

Compression:

Stored size: 1.18 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

task :build_bundled do
  puts 'Building extralite-bundle...'
  `gem build extralite-bundle.gemspec`
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
extralite-bundle-2.6 Rakefile
extralite-2.6 Rakefile
extralite-bundle-2.5 Rakefile
extralite-2.5 Rakefile
extralite-bundle-2.4 Rakefile
extralite-2.4 Rakefile
extralite-bundle-2.3 Rakefile
extralite-2.3 Rakefile
extralite-bundle-2.2 Rakefile
extralite-2.2 Rakefile
extralite-bundle-2.1 Rakefile
extralite-2.1 Rakefile
extralite-bundle-2.0 Rakefile
extralite-2.0 Rakefile
extralite-bundle-1.27 Rakefile
extralite-1.27 Rakefile
extralite-bundle-1.26 Rakefile
extralite-1.26 Rakefile
extralite-bundle-1.25 Rakefile
extralite-1.25 Rakefile