dev_tasks 0.0.73 → 0.0.74

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dev_tasks.rb +5 -5
  3. data/lib/spec.json +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66dea59363001c9459e10a39ef93d62e98f64cbf
4
- data.tar.gz: 35e7d5aaff9567c516cc8a0abf2458c7fd2fb716
3
+ metadata.gz: b2c5ff77f0f49de3eda41418b30cf623c4b66cb7
4
+ data.tar.gz: d37f67a10f793a8655410cae6a05d30252f01771
5
5
  SHA512:
6
- metadata.gz: 3992ce37dd635af1ae866951252b8ff39c42824bd5ef0d7ff79c343f9dadab121c730b4bfcd560c15bf66cea0b2188d049d8a30818dd046f6e21b6e68271de5b
7
- data.tar.gz: 1f85734c8e46b521867d057dd9a0337e3100b966996ebf4f059d871b26a3bab8cab4e53e018cbf140f4800af82ff3006c71cccac58139715d2d9a0d1db868314
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[:oldest_artifact]=self[:artifacts].min_by { |f| File.mtime(f) } if allartifactsexist
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[:oldest_artifact].nil? && !self[:newest_src_file].nil? && File.exists?(self[:oldest_artifact]) && File.exists?(self[:newest_src_file]))
59
- if(File.mtime(self[:oldest_artifact]) > File.mtime(self[:newest_src_file]))
60
- self[:command_order]=['pull'] if(File.mtime(self[:oldest_artifact]) > File.mtime(self[:newest_src_file]))
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[:oldest_artifact_mtime]=File.mtime(self[:oldest_artifact]).to_s
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.73"}
1
+ {"name":"dev_tasks","version":"0.0.74"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.73
4
+ version: 0.0.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow