bump_gem_version 0.1.3 → 0.1.4

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: 4cd19c397da6310e2469d6e7fd5cab35e0654e29bf879c6fcb41b6d192db4882
4
- data.tar.gz: 20fe21b1e32cb4592d1740268450b05526648e784475da8f5a21b39499c4b551
3
+ metadata.gz: 603350e913c2f96e977ab8322189623061ebae839f475f5d93714cb1f60954ab
4
+ data.tar.gz: d2e9d69fc1a178415ece01586ad5191bc25ad3dbd0a95561b338a62f4c339d45
5
5
  SHA512:
6
- metadata.gz: 6a43f03a98c67a1e84e576ded78d85e1c12812889d691547b0a59889d36f9c7b30d314d885149491652f0b64e874bd96e78d99fe3f5d53529c7cb4d969680f28
7
- data.tar.gz: c117e01b1a48a62bc4e6020b58553ef495a0f3db2a0c193cc23d0d5ad52f95bd8671415f914cc89ba1512f3bf53994dfe83841af31e0cdfc769e99ed97497750
6
+ metadata.gz: 42f4669eef2fb1fddffb56828504d47cdd859de40d828b8390875e7c5c17c71d936dc899c9ae7a12fe362f479e4037377655cc355befc85bdac4f915e946def1
7
+ data.tar.gz: 8fcf11e16d5a80046ed81522c050c5350a71e3bbf7aab3883c04ba776c7838d7281cd1a1a5b7ca0f42ed4ab54afa70b89db9ffee42b6165361a15e8f9a59ea30
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.4] - 2023-03-05
4
+
5
+ - Added: `exact` method to bump version to the given version.
6
+
3
7
  ## [0.1.3] - 2023-02-23
4
8
 
5
9
  - Changed: Bump version logic on `Gemfile.lock` file.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump_gem_version (0.1.3)
4
+ bump_gem_version (0.1.4)
5
5
  thor (~> 1.2)
6
6
 
7
7
  GEM
@@ -39,6 +39,7 @@ GEM
39
39
 
40
40
  PLATFORMS
41
41
  arm64-darwin-21
42
+ x86_64-linux
42
43
 
43
44
  DEPENDENCIES
44
45
  bump_gem_version!
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # BumpGemVersion
2
2
 
3
+ ![Gem Version](https://badge.fury.io/rb/bump_gem_version.svg)
4
+ ![Gem](https://img.shields.io/gem/dt/bump_gem_version?color=#6DBE42)
5
+
6
+
3
7
  BumpGemVersion is a gem that will simplify the way you build gems.
4
8
 
5
9
  ## Installation
@@ -32,6 +36,8 @@ bump_gem_version labels bug,patch # 0.1.0 -> 0.1.1
32
36
  bump_gem_version labels feature,minor,patch # 0.1.0 -> 0.2.0
33
37
  bump_gem_version labels breaking,major # 0.1.0 -> 1.0.0
34
38
  bump_gem_version labels ${{ join(github.event.pull_request.labels.*.name, ',') }} # For GitHub PR labels
39
+
40
+ bump_gem_version exact 1.2.3 # 0.1.0 -> 1.2.3
35
41
  ```
36
42
 
37
43
  ## Development
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BumpGemVersion
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -28,8 +28,17 @@ module BumpGemVersion
28
28
  bump_type ? bump_gem_version(bump_type) : puts("Error: Unable to find a valid bump label.")
29
29
  end
30
30
 
31
+ desc "exact", "Bump the version of your gem to the given version"
32
+ def exact(version) = bump_exact_version(version)
33
+
31
34
  private
32
35
 
36
+ def bump_exact_version(version)
37
+ file = current_version[1]
38
+ replace_version_in_file(file, version)
39
+ replace_version_in_gemfile_lock_file("Gemfile.lock", version)
40
+ end
41
+
33
42
  def bump_gem_version(bump_type)
34
43
  file = current_version[1]
35
44
  new_version = updated_version(bump_type)
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.3
4
+ version: 0.1.4
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-23 00:00:00.000000000 Z
11
+ date: 2023-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor