dev 2.0.244 → 2.0.245

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
  SHA1:
3
- metadata.gz: 87aa63c2a65be4a2df455d94fbd0d8f774cf3876
4
- data.tar.gz: 93be1f84ba9560a048f752d5e414e3f74cd06a91
3
+ metadata.gz: 0696af802caea5a3ca7d2a2250ec53b1c42924fc
4
+ data.tar.gz: 0bbec77ed386b550e870a2795ba79a65d09540f1
5
5
  SHA512:
6
- metadata.gz: 7a3a988a05ac1c8e4f2e74a2761cdaa68ff635a2a6ca0d31658403006c76d746a2827da8eaf3376e155682108b3b0dc5947049e7e421fd8520d72ce576b884e8
7
- data.tar.gz: e32f38d84c8e72e5315d1ac48ef7156f44721468bf899d28b59912757abe8a6c48943b22a0b603fc641d9916d9f4f2f0863972d185e0251e4ba8d8bf68ec4ca6
6
+ metadata.gz: 1f336fc23c98eb4def911dafd9b536f92812a1b8748c560be14d4d353dbe1be9afa2c13256af1fef5bfa7ddddcee978c25091856764bbf51008abe27eeaa27eb
7
+ data.tar.gz: 52d6d686e2b3f692b2e21ec9ae70e9464f9d09019d2c46a4a25a4ec76b822c7d687ba4805ac0978af40cd0a164e171a6282e1f555fde9ca332c25d48227a93ff
data/lib/base/project.rb CHANGED
@@ -94,20 +94,6 @@ class Project < Hash
94
94
  end
95
95
  end
96
96
 
97
- def fails
98
- Dir.chdir("#{Environment.dev_root}/log/#{self.fullname}") do
99
- Dir.glob("**/#{Environment.user}@#{Environment.machine}.json").each{|logfile|
100
- command=Command.new
101
- command.open(logfile)
102
- if(command.has_key?(:exit_code) && command[:exit_code] != 0)
103
- puts command[:directory]
104
- end
105
- }
106
- end
107
- #wrk_logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
108
- #logfile="#{Environment.dev_root}/log/#{self.fullname}/#{tag}/#{Environment.user}@#{Environment.machine}.json"
109
- end
110
-
111
97
  def info
112
98
  puts "Project #{name}"
113
99
  puts "#{'fullname'.fix(13)}: #{self.fullname}"
@@ -202,6 +188,7 @@ class Project < Hash
202
188
  if(File.exists?(wrk_dir))
203
189
  if(last_work_mtime.nil? || last_work_mtime < Environment.get_latest_mtime(wrk_dir))
204
190
  Dir.chdir(wrk_dir) do
191
+ puts "working #{k}"
205
192
  rake_default=Command.new('rake default')
206
193
  rake_default[:quiet]=true
207
194
  rake_default[:ignore_failure]=true
@@ -210,7 +197,15 @@ class Project < Hash
210
197
  logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
211
198
  FileUtils.mkdir_p(File.dirname(logfile)) if !File.exists?(File.dirname(logfile))
212
199
  File.open(logfile,'w'){|f|f.write(rake_default.to_json)}
200
+ puts rake_default.summary
213
201
  end
202
+ else
203
+ logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
204
+ if(File.exists?(logfile))
205
+ rake_default=Command.new
206
+ rake_default.open logfile
207
+ puts rake_default.summary
208
+ end
214
209
  end
215
210
  end
216
211
  end
data/lib/base/projects.rb CHANGED
@@ -60,23 +60,12 @@ class Projects < Hash
60
60
  if filter.nil? || filter.length==0 || k.include?(filter)
61
61
  log_filename=
62
62
  last_work_time=nil
63
- puts "working #{k}"
63
+ #puts "working #{k}"
64
64
  v.work
65
65
  end
66
66
  }
67
67
  end
68
68
 
69
- def fails args
70
- filter=''
71
- filter=args[1] if !args.nil? && args.length > 0
72
- self.each{|k,v|
73
- if filter.nil? || filter.length==0 || k.include?(filter)
74
- log_filename=
75
- v.fails
76
- end
77
- }
78
- end
79
-
80
69
  def self.user_projects_filename
81
70
  FileUtils.mkdir("#{Environment.dev_root}/data") if(!File.exists?("#{Environment.dev_root}/data"))
82
71
  "#{Environment.dev_root}/data/PROJECTS.json"
data/lib/tasks/clean.rb CHANGED
@@ -3,7 +3,6 @@ puts __FILE__ if defined?(DEBUG)
3
3
  require 'rake/clean'
4
4
  # Clean Files
5
5
  CLEAN.include('**/*.{sdf,sud,ncb,cache,user,wixobj,wixpdb}')
6
- CLEAN.include('rake.default')
7
6
 
8
7
  # Clean Folders
9
8
  CLEAN.include('obj') if File.exists?('obj')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.244
4
+ version: 2.0.245
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow