Sha256: 66a5399f037d78364f096d8d291f16888738b268e882522ba9900a0200bdac2d
Contents?: true
Size: 992 Bytes
Versions: 18
Compression:
Stored size: 992 Bytes
Contents
require "bundler" Bundler::GemHelper.install_tasks require "rspec/core/rake_task" require 'yard' RSpec::Core::RakeTask.new(:spec) task :default => [:compile, :spec] require "rake/extensiontask" task :build => :compile task :spec => :compile desc 'Generate YARD document' YARD::Rake::YardocTask.new(:doc) do |t| t.files = ['ext/strptime/strptime.c'] t.options = [] t.options << '--debug' << '--verbose' if $trace end spec = eval File.read("strptime.gemspec") Rake::ExtensionTask.new("strptime", spec) do |ext| ext.ext_dir = 'ext/strptime' ext.cross_compile = true ext.lib_dir = File.join(*['lib', 'strptime', ENV['FAT_DIR']].compact) # cross_platform names are of MRI's platform name ext.cross_platform = ['x86-mingw32', 'x64-mingw32'] end namespace :build do desc 'Build gems for Windows per rake-compiler-dock' task :windows do require 'rake_compiler_dock' RakeCompilerDock.sh 'bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2' end end
Version data entries
18 entries across 18 versions & 1 rubygems