rails_app_version 1.2.2 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bad17b9f85b940ae01cd9fe6dad8ef04143eba4780b79259e020339a754bdf6
4
- data.tar.gz: 651b75a9acc0c1afae576bcdbea83ef91bda0d4c7a36040dea64e2faac39c7cb
3
+ metadata.gz: bb48e4aced45b5ef329637e79b28124a30738a27150af084d32d10f648f9afd5
4
+ data.tar.gz: 004f482315db18e853c4f372bd480abf7b295c62fc6e49af1f970d046223ac2e
5
5
  SHA512:
6
- metadata.gz: 1a9c0d991be2a9d744101219b84fe45849ab39337163d516456b98e3f4b76ffdc64cf06e8de69dea1ec38f763dd9175797f04554fc27b0d67f3ea7dc7c6d5884
7
- data.tar.gz: 5aeafa9a3363f2fa6cb76b5034e09890385511db3cd6559d2880487cfcc1c2cd2cbefff8a95e5f9ff217722c6f515cd3961ebea0141f61a4fa318a11d38f6a8b
6
+ metadata.gz: b3002877e2c16298b37022d68ef7a1205321e16734f77c154f489450b9b464836dd02993fb8cbff1b68d861e276fad04e94685dfe0cc55d2cbb9ecf834da74fb
7
+ data.tar.gz: '09c8b2e6a8c7dbf311a3db7d0f47d3dd0fb6a2368dc34e6432bd1f612845118c0c8d235ab669a127988c8879eae0c01f674f5d8f83c1568d589bd774ca2c564c'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppVersion
4
- VERSION = "1.2.2"
4
+ VERSION = "1.2.4"
5
5
 
6
6
  class Version < Gem::Version
7
7
  attr_reader :major, :minor, :patch, :pre, :revision
@@ -16,6 +16,7 @@ module RailsAppVersion
16
16
 
17
17
  def full
18
18
  return to_s unless revision
19
+ return to_s if revision.to_s == "0"
19
20
  "#{self} (#{short_revision})"
20
21
  end
21
22
 
@@ -27,7 +28,7 @@ module RailsAppVersion
27
28
  end
28
29
 
29
30
  def short_revision
30
- revision.to_s.slice(0, 8)
31
+ revision.to_s.slice(0, 8).presence
31
32
  end
32
33
 
33
34
  def prerelease?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_app_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-12-31 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties