3
내가 https://github.com/thoughtbot/high_voltage 소스 코드를 읽는 동안, 나는 보석 스펙 파일에서 찾을 :왜 .freeze 및 .dup SomeGem :: VERSION?
module HighVoltage
VERSION = "2.2.1".freeze
end
이 일의 장점은 무엇인가
Gem::Specification.new do |s|
s.name = 'high_voltage'
s.version = HighVoltage::VERSION.dup
및 lib/high_voltage/version.rb
파일에