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 +4 -4
- data/lib/commit.rb +1 -1
- data/lib/pull.rb +1 -1
- data/lib/push.rb +1 -1
- data/lib/spec.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cb115d9a4925358eb1742c21f0cf9c70f256555
|
4
|
+
data.tar.gz: 5ba4974dcc13fb66da4e2a55ec325d3712753663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"1.0.
|
1
|
+
{"name":"dev_tasks","version":"1.0.12"}
|