nixenvironment 0.0.156 → 0.0.157

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: 9ad1d7906ed96fe0b293d09edc6bce6cfa9fcbb9daeea6ebfd3dbd2de12c6bb5
4
- data.tar.gz: 661688cd4cc89b7798186c8da78a1aa7d259cd6cbd935970aafef3cd13abd00c
3
+ metadata.gz: 1854a942fcd0763f98dac3febaedc9ce41909ef8f36a183b22155e12ae597447
4
+ data.tar.gz: fb6babdc92b77a9bbe918c7e28b7a12b415e227eb4cc73d49b199ceb9916570f
5
5
  SHA512:
6
- metadata.gz: fa899a703ba18d506c7e8d320cc022a509f4244b3a0332545c9a02ab50db60b2a599565b0098cc2d288a1b30dd868ae85b4c5cc626562954fc99ef9102f4fc62
7
- data.tar.gz: bd17bc802d68424bfcf1a3c38f8630e34296d67e2b10a65346780a9c11ee12c4809adaddf13717cb060d8e525e17b81cfefd80685777f4cec555ca1eea83e738
6
+ metadata.gz: 9d5d0fc3e45ba8b270ed1a487000e9e01559cc359030b52aa278666b8a27f2c39e10338070cc3a6758bf16298bd55f652aa58b2ef85ab0f2690a279fece31147
7
+ data.tar.gz: 45d9bfb866b6c26ac0f5c4de566bde91e2fcbcd64db9a26510ee3c3955eae7ac594eec3756eefa8c179d207519f13b5460a0575c4c10f6043447897119b2a30d
@@ -46,10 +46,12 @@ module Nixenvironment
46
46
  end
47
47
  else
48
48
  # revision in datetime format
49
- current_monotonic_revision = %x[ git log -1 --date=format:"%Y%m%d" --format="%ad" ]
49
+ git_commit_timestamp = %x[ git show -s --format=%ct #{last_revision_in_repo} ]
50
+ git_result = Time.at(git_commit_timestamp.to_i)
51
+ current_monotonic_revision = "#{git_result.year.to_s[2,2].to_i}#{git_result.month}#{git_result.day}.#{git_result.hour}#{git_result.min}#{git_result.sec}"
52
+ #current_monotonic_revision = %x[ git log -1 --date=format:"%Y%m%d.%H%M%S" --format="%ad" ]
50
53
  end
51
54
 
52
-
53
55
  status = %x[ git status --porcelain ]
54
56
 
55
57
  if status == ''
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.156'
2
+ VERSION = '0.0.157'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nixenvironment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.156
4
+ version: 0.0.157
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-22 00:00:00.000000000 Z
12
+ date: 2019-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods
@@ -336,7 +336,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
336
  - !ruby/object:Gem::Version
337
337
  version: '0'
338
338
  requirements: []
339
- rubygems_version: 3.0.3
339
+ rubyforge_project:
340
+ rubygems_version: 2.7.8
340
341
  signing_key:
341
342
  specification_version: 4
342
343
  summary: NIX projects build and deploy utility