← Back to Upcase

Gemspec and Versioning


(Frank West) #1

@gabe_bw,
What is the purpose of the “dup” and the “freeze” in the HighVoltage gemspec and version file? I was writing some gems and was reading through others to gain some insight on structure and just was curious what we would be trying to prevent here.

s.version = HighVoltage::VERSION.dup

VERSION = “2.2.1”.freeze