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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d7330021c3ef70e48c1efbed31c775b4d1749757c268a89e30b7a865fe8d7f6
4
- data.tar.gz: 28a2e83529e880c1d51194ce9702812ba8460c5246c466ac87e98630d48172b6
3
+ metadata.gz: 9e6e6bd836142436daedc45258add017129faf0ea4a98fde70dc4e70f2c74b2e
4
+ data.tar.gz: 3ce8df40df36875b534fb3a10342faa537f6d3ecf7c801ec4661d961bb8e1621
5
5
  SHA512:
6
- metadata.gz: d0939d7441f84c9fca05b36273e8da9cc121fd2861cd8a60ad95c83f6100991b943fa1f5296a624f13e0952fe3d1004eafb42e6ef0c936d5eba874eeca797e0a
7
- data.tar.gz: 2ade5877cc747f14489563b18b93c656830e1b1436395a1a9e32403d727c6cb7ab814c96de2c7b46d544cd2937f7ab2a7e05c87961d67e2783c757698b231e8c
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump_gem_version (0.1.1)
4
+ bump_gem_version (0.1.2)
5
5
  thor (~> 1.2)
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BumpGemVersion
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -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.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-22 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor