bmp 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bmp.yml +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +12 -15
- data/bump.gemspec +1 -1
- data/lib/bump/version.rb +1 -1
- data/spec/bump/domain/version_spec.rb +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4287c12d56a56348ef597925c16ec6a32ea910d
|
4
|
+
data.tar.gz: ba5ae441f3df58b7e87391586a813fc639bae43f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5874cd3593571ee81d9ba62ee079674b15fcb9d652f37e3a17b4c12dd1bed4220d9adfbd08679058760b2eb940d88170ef9274d5b64d31d678316b14af222586
|
7
|
+
data.tar.gz: 7268fe5cb6afca65c3a473c81f557cdf4b5b14a99cafa650aff03724b7336820655572924985c8e3b3f82599a4250b6e78aa57fab766ab2dd87891bc79373a85
|
data/.bmp.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Bmp v0.8.
|
1
|
+
# Bmp v0.8.3
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/bmp)
|
4
4
|
[](https://travis-ci.org/kt3k/bmp)
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
[ ](https://www.codeship.io/projects/29009)
|
9
9
|
|
10
|
-
>
|
10
|
+
> No hassle on bumping
|
11
11
|
|
12
12
|
`bmp` command bumps and updates the version numbers in a repository according to the yaml file `.bmp.yml`. This is convenient if you have written many version numbers in your repository. This command helps you consistently update the version information in your repository.
|
13
13
|
|
@@ -47,39 +47,36 @@ The expression above means the file `./gradle.properties` contains the string `v
|
|
47
47
|
|
48
48
|
### bmp command
|
49
49
|
|
50
|
-
|
50
|
+
Show current version info:
|
51
51
|
```
|
52
|
-
bmp
|
52
|
+
bmp [-i|--info]
|
53
53
|
```
|
54
54
|
|
55
55
|
|
56
56
|
bump patch (0.0.1) level:
|
57
57
|
```
|
58
|
-
bmp
|
58
|
+
bmp -p|--patch
|
59
59
|
```
|
60
60
|
|
61
|
+
This command updates all the version numbers which are specified in `.bmp.yml`
|
62
|
+
|
61
63
|
|
62
64
|
bump minor (0.1.0) level:
|
63
65
|
```
|
64
|
-
bmp
|
66
|
+
bmp -m|--minor
|
65
67
|
```
|
66
68
|
|
67
69
|
|
68
70
|
bump major (1.0.0) level:
|
69
71
|
```
|
70
|
-
bmp
|
72
|
+
bmp -j|--major
|
71
73
|
```
|
72
74
|
|
73
75
|
|
74
76
|
commit bump results
|
75
77
|
```
|
76
|
-
bmp
|
78
|
+
bmp -c|--commit
|
77
79
|
```
|
78
80
|
|
79
|
-
|
80
|
-
|
81
|
-
1. Fork it
|
82
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
83
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
84
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
85
|
-
5. Create new Pull Request
|
81
|
+
`bmp -c` commits all the changes now the repository has. Be careful.
|
82
|
+
And this command also tag it as `vX.Y.Z`.
|
data/bump.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Yoshiya Hinosawa"]
|
10
10
|
spec.email = ["stibium121@gmail.com"]
|
11
11
|
spec.description = "Bump version numbers in a repository"
|
12
|
-
spec.summary = "
|
12
|
+
spec.summary = "No hassle on bumping"
|
13
13
|
spec.homepage = "https://github.com/kt3k/bump"
|
14
14
|
spec.license = "MIT License"
|
15
15
|
|
data/lib/bump/version.rb
CHANGED
@@ -5,16 +5,6 @@ require 'spec_helper'
|
|
5
5
|
|
6
6
|
describe Bump::Version do
|
7
7
|
|
8
|
-
describe "#initialize" do
|
9
|
-
|
10
|
-
it "constructs" do
|
11
|
-
|
12
|
-
expect(Bump::Version.new(1, 2, 3)).not_to be_nil
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
8
|
describe "#to_s" do
|
19
9
|
|
20
10
|
it "returns version string" do
|
@@ -45,6 +35,16 @@ describe Bump::Version do
|
|
45
35
|
|
46
36
|
end
|
47
37
|
|
38
|
+
it "bumps 0.1.10 to 0.1.11" do
|
39
|
+
|
40
|
+
version = Bump::Version.new 0, 1, 10
|
41
|
+
|
42
|
+
version.patchBump
|
43
|
+
|
44
|
+
expect(version.to_s).to eq '0.1.11'
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
48
|
it "remove suffix if it is set" do
|
49
49
|
|
50
50
|
version = Bump::Version.new 1, 2, 3, 'rc1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiya Hinosawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -117,7 +117,7 @@ rubyforge_project:
|
|
117
117
|
rubygems_version: 2.2.2
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
|
-
summary:
|
120
|
+
summary: No hassle on bumping
|
121
121
|
test_files:
|
122
122
|
- spec/bump/application_spec.rb
|
123
123
|
- spec/bump/cli_spec.rb
|