Sha256: b8abc5689a5bf4505ae527e27d4e584ead09752987d1d19cebe351c4a57e2373
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true require 'rake/extensiontask' task default: :test spec = Gem::Specification.load('xlsxwriter.gemspec') Rake::ExtensionTask.new('xlsxwriter', spec) do |ext| ext.lib_dir = 'lib/xlsxwriter' end Rake::Task['compile'].prerequisites.unshift :patch_dep Gem::PackageTask.new(spec) do |pkg| end DEP_DIR='ext/xlsxwriter/libxlsxwriter' desc "Checkout xlsxwriter C library" task :patch_dep do patches = Dir["#{pwd}/dep_patches/*.patch"] chdir(DEP_DIR) do if File.exist?('.git') sh 'git reset --hard' patches.each do |patch| sh "patch -N -p1 <#{patch}" end end end end desc 'Run specs' task test: :compile do ruby('test/run-test.rb') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xlsxwriter-0.2.1.pre.2 | Rakefile |
xlsxwriter-0.2.1.pre | Rakefile |
xlsxwriter-0.2.0 | Rakefile |