All Projects → gregorym → Bump

gregorym / Bump

Licence: mit
Bump is a gem that will simplify the way you build gems.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Bump

Docat
Host your docs. Simple. Versioned. Fancy.
Stars: ✭ 115 (-23.33%)
Mutual labels:  versioning
Net Http2
NetHttp2 is an HTTP/2 client for Ruby.
Stars: ✭ 126 (-16%)
Mutual labels:  gem
Unityraytracinggem
💎 Ray tracing gem shader for Unity
Stars: ✭ 140 (-6.67%)
Mutual labels:  gem
Searchobjectgraphql
GraphQL plugin for SearchObject gem
Stars: ✭ 118 (-21.33%)
Mutual labels:  gem
Foot traffic
Pure Ruby DSL for Chrome scripting based on Ferrum. No Selenium required. Works from any script. Simulate web app usage scenarios in production or locally.
Stars: ✭ 123 (-18%)
Mutual labels:  gem
Rails sortable
Easy drag & drop sorting with persisting the arranged order for rails
Stars: ✭ 127 (-15.33%)
Mutual labels:  gem
Nave
Virtual Environments for Node
Stars: ✭ 1,495 (+896.67%)
Mutual labels:  versioning
Semver.c
Semantic version library written in ANSI C
Stars: ✭ 147 (-2%)
Mutual labels:  versioning
Reckon
Infer a project's version from your Git repository.
Stars: ✭ 124 (-17.33%)
Mutual labels:  versioning
Dephell
📦 🔥 Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
Stars: ✭ 1,730 (+1053.33%)
Mutual labels:  versioning
Dry Logic
Predicate logic with rule composition
Stars: ✭ 118 (-21.33%)
Mutual labels:  gem
Rubicure
All about Japanese battle heroine "Pretty Cure (Precure)"
Stars: ✭ 119 (-20.67%)
Mutual labels:  gem
Poetry Dynamic Versioning
Plugin for Poetry to enable dynamic versioning based on VCS tags
Stars: ✭ 131 (-12.67%)
Mutual labels:  versioning
Jgitver Maven Plugin
maven core extension to automatically define versions using jgitver & git tags
Stars: ✭ 117 (-22%)
Mutual labels:  versioning
Semver
Semantic versioning helper library for PHP
Stars: ✭ 144 (-4%)
Mutual labels:  versioning
Sketch Json
Transform sketch files to json and json to sketch files
Stars: ✭ 113 (-24.67%)
Mutual labels:  versioning
Versioning React Native App
⬆️ How to version a React Native app using npm version.
Stars: ✭ 127 (-15.33%)
Mutual labels:  versioning
Scallop
Ergonomic shell wrapper for Ruby.
Stars: ✭ 150 (+0%)
Mutual labels:  gem
Wordmove
Multi-stage command line deploy/mirroring and task runner for Wordpress
Stars: ✭ 1,791 (+1094%)
Mutual labels:  gem
Cleanerversion
CleanerVersion adds a versioning/historizing layer to your relational DB which implements a "Slowly Changing Dimensions Type 2" behavior
Stars: ✭ 135 (-10%)
Mutual labels:  versioning

Build Status Gem Version

A gem to bump versions of gems and chef-cookbooks.

  • bumps version major / minor / patch / pre
  • bundles
  • commits changes

Installation

gem install bump

Usage

Show current version

bump current

0.1.2

Bump (major, minor, patch, pre)

bump patch

Bump version 0.1.2 to 0.1.3

Show next version

bump show-next patch

0.1.3

Show version file path

bump file

lib/foo/version.rb

Options

--no-commit

Do not commit after bumping.

bump patch --no-commit

--tag

Will add a git tag like v1.2.3 (if the current project is a git repository and --no-commit has not been given).

bump patch --tag

The --tag-prefix option can change the tag prefix:

bump patch --tag --tag-prefix v-     # tag as v-1.2.3
bump patch --tag --tag-prefix ""     # tag as 1.2.3

--no-bundle

Do not run bundle command after bumping.

bump patch --no-bundle

--replace-in

Bump the version in additional files.

bump patch --replace-in Readme.md

--commit-message [MSG], -m [MSG]

Append additional information to the commit message.

bump patch --commit-message "Something extra"

or

bump patch -m "Something extra"

--changelog

Updates CHANGELOG.md when bumping. This requires a heading (starting with ##) that includes the previous version and a heading above that, for example:

### Next
- Added bar

### v0.0.0 - 2019-12-24
- Added foo

--edit-changelog

Updates CHANGELOG.md when bumping (see above), and opens the changelog in an editor specified in $EDITOR (or vi), then waits for the editor to be closed and continues.

EDITOR="subl -n -w" bump patch --edit-changelog

Rake

# Rakefile
require "bump/tasks"

#
# do not always tag the version
# Bump.tag_by_default = false
#
# bump the version in additional files
# Bump.replace_in_default = ["Readme.md"]
#
# Maintain changelog:
# Bump.changelog = true
# Opens the changelog in an editor when bumping
# Bump.changelog = :editor
rake bump:current                           # display current version
rake bump:show-next INCREMENT=minor         # display next minor version
rake bump:file                              # display version file path

# bumping using defaults for `COMMIT`, `TAG`, and `BUNDLE`
rake bump:major
rake bump:patch
rake bump:minor
rake bump:pre

# bumping with option(s)
rake bump:patch TAG=false BUNDLE=false      # commit, but don't tag or run `bundle`
rake bump:patch TAG=true TAG_PREFIX=v-      # tag with a prefix 'v-' ex. the tag will look like v-0.0.1
rake bump:patch COMMIT=false TAG=false      # don't commit, don't tag
rake bump:minor BUNDLE=false                # don't run `bundle`
rake bump:minor COMMIT_MESSAGE="release it" # custom commit message, appended to version

Ruby

require "bump"
Bump::Bump.current        # -> "1.2.3"
Bump::Bump.next_version("patch")        # -> "1.2.4"
Bump::Bump.file           # -> "lib/foo/version.rb"
Bump::Bump.run("patch")   # -> version changed
Bump::Bump.run("patch", tag: true, tag_prefix: 'v-') # -> version changed with tagging with '-v' as prefix
Bump::Bump.run("patch", commit: false, bundle:false, tag:false) # -> version changed with options
Bump::Bump.run("patch", commit_message: '[no ci]') # -> creates a commit message with 'v1.2.3 [no ci]' instead of default: 'v1.2.3'

Supported locations

  • VERSION file with 1.2.3
  • gemspec with gem.version = "1.2.3" or Gem:Specification.new "gem-name", "1.2.3" do
  • lib/**/version.rb file with VERSION = "1.2.3"
  • metadata.rb with version "1.2.3"
  • VERSION = "1.2.3" in lib/**/*.rb

Author

Gregory
License: MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].