bump_gem_version 0.1.1 → 0.1.2
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/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/bump_gem_version/version.rb +1 -1
- data/lib/bump_gem_version.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6e6bd836142436daedc45258add017129faf0ea4a98fde70dc4e70f2c74b2e
|
4
|
+
data.tar.gz: 3ce8df40df36875b534fb3a10342faa537f6d3ecf7c801ec4661d961bb8e1621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f6f40920043f44e0a8cda4b077928b7c825c6c6d7bef3938982e20a71708b75ea86c0b5f65f5f6b70449d08eef5d934f87d730e04dba140f19f46837a05cac6
|
7
|
+
data.tar.gz: dd4f17cbaa4ad8acdd9386b283c96218938dc7530d11f205f5a89af1162f8da644398947df4e5aa19273c624d18725de22b1c2ea298c9da5e5ea6fe8d31f69d2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.2] - 2023-02-23
|
4
|
+
|
5
|
+
- Added: `labels` method to bump version according to the first bump type label found from the given list of labels.
|
6
|
+
|
7
|
+
## [0.1.1] - 2023-02-21
|
8
|
+
|
9
|
+
- Changed: Ruby version to `3.1.3`
|
10
|
+
|
3
11
|
## [0.1.0] - 2023-02-21
|
4
12
|
|
5
13
|
- Initial release
|
data/Gemfile.lock
CHANGED
data/lib/bump_gem_version.rb
CHANGED
@@ -22,6 +22,12 @@ module BumpGemVersion
|
|
22
22
|
desc "patch", "Bump the patch version of your gem"
|
23
23
|
def patch = bump_gem_version("patch")
|
24
24
|
|
25
|
+
desc "label", "Bump the version of your gem from the given labels"
|
26
|
+
def labels(labels)
|
27
|
+
bump_type = labels.split(",").find { |label| BUMPS.include?(label) }
|
28
|
+
bump_type ? bump_gem_version(bump_type) : puts("Error: Unable to find a valid bump label.")
|
29
|
+
end
|
30
|
+
|
25
31
|
private
|
26
32
|
|
27
33
|
def bump_gem_version(bump_type)
|
@@ -52,7 +58,7 @@ module BumpGemVersion
|
|
52
58
|
version_from_version_rb ||
|
53
59
|
version_from_lib_rb
|
54
60
|
)
|
55
|
-
puts "Unable to find the version." unless version
|
61
|
+
puts "Error: Unable to find the version." unless version
|
56
62
|
|
57
63
|
[version, file]
|
58
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bump_gem_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thejus Paul
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|