dev_tasks 1.0.11 → 1.0.12

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: 9f42219c30c7167152c49657bdf1a131778d9337
4
- data.tar.gz: ac1e5b7319ee46d60769fd2ee60a2c4bc75f7e8b
3
+ metadata.gz: 2cb115d9a4925358eb1742c21f0cf9c70f256555
4
+ data.tar.gz: 5ba4974dcc13fb66da4e2a55ec325d3712753663
5
5
  SHA512:
6
- metadata.gz: 10f70540656e604197b00d065942cf72c4487be17e02b4d3a85a6adba2d4368f0d872068fc47d39e1e92a416a85854f3c45385f66d2741f41a8533fcd252525d
7
- data.tar.gz: fde40afb1c85950181c285ed217e9d5edd288f4e9676ca1bc79496913d456f4d2b8666e3333801a72afd3e3ba7c7ac75f33a7199e89c102457230a2c8c5a379a
6
+ metadata.gz: e3364b4740716b8b30afe9699fdba9cfd762713dcd37497f6a31e21a5a99ccf1efe52014c0a061e811f7811232e71ce81b7e720675dc4f4124277b23946e51c3
7
+ data.tar.gz: 675ee56250e1f5c4713604c4bb3753abed369ee312638bc408d897a571184660e196115633364133cc44761be94d78774948a2a893fa05295bb51bca807b4080
data/lib/commit.rb CHANGED
@@ -3,7 +3,7 @@ require_relative('./environment.rb')
3
3
 
4
4
  class Commit < CommandArray
5
5
  def update
6
- if(Dir.exists?(".git"))
6
+ if(Dir.exists?(".git") && `git config --list`.include?('user.name='))
7
7
  if(`git status`.include?('nothing to commit') || `git status`.include?('untracked files present'))
8
8
  # skip
9
9
  else
data/lib/pull.rb CHANGED
@@ -4,7 +4,7 @@ require 'time'
4
4
 
5
5
  class Pull < CommandArray
6
6
  def update
7
- if(Environment.scm=='git' && Environment.scm_origin.length > 0)
7
+ if(Environment.scm=='git' && Environment.scm_origin.length > 0 && `git config --list`.include?('user.name='))
8
8
  if(Timer.elapsed_exceeds?("last_pull",60*60*2))
9
9
  #if(Timer.get_elapsed("last_pull").nil? || Timer.get_elapsed("last_pull") > 60*60*2)
10
10
  self.add "<%`git pull 2>&1`%>"
data/lib/push.rb CHANGED
@@ -3,7 +3,7 @@ require_relative('./environment.rb')
3
3
 
4
4
  class Push < CommandArray
5
5
  def update
6
- if(Environment.scm=='git')
6
+ if(Environment.scm=='git' && `git config --list`.include?('user.name='))
7
7
  if(`git diff @{u}`.include?('diff'))
8
8
  self.add "<%`git push 2>&1`%>"
9
9
  end
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"1.0.11"}
1
+ {"name":"dev_tasks","version":"1.0.12"}
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: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow