Sha256: 26ea70e5fbb19d910c51ebd6043fa40abc7a85257e005afdb0adf52cbad65163
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/test_*.rb"] end require "standard/rake" require "rake/extensiontask" task build: :compile Rake::ExtensionTask.new("getargv_ruby") do |ext| ext.lib_dir = "lib/getargv_ruby" end task default: %i[clobber compile test standard] require "sdoc" require "rdoc/task" RDoc::Task.new do |rdoc| rdoc.main = "README.md" rdoc.rdoc_dir = "doc" rdoc.options << "--format=sdoc" rdoc.template = "rails" rdoc.rdoc_files.include("ext/*/*.c", "lib/*/*.rb", "lib/*.rb") end namespace :dev do desc "generate a Makefile" task :makefile do ruby "ext/getargv_ruby/extconf.rb" end CLOBBER << "Makefile" compilation_db_path = "ext/getargv_ruby/compile_commands.json" desc "generate compilation database for language server" task database: :makefile do system "bear", "--output", compilation_db_path, "--", "make", "getargv_ruby.o" end CLOBBER << compilation_db_path end CLEAN.concat ["ext/getargv_ruby/.cache", "getargv_ruby.o", "mkmf.log"]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
getargv-0.3.0-universal-darwin | Rakefile |
getargv-0.2.0-universal-darwin | Rakefile |
getargv-0.1.0-x86_64-darwin-21 | Rakefile |