git-version-bump 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-version-bump.rb +8 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7961b9892f52a3f81f7ab8139a5b7abbada99aaf08385e69f8e7f7b3837ceac5
|
4
|
+
data.tar.gz: 62dbd8304622224ead22650f1582f3784c0d145efa552f0fa02b3e27404f73a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 947595356a2ecb64b0253499e3bed70283ed61f61937978126358a62eea97e30475083379cc3aa157474ffcdbe02401139263a353f35aa47d010af474a6fb7e2
|
7
|
+
data.tar.gz: 905fd3aee1dd1f5ef4900061c34607a4cd200c8a05f69eb659093dd84ce41ded6f29556f894b83882a9183a1b5a098bba6a6a4340c088fa8512e416155825f6f
|
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
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-release
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.2.5
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Manage your app version entirely via git tags
|