dev_tasks 0.0.73 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dev_tasks.rb +5 -5
- data/lib/spec.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2c5ff77f0f49de3eda41418b30cf623c4b66cb7
|
4
|
+
data.tar.gz: d37f67a10f793a8655410cae6a05d30252f01771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03994afc362ce620cf18b6717bc314bd2b0ca431c24d4b515ec7b011eae02acd567be280f9bb691e7654b9d504e9e557a2c9040942478db262409972820ac075
|
7
|
+
data.tar.gz: 6753304b5edde0f2cf7f5fc703649be2ef194b06a911bcb74a20e6ce0c4a9f4cbb6c83e834c2af1cc78dd3394218a84924237b8a74bcf325961193dd9ef90a71
|
data/lib/dev_tasks.rb
CHANGED
@@ -49,18 +49,18 @@ class DevTasks < Hash
|
|
49
49
|
self[:artifacts]=Artifacts.new if !has_key?(:artifacts)
|
50
50
|
allartifactsexist = true
|
51
51
|
self[:artifacts].each{|f| allartifactsexist=false if !File.exists?(f)}
|
52
|
-
self[:
|
52
|
+
self[:newest_artifact]=self[:artifacts].max_by { |f| File.mtime(f) } if allartifactsexist
|
53
53
|
|
54
54
|
self[:commands]=Commands.new if !has_key?(:commands)
|
55
55
|
self[:commands].update
|
56
56
|
|
57
57
|
self[:up_to_date] = false
|
58
|
-
if(allartifactsexist && !self[:
|
59
|
-
if(File.mtime(self[:
|
60
|
-
self[:command_order]=['pull'] if(File.mtime(self[:
|
58
|
+
if(allartifactsexist && !self[:newest_artifact].nil? && !self[:newest_src_file].nil? && File.exists?(self[:newest_artifact]) && File.exists?(self[:newest_src_file]))
|
59
|
+
if(File.mtime(self[:newest_artifact]) > File.mtime(self[:newest_src_file]))
|
60
|
+
self[:command_order]=['pull'] if(File.mtime(self[:newest_artifact]) > File.mtime(self[:newest_src_file]))
|
61
61
|
self[:up_to_date]=true
|
62
62
|
end
|
63
|
-
self[:
|
63
|
+
self[:newest_artifact_mtime]=File.mtime(self[:newest_artifact]).to_s
|
64
64
|
self[:newest_src_file_mtime]=File.mtime(self[:newest_src_file]).to_s
|
65
65
|
end
|
66
66
|
update_tasks
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.74"}
|