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 +4 -4
- data/lib/nixenvironment/scm.rb +4 -2
- data/lib/nixenvironment/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1854a942fcd0763f98dac3febaedc9ce41909ef8f36a183b22155e12ae597447
|
4
|
+
data.tar.gz: fb6babdc92b77a9bbe918c7e28b7a12b415e227eb4cc73d49b199ceb9916570f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5d0fc3e45ba8b270ed1a487000e9e01559cc359030b52aa278666b8a27f2c39e10338070cc3a6758bf16298bd55f652aa58b2ef85ab0f2690a279fece31147
|
7
|
+
data.tar.gz: 45d9bfb866b6c26ac0f5c4de566bde91e2fcbcd64db9a26510ee3c3955eae7ac594eec3756eefa8c179d207519f13b5460a0575c4c10f6043447897119b2a30d
|
data/lib/nixenvironment/scm.rb
CHANGED
@@ -46,10 +46,12 @@ module Nixenvironment
|
|
46
46
|
end
|
47
47
|
else
|
48
48
|
# revision in datetime format
|
49
|
-
|
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 == ''
|
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.
|
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-
|
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
|
-
|
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
|