Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,31 @@ RSpec::Core::RakeTask.new(:spec)

task default: [:spec, :build]

GEN_MODEL_VERSIONS = %w[
SUPPORTED_MODEL_VERSIONS = %w[
0.149
0.153
0.173
0.178
0.205
303
316
351
]
483
].freeze

GEN_MODEL_VERSIONS = %w[
483
].freeze

namespace "modelgen" do
task latest: :all do
require "erb"

erb = ERB.new(File.read("modelgen/models.rb"))
@versions = GEN_MODEL_VERSIONS
@latest_version = GEN_MODEL_VERSIONS.last
@versions = SUPPORTED_MODEL_VERSIONS
@latest_version = SUPPORTED_MODEL_VERSIONS.last
data = erb.result

File.write("lib/trino/client/models.rb", data)
end

Expand Down
Loading
Loading