-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (24 loc) · 915 Bytes
/
Rakefile
File metadata and controls
32 lines (24 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/extensiontask"
require "rubocop/rake_task"
RuboCop::RakeTask.new
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
Rake::ExtensionTask.new("sqlite_extensions/uuid") do |ext|
ext.gem_spec = Gem::Specification.load("sqlite_extensions-uuid.gemspec")
ext.name = "uuid"
ext.lib_dir = "lib/sqlite_extensions/uuid"
end
desc "Update vendored SQLite files"
task :update do
sh "wget https://sqlite.org/2024/sqlite-autoconf-3460100.tar.gz"
sh "tar xvf sqlite-autoconf-3460100.tar.gz"
sh "cp -v ./sqlite-autoconf-3460100/*.h ext/sqlite_extensions/uuid/"
sh "rm -rf sqlite-autoconf-3460100*"
sh "wget https://github.com/sqlite/sqlite/raw/refs/tags/version-3.46.1/ext/misc/uuid.c"
sh "mv -v ./uuid.c ext/sqlite_extensions/uuid/"
end
desc "Run specs"
task spec: :compile
task default: %i[clobber compile spec rubocop]