Fix NoMethodError bug in semver.rb (typo)