dev_tasks 0.0.112 → 0.0.113

Sign up to get free protection for your applications and to get access to all the features.
data/lib/artifacts.rb CHANGED
@@ -32,5 +32,15 @@ class Artifacts < Array
32
32
  }
33
33
  end
34
34
  }
35
+ update
36
+ end
37
+
38
+ def update
39
+ # C++ dll,lib,h,hpp
40
+ if(Dir.glob("**/*.{vcproj,vcxproj}").length > 0)
41
+ Dir.glob("**/*.{lib,dll,h,hpp}").each{|f|
42
+ self << f
43
+ }
44
+ end
35
45
  end
36
46
  end
data/lib/dev_tasks.rb CHANGED
@@ -49,6 +49,7 @@ class DevTasks < Hash
49
49
  def update
50
50
  self[:dependencies]=Dependencies.new if !has_key?(:dependencies)
51
51
  self[:artifacts]=Artifacts.new if !has_key?(:artifacts)
52
+ self[:artifacts].update
52
53
  allartifactsexist = true
53
54
  self[:artifacts].each{|f| allartifactsexist=false if !File.exists?(f)}
54
55
  self[:newest_artifact]=self[:artifacts].max_by { |f| File.mtime(f) } if allartifactsexist
@@ -155,6 +156,7 @@ end
155
156
 
156
157
  desc 'displays information about current rake directory'
157
158
  task :info do
159
+ DEV_TASKS.update
158
160
  Console.print_hash("",DEV_TASKS)
159
161
  end
160
162
 
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.112"}
1
+ {"name":"dev_tasks","version":"0.0.113"}
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.112
4
+ version: 0.0.113
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: