bumpversion 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/bumpversion/git_operation.rb +1 -7
- data/lib/bumpversion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a474ecb623c32953955e82e550defd2a14b9516
|
4
|
+
data.tar.gz: c07a7af0c0a0ad7ccec664cb9c7c90b39c87deed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6f24ed84f572379b01731938a9cae98b62cad3a0a803a8c23fe1acc9424955928529d92ad006aa4c1218c232f6d3d440435d0764c3fc3765e6f38de609d188b
|
7
|
+
data.tar.gz: a88d2db13f2f95be1846ff740f30f796cf1e486b3e74b8603fa87bf89c7b076a51184d2c44833092b5ae6ef5c617c3574c326d4b3b7f57866ceabb8b061774c2
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Bumpversion
|
2
2
|
|
3
|
-
|
3
|
+
Simple command to Bump version your project in shell.
|
4
4
|
|
5
|
-
|
5
|
+
- Bump multiple files version in your project
|
6
|
+
- Git operations like commit, tag and push
|
7
|
+
- Customizables Hooks
|
6
8
|
|
7
9
|
# Code Status
|
8
10
|
|
9
|
-
|
10
|
-
|
11
11
|
Service | Status
|
12
12
|
--------|----------
|
13
13
|
Issues Ready to Work|[![Waffle.io](https://img.shields.io/waffle/label/dlanileonardo/bumpversion/in%20progress.svg?maxAge=2592000&style=flat-square)](https://waffle.io/dlanileonardo/bumpversion)
|
@@ -15,6 +15,7 @@ Gems Version|[![Gem](https://img.shields.io/gem/v/bumpversion.svg?maxAge=2592000
|
|
15
15
|
Code Climate|[![Code Climate](https://img.shields.io/codeclimate/github/kabisaict/flow.svg?maxAge=2592000&style=flat-square)](https://codeclimate.com/github/dlanileonardo/bumpversion)
|
16
16
|
Coverage|[![Code Climate](https://img.shields.io/codeclimate/coverage/github/dlanileonardo/bumpversion.svg?maxAge=2592000&style=flat-square)](https://codeclimate.com/github/dlanileonardo/bumpversion/coverage)
|
17
17
|
Build Status|[![Travis](https://img.shields.io/travis/dlanileonardo/bumpversion.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/dlanileonardo/bumpversion)
|
18
|
+
Dependencies|[![Gemnasium](https://img.shields.io/gemnasium/dlanileonardo/bumpversion.svg?maxAge=2592000&style=flat-square)]()
|
18
19
|
|
19
20
|
## Installation
|
20
21
|
|
@@ -8,17 +8,12 @@ module Bumpversion
|
|
8
8
|
Git.init('.')
|
9
9
|
end
|
10
10
|
|
11
|
-
def config!
|
12
|
-
@git.config('user.name', @options[:git_user])
|
13
|
-
@git.config('user.email', @options[:git_email])
|
14
|
-
end
|
15
|
-
|
16
11
|
def commit!
|
17
12
|
if @options[:git_commit]
|
18
13
|
file = @options[:file].split(',') + [@options[:config_file]]
|
19
14
|
file += @options[:git_extra_add].split(',') if @options[:git_extra_add]
|
20
15
|
@git.add(file)
|
21
|
-
@git.commit("Bump version: #{@options[:current_version]} → #{@options[:new_version]}")
|
16
|
+
@git.commit("Bump version: #{@options[:current_version]} → #{@options[:new_version]}", {author: "#{@options[:git_user]} <#{@options[:git_email]}>"})
|
22
17
|
end
|
23
18
|
end
|
24
19
|
|
@@ -32,7 +27,6 @@ module Bumpversion
|
|
32
27
|
end
|
33
28
|
|
34
29
|
def do!
|
35
|
-
config!
|
36
30
|
commit!
|
37
31
|
tag!
|
38
32
|
push!
|
data/lib/bumpversion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bumpversion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dlani Mendes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|