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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -1
- data/README.md +6 -0
- data/lib/bump_gem_version/version.rb +1 -1
- data/lib/bump_gem_version.rb +9 -0
- 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: 603350e913c2f96e977ab8322189623061ebae839f475f5d93714cb1f60954ab
|
4
|
+
data.tar.gz: d2e9d69fc1a178415ece01586ad5191bc25ad3dbd0a95561b338a62f4c339d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f4669eef2fb1fddffb56828504d47cdd859de40d828b8390875e7c5c17c71d936dc899c9ae7a12fe362f479e4037377655cc355befc85bdac4f915e946def1
|
7
|
+
data.tar.gz: 8fcf11e16d5a80046ed81522c050c5350a71e3bbf7aab3883c04ba776c7838d7281cd1a1a5b7ca0f42ed4ab54afa70b89db9ffee42b6165361a15e8f9a59ea30
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# BumpGemVersion
|
2
2
|
|
3
|
+

|
4
|
+

|
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
|
data/lib/bump_gem_version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|