We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3100d commit 26f4dbbCopy full SHA for 26f4dbb
1 file changed
rake/gem.rb
@@ -43,12 +43,15 @@ def self.build(target = GEMFILE)
43
44
# Push the gem to rubygems
45
def self.push
46
+ raise 'Cannot push version that does not match .version file' unless version == OctocatalogDiff::Version::VERSION
47
raise "The gem file doesn't exist: #{FINAL_GEMFILE}" unless File.file?(FINAL_GEMFILE)
48
exec_command("gem push #{Shellwords.escape(FINAL_GEMFILE)}")
49
end
50
51
# Tag the release on GitHub
52
def self.tag
53
+ raise 'Cannot tag version that does not match .version file' unless version == OctocatalogDiff::Version::VERSION
54
+
55
# Make sure we have not released this version before
56
exec_command('git fetch -t origin')
57
tags = exec_command('git tag -l').split(/\n/)
0 commit comments