dev_tasks 0.0.98 → 0.0.99

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: 851578f68f513ea3fd3ff3cb31621e5c34c03fa3
4
- data.tar.gz: 33f349b25ad62bba2ee6cf9d63c269290ab9b0bd
3
+ metadata.gz: 2565ae36526cee75f52b7a42581b9ab0a61ef451
4
+ data.tar.gz: 65fa07abf856a904818ae23bf71e0c2b5384b213
5
5
  SHA512:
6
- metadata.gz: a2dcb8fa0605dd6dd91c156a94d603581371bacc74ce67f31ecffeca2149683bf6fd85a51c6df52c944983ef502d07600b94d581b348b109ebd3b1dc2a2bb896
7
- data.tar.gz: cbe7228ef045a2cb832f2dc82eec51396760c550343a49f3b3abd1f63e4e6fe4d04fb503c570c219bb7b8f6e36ff15890757f851e1db16ae3209208886067c6b
6
+ metadata.gz: 0ee1752dedd670676fc6d46f02d315192ff360027b3aae9832db0781182c256cb0f0a312612dff9a598a4f6ce243753e146953c52a575a4c3cf511f0cd568bc8
7
+ data.tar.gz: 35765094df50f0c01e3d68ac12454ba8220ef8c7da60f569ca21943f5671e159b14f6d01c52c10a8605f1ae8a03801ecbed5541f6f64f08cf56398a9ef6aff47
@@ -41,7 +41,7 @@ class Commands < Hash
41
41
  if $? != 0
42
42
  puts out
43
43
  raise Color.yellow + "`" + Color.green + command + Color.yellow + "`" + Color.clear +
44
- " has exit code " + $?.to_s
44
+ " has exit code " + $?.to_s + + " " + out
45
45
  else
46
46
  puts " " + timer.elapsed_str
47
47
  end
@@ -12,7 +12,7 @@ require_relative './timer.rb'
12
12
  require_relative './settings.rb'
13
13
  require_relative './text.rb'
14
14
 
15
- CLEAN.include('*.gem','bin/**/*.dll','bin/**/*.pdb','bin/**/*.exe')
15
+ CLEAN.include('log','*.gem','bin/**/*.dll','bin/**/*.pdb','bin/**/*.exe')
16
16
  CLOBBER.include('bin','obj','TestResults')
17
17
 
18
18
  class DevTasks < Hash
@@ -1,4 +1,5 @@
1
1
  require_relative('./environment.rb')
2
+ require 'time'
2
3
 
3
4
  class Pull < Array
4
5
 
@@ -8,7 +9,13 @@ class Pull < Array
8
9
 
9
10
  def update
10
11
  if(Environment.scm=='git')
11
- self.add "<%`git pull 2>&1`%>"
12
+ last_pull_time=nil
13
+ last_pull_time = Time.parse(File.read('log/last_pull').strip) if(File.exist?('log/last_pull'))
14
+ if(last_pull_time.nil? || (last_pull_time-Time.now) > 60*60*2)
15
+ self.add "<%`git pull 2>&1`%>"
16
+ self.add "<%Dir.mkdir('log') if(!File.exists?('log'))%>"
17
+ self.add "<%File.open('log/last_pull','w'){|f|f.puts(Time.now.to_s)}%>"
18
+ end
12
19
  end
13
20
  end
14
21
 
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.98"}
1
+ {"name":"dev_tasks","version":"0.0.99"}
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.98
4
+ version: 0.0.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow