bump_gem_version 0.1.0 → 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: ad0550bc2557d62c3f4ab1c3fab32dc2264ddc4ce53d91c734d28f8ab0b445f2
4
- data.tar.gz: 8f2ca0587a78825fb836d50699cb6e5ce6c72f9369a0c160f1c92b35f3c94485
3
+ metadata.gz: 9e6e6bd836142436daedc45258add017129faf0ea4a98fde70dc4e70f2c74b2e
4
+ data.tar.gz: 3ce8df40df36875b534fb3a10342faa537f6d3ecf7c801ec4661d961bb8e1621
5
5
  SHA512:
6
- metadata.gz: 309344e65d8fa9ea7aa2949abadca3e357e61ec00e69c951a057ba39a4081bc683e70dbea62ba0540057581793b1346cfcd747f186fc0eea6610decad8888454
7
- data.tar.gz: 202612c496d41b914739645b2638e9e1feb8ab9d3cf5a3311adbf6c93547000237e79f523afd95d9e30acaa6adaf02519f9d3c83db1b04493b0b16d40d5f9d66
6
+ metadata.gz: 7f6f40920043f44e0a8cda4b077928b7c825c6c6d7bef3938982e20a71708b75ea86c0b5f65f5f6b70449d08eef5d934f87d730e04dba140f19f46837a05cac6
7
+ data.tar.gz: dd4f17cbaa4ad8acdd9386b283c96218938dc7530d11f205f5a89af1162f8da644398947df4e5aa19273c624d18725de22b1c2ea298c9da5e5ea6fe8d31f69d2
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ require:
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.2
7
+ TargetRubyVersion: 3.1
8
8
 
9
9
  Style/StringLiterals:
10
10
  Enabled: true
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.3
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.0)
4
+ bump_gem_version (0.1.2)
5
5
  thor (~> 1.2)
6
6
 
7
7
  GEM
@@ -17,14 +17,14 @@ GEM
17
17
  rake (13.0.6)
18
18
  regexp_parser (2.7.0)
19
19
  rexml (3.2.5)
20
- rubocop (1.45.1)
20
+ rubocop (1.46.0)
21
21
  json (~> 2.3)
22
22
  parallel (~> 1.10)
23
23
  parser (>= 3.2.0.0)
24
24
  rainbow (>= 2.2.2, < 4.0)
25
25
  regexp_parser (>= 1.8, < 3.0)
26
26
  rexml (>= 3.2.5, < 4.0)
27
- rubocop-ast (>= 1.24.1, < 2.0)
27
+ rubocop-ast (>= 1.26.0, < 2.0)
28
28
  ruby-progressbar (~> 1.7)
29
29
  unicode-display_width (>= 2.4.0, < 3.0)
30
30
  rubocop-ast (1.26.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BumpGemVersion
4
- VERSION = "0.1.0"
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.0
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
@@ -103,6 +103,7 @@ extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
105
  - ".rubocop.yml"
106
+ - ".ruby-version"
106
107
  - CHANGELOG.md
107
108
  - CODE_OF_CONDUCT.md
108
109
  - Gemfile
@@ -130,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
131
  requirements:
131
132
  - - ">="
132
133
  - !ruby/object:Gem::Version
133
- version: '3.2'
134
+ version: '3.1'
134
135
  required_rubygems_version: !ruby/object:Gem::Requirement
135
136
  requirements:
136
137
  - - ">="