Sha256: 0e3eb2e9e225f4efc5bf34c25f4dbce64d90e105fea2443da92fb4975672e1c5

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

require 'rake/testtask'
require 'rubygems/package_task'
require 'bundler/gem_tasks'
require 'rake/extensiontask'
require 'rake/clean'
require 'rdoc/task'
require 'benchmark'

CLEAN.include(
  "tmp",
  "lib/2.0",
  "lib/2.1",
  "lib/bcrypt_pbkdf_ext.so"
)
CLOBBER.include(
  "doc",
  "pkg"
)

task 'gem:windows' do
  require 'rake_compiler_dock'
  RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0"
end

GEMSPEC = Gem::Specification.load("bcrypt_pbkdf.gemspec")

task :default => [:compile, :spec]

desc "Run all tests"
Rake::TestTask.new do |t|
  #t.pattern =
  t.test_files = FileList['test/**/*_test.rb']
  t.ruby_opts = ['-w']
  t.libs << "test"
  t.verbose = true
end
task :spec => :test

desc 'Generate RDoc'
RDoc::Task.new do |rdoc|
  rdoc.rdoc_dir = 'doc/rdoc'
  rdoc.options += GEMSPEC.rdoc_options
  rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE']
  rdoc.rdoc_files.include(*GEMSPEC.extra_rdoc_files)
end

Gem::PackageTask.new(GEMSPEC) do |pkg|
  pkg.need_zip = true
  pkg.need_tar = true
end

Rake::ExtensionTask.new("bcrypt_pbkdf_ext", GEMSPEC) do |ext|
  ext.ext_dir = 'ext/mri'
  ext.cross_compile = true
  ext.cross_platform = ['x86-mingw32', 'x64-mingw32']
end

Version data entries

12 entries across 11 versions & 2 rubygems

Version Path
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile
bcrypt_pbkdf-1.0.1 Rakefile