paranoid_versioning 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a88b80b1fd2fc7a08388fe34e653e37d63491106
4
- data.tar.gz: ba0be8b2cba93210d7554cb4721106ab9d0d5cb8
3
+ metadata.gz: d7d68c92f41c074b476961b0f55903b8ad5772de
4
+ data.tar.gz: 10556b99ad98c545b612c043fe42e7feead5fd76
5
5
  SHA512:
6
- metadata.gz: 54109ba0584269fe93c3ad83fac1ae8f5ea3bb707ab2d48ca129ee681b4e85aabb074013019afcc0158a26630516e3d6db6491ad5b56746de959a44bd4349815
7
- data.tar.gz: 61b219f22bef5fa7fc84e97cf73590e4ecbf0fb8ab995412d0839350dd3b83706a21bad56194b56dc29a3f4f6931cb87ce2f79b21fcee8f2a0b54b032c16628b
6
+ metadata.gz: 348a4b2be7f94f40e7946d2e1f9a9c845656d14bec87134a4ab016fdd1a7ea857bc5b9e36bddaba048efe51822c9abf4056002259346df8bb1f0d14a90a4014b
7
+ data.tar.gz: 34ed8b4f04623f798c6cbc217ba3af1c2b5b76c6fc6d537df5eb65c6b234d40a1f133b32afaae89a8a4397b95330053d90a7aa3034f15899654b4633f23547bb
@@ -34,7 +34,7 @@ class ParanoidVersioning
34
34
 
35
35
  unless args[:build_date].nil?
36
36
  get_date = case args[:build_date]
37
- when 'git-revdate'
37
+ when 'git-revdate', ''
38
38
  get_revdate_from_git
39
39
  else
40
40
  args[:build_date].to_s
@@ -99,14 +99,14 @@ class ParanoidVersioning
99
99
  def to_s
100
100
  if @format
101
101
  str = eval(@format.to_s.inspect)
102
- else
102
+ else
103
103
  str = "#{major}.#{minor}"
104
104
  str << ".#{patch}" unless patch.nil?
105
105
  str << ".#{milestone} " unless milestone.nil?
106
106
  str << "(#{build}) " unless build.nil?
107
- str << "of #{branch}" unless branch.nil?
108
- str << "by #{commiter} " unless commiter.nil?
109
- str << "on #{build_date}" unless build_date.nil?
107
+ str << " of #{branch}" unless branch.nil?
108
+ str << " by #{commiter} " unless commiter.nil?
109
+ str << " on #{build_date.strftime('%d/%m/%Y')}" unless build_date.nil?
110
110
  end
111
111
  str
112
112
  end
@@ -2,3 +2,4 @@
2
2
  # major: Cambio mayor
3
3
  # minor: Cambios minimos
4
4
  # patch: Cambios criticos o parches
5
+ # build_date: Fecha de git colocar 'git-revdate' o dejar vacio ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoid_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristian Ramirez
@@ -18,7 +18,7 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - lib/paranoid_versioning.rb
20
20
  - lib/templates/version.yml
21
- homepage: ''
21
+ homepage: https://github.com/CristianRP/ParanoidVersioning
22
22
  licenses:
23
23
  - MIT
24
24
  metadata: {}