git-version-bump 0.19.0 → 0.19.1.1.g69f2ead
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/SECURITY.md +10 -0
- data/lib/git-version-bump.rb +8 -3
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09f27ab1449602482f072406e84e89fe3a34751e1d14debe2ea4a08d1afa765c'
|
4
|
+
data.tar.gz: d992da805269d408012e6e98713646e3db2c583415eb6b76f501a8eeb2b74a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4150a6af63c24b5ad421c335fd0a173fe0ed6660bfe5fa7f19f35928ead4725503e5331df752b9de72b9e1a21502f94ebd3c59e05b7621abcb49e49ff78d72
|
7
|
+
data.tar.gz: c599616a56c8889792fbd3e991b118756dfefd348c0f4872c34d9f9eefbeb0a95d8a87c01cabde51f6155ce4ce1b79712815d75e7b134a52662ec71782b1dc09
|
data/SECURITY.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
Security updates will be made to the latest released version.
|
6
|
+
|
7
|
+
## Reporting a Vulnerability
|
8
|
+
|
9
|
+
If you have found a vulnerability in this codebase, nice one!
|
10
|
+
Please report it by creating [a new draft advisory](https://github.com/mpalmer/git-version-bump/security/advisories/new), and we'll take it from there.
|
data/lib/git-version-bump.rb
CHANGED
@@ -299,12 +299,17 @@ module GitVersionBump
|
|
299
299
|
private_class_method :caller_gemspec
|
300
300
|
|
301
301
|
def self.gem_version
|
302
|
-
caller_gemspec
|
302
|
+
return nil if caller_gemspec.nil?
|
303
|
+
|
304
|
+
caller_gemspec.version.to_s
|
303
305
|
end
|
304
306
|
private_class_method :gem_version
|
305
307
|
|
306
308
|
def self.gem_date
|
307
|
-
caller_gemspec
|
309
|
+
return nil if caller_gemspec.nil?
|
310
|
+
return nil if caller_gemspec.date.nil?
|
311
|
+
|
312
|
+
caller_gemspec.date.strftime("%F")
|
308
313
|
end
|
309
314
|
private_class_method :gem_version
|
310
315
|
|
@@ -365,7 +370,7 @@ module GitVersionBump
|
|
365
370
|
if use_local_dir
|
366
371
|
Dir.pwd
|
367
372
|
else
|
368
|
-
caller_file
|
373
|
+
(caller_file && caller_file.dirname) || Dir.pwd
|
369
374
|
end.tap { |d| p :GVB_GIT_DIR, use_local_dir, d if debug? }
|
370
375
|
end
|
371
376
|
private_class_method :git_dir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-version-bump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1.1.g69f2ead
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-release
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- LICENCE
|
81
81
|
- README.md
|
82
82
|
- Rakefile
|
83
|
+
- SECURITY.md
|
83
84
|
- bin/git-version-bump
|
84
85
|
- git-version-bump.gemspec
|
85
86
|
- lib/git-version-bump.rb
|
@@ -99,9 +100,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
100
|
version: 2.1.0
|
100
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
102
|
requirements:
|
102
|
-
- - "
|
103
|
+
- - ">"
|
103
104
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
+
version: 1.3.1
|
105
106
|
requirements: []
|
106
107
|
rubygems_version: 3.1.6
|
107
108
|
signing_key:
|