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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/git-version-bump.rb +8 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6b89065c124d3880940d286e02a6019339126e61dbf0e87dea09dfc7beb2107
4
- data.tar.gz: d99b30535de16366c92b332a37b9cc3682540b7e861da5582ce4b850a3cf645c
3
+ metadata.gz: 7961b9892f52a3f81f7ab8139a5b7abbada99aaf08385e69f8e7f7b3837ceac5
4
+ data.tar.gz: 62dbd8304622224ead22650f1582f3784c0d145efa552f0fa02b3e27404f73a3
5
5
  SHA512:
6
- metadata.gz: d6a4ab696eba86296db5d49496a4786c8536eae960e6bf333aeaed9ba3b0608b945e867318b87409448b84d0054cd23070a29fd33b17815c43536ecc70b5ca78
7
- data.tar.gz: 877d4cda898df80e87dcaf7d7026e6386d64c2adf56131dca779b779fe8da1ef3224103316aa9289d8a8975d4dead1340852be4f36b984c288405cdea0bb74f6
6
+ metadata.gz: 947595356a2ecb64b0253499e3bed70283ed61f61937978126358a62eea97e30475083379cc3aa157474ffcdbe02401139263a353f35aa47d010af474a6fb7e2
7
+ data.tar.gz: 905fd3aee1dd1f5ef4900061c34607a4cd200c8a05f69eb659093dd84ce41ded6f29556f894b83882a9183a1b5a098bba6a6a4340c088fa8512e416155825f6f
@@ -299,12 +299,17 @@ module GitVersionBump
299
299
  private_class_method :caller_gemspec
300
300
 
301
301
  def self.gem_version
302
- caller_gemspec&.version&.to_s
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&.date&.strftime("%F")
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&.dirname || Dir.pwd
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.0
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-08-16 00:00:00.000000000 Z
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.1.6
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