rails_app_version 1.2.1 → 1.2.3

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: f0113f2ae9ce34c5fcbb45f7d55c02345cba3783b2ea2591006bd373191b48ea
4
- data.tar.gz: 3892b19123b2c479f92a3479f4bcc17ce5a96aa146e9cae8997cd8d1d36ef31f
3
+ metadata.gz: 15105720ee10687b3f5b90649d7c08bed8e9c89fa6a8bc52636b3515594f3b99
4
+ data.tar.gz: 8f7290eafcafaf2db6ef94dbeb4c116055c0e77f6ebfe55944fa87ccc79dbc03
5
5
  SHA512:
6
- metadata.gz: 927b60eb8ddeae0e19ece3f442cc81fb09a68e879f96a5e9cb70a487215432c9324fd1c938ea81ae062d77001901af9755bf9649ed60d77fc87f2c6d5285196a
7
- data.tar.gz: e71614418c799ad88bfb4039463070a2e025d11baf47c68e29e51ffcba0b7ff4a329630cc8018579e95ff2ee651ba7ef6bacb8024f5061e4d5bd981009a2825f
6
+ metadata.gz: f7a0c17c85adeec22cf75abef6ff4c8053650a5eeec735cff0b206eb3fe4c43ed8e21d6de27fc8260e51b5aea435e2377e6f969b91885c31fb48566867022e7d
7
+ data.tar.gz: e217c188d484795a56ef85ef857761cd8ca35f01b06b57d6985edb9cbc8730a849c1a6143944c436062e2e954e3730430e1d554305bd8dc20cc7ffcfbf477a39
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppVersion
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.3"
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&.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.1
4
+ version: 1.2.3
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