Sha256: 2a6472f7edefd64abfaf9f96869315d0a7ff0c58bef87f12079fc1d1f3fd8b1e

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

#!/usr/bin/env ruby

tag = `git describe --tag`.chomp
unless $?.success?
  raise "git tag could not run - release check fails"
end

unless tag =~ /\Av([\d\.]+)\z/
  raise "git tag (#{tag}) is not a valid version tag - release check fails"
  exit 1
end


tag_version = Regexp.last_match[1]

require "bundler/setup"
unless tag_version.eql?(LIRC::VERSION)
  raise "version from git tag (#{tag}) does not match LIRC::VERSION (#{LIRC::VERSION}) - release check fails"
end

puts "version from git tag (#{tag_version}) matches LIRC::VERSION"
puts "release check succeeds - proceed with building gem"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lirc-0.3.0 bin/release-check