Sha256: 7ed1d3e48618aed417cf119835b5243209084dfaafd1464fa3e47bb98acb1ac6

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 Bytes

Contents

namespace :gem do
  task "write_version", [:version] do |_task, args|
    if args[:version]
      version = args[:version].split("=").last
      version_file = File.expand_path("../../lib/sequel/xtdb/version.rb", __FILE__)

      system(<<~CMD, exception: true)
        ruby -pi -e 'gsub(/VERSION = ".*"/, %{VERSION = "#{version}"})' #{version_file}
      CMD
      Bundler.ui.confirm "Version #{version} written to #{version_file}."
    else
      Bundler.ui.warn "No version provided, keeping version.rb as is."
    end
  end

  desc "Build [version]"
  task "build", [:version] => ["write_version", "build"] do
  end

  desc "Build and push [version] to rubygems"
  task "release", [:version] => ["gem:build", "release:rubygem_push"] do
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sequel-xtdb-0.3.2 rakelib/gem.rake
sequel-xtdb-0.3.0 rakelib/gem.rake
sequel-xtdb-0.2.1 rakelib/gem.rake