From ca4c1a3eb0720525385450cfaad7755e57d41fd3 Mon Sep 17 00:00:00 2001 From: uvlad7 Date: Wed, 11 Oct 2023 02:57:20 +0300 Subject: [PATCH] Debug --- Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 00603e0..8024068 100644 --- a/Rakefile +++ b/Rakefile @@ -15,15 +15,18 @@ require 'rb_sys/extensiontask' task build: :compile -RbSys::ExtensionTask.new('xml2json') do |ext| +gemspec = Gem::Specification.load("xml2json.gemspec") + +RbSys::ExtensionTask.new('xml2json', gemspec) do |ext| ext.lib_dir = 'lib/xml2json' end require 'yard' YARD::Rake::YardocTask.new do |t| - t.files = ['lib/**/*.rb'] + t.files = gemspec.files t.options += ['--output-dir', ENV['YARD_OUTPUT_DIR']] if ENV['YARD_OUTPUT_DIR'] + p t.options end task default: %i[compile spec rubocop yard]