Rakefile in metatron-0.6.0 vs Rakefile in metatron-0.6.1
- old
+ new
@@ -21,10 +21,11 @@
type = args[:type] || ENV["TYPE"] || "patch"
current_version = Metatron::VERSION
new_version = calculate_new_version(type)
puts "Bumping gem version from #{current_version} to #{new_version}"
update_version(new_version)
+ update_gem_lock
end
task default: %i[spec rubocop yard]
def calculate_new_version(type)
@@ -40,9 +41,13 @@
version[1] = 0
version[2] = 0
end
version.join(".")
+end
+
+def update_gem_lock
+ system("bundle lock --update")
end
def update_version(new_version)
file = File.read("lib/metatron/version.rb")
new_contents = file.gsub(/VERSION = "(.+)"/, %(VERSION = "#{new_version}"))