lib/gem/release/cmds/bump.rb in gem-release-2.0.1 vs lib/gem/release/cmds/bump.rb in gem-release-2.0.2
- old
+ new
@@ -52,11 +52,11 @@
sign: 'GPG sign the commit message',
tag: 'Shortcut for running the `gem tag` command',
recurse: 'Recurse into directories that contain gemspec files',
release: 'Shortcut for the `gem release` command',
file: 'Full path to the version file'
- }
+ }.freeze
DEFAULTS = {
commit: true,
message: 'Bump %{name} to %{version} %{skip_ci}',
push: false,
@@ -64,11 +64,11 @@
remote: 'origin',
skip_ci: false,
sign: false,
recurse: false,
pretend: false
- }
+ }.freeze
opt '-v', '--version VERSION', descr(:version) do |value|
opts[:version] = value
end
@@ -124,17 +124,17 @@
git_commit: 'Creating commit',
git_push: 'Pushing to the %s git repository',
git_dirty: 'Uncommitted changes found. Please commit or stash.',
not_found: 'Ignoring %s. Version file %s not found.',
no_git_remote: 'Cannot push to missing git remote %s.'
- }
+ }.freeze
CMDS = {
git_checkout: 'git checkout -b %s',
git_add: 'git add %s',
git_commit: 'git commit -m %p %s',
git_push: 'git push %s'
- }
+ }.freeze
def run
in_gem_dirs do
validate
checkout if opts[:branch]