Sha256: 4d8830871d002d66f59dfb62f3e1e4c5d47a59e80fc9b261ec35951e187e5bde
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 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 task compile: :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 Dir.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xlsxwriter-0.2.0.pre | Rakefile |
xlsxwriter-0.1.2.pre | Rakefile |
xlsxwriter-0.1.1 | Rakefile |
xlsxwriter-0.1.0 | Rakefile |