git-maintain 0.5.0.pre.9.gae87d1a → 0.5.0.pre.11.g7c08aac
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +1 -0
- data/lib/branch.rb +21 -9
- data/lib/travis.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d77c8e6dedcb14bd6d4598218f99a05a4c38f83012cac2ecd0d50d8dc106d81
|
4
|
+
data.tar.gz: 8c744c16fbe487e788a75e6eb6e711ba3a847deef667340f1a5d0c65e60324db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc6fe26f35d9802c57521e3cf855680cd7f0b3cf15eb4c9795702967da29516569b93128ae2cfd3247e637b86e28b4165d759c9fc9c278b24465a50afe0c0d50
|
7
|
+
data.tar.gz: 9348465af84b807191623b171970c237da5c22b6c52c4388468c559d7a8f363254a97d2289007fd94ed921f843a25e876197c7940eb980f3bc11acf0d89be3b3
|
data/CHANGELOG
CHANGED
data/lib/branch.rb
CHANGED
@@ -49,6 +49,7 @@ module GitMaintain
|
|
49
49
|
opts[:all] = false
|
50
50
|
opts[:check_only] = false
|
51
51
|
opts[:no_fetch] = false
|
52
|
+
opts[:watch] = false
|
52
53
|
|
53
54
|
optsParser.on("-v", "--base-version [MIN_VER]", Integer, "Older release to consider.") {
|
54
55
|
|val| opts[:base_ver] = val}
|
@@ -74,6 +75,10 @@ module GitMaintain
|
|
74
75
|
optsParser.banner += "-m <suffix>"
|
75
76
|
optsParser.on("-m", "--merge [SUFFIX]", "Merge branch with suffix.") {
|
76
77
|
|val| opts[:do_merge] = val}
|
78
|
+
when :monitor, :monitor_stable
|
79
|
+
optsParser.on("-w", "--watch [PERIOD]", Integer,
|
80
|
+
"Watch and refresh travis status every <PERIOD>.") {
|
81
|
+
|val| opts[:watch] = val}
|
77
82
|
when :push
|
78
83
|
optsParser.banner += "[-f]"
|
79
84
|
optsParser.on("-f", "--force", "Add --force to git push (for 'push' action).") {
|
@@ -126,16 +131,23 @@ module GitMaintain
|
|
126
131
|
else
|
127
132
|
branchList = [ Branch::load(repo, opts[:manual_branch], travis, opts[:br_suff]) ]
|
128
133
|
end
|
129
|
-
branchList.each(){|branch|
|
130
|
-
if NO_CHECKOUT_ACTIONS.index(action) == nil then
|
131
|
-
puts "###############################"
|
132
|
-
puts "# Working on #{branch.verbose_name}"
|
133
|
-
puts "###############################"
|
134
134
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
135
|
+
loop do
|
136
|
+
system("clear; date") if opts[:watch] != false
|
137
|
+
branchList.each(){|branch|
|
138
|
+
if NO_CHECKOUT_ACTIONS.index(action) == nil then
|
139
|
+
puts "###############################"
|
140
|
+
puts "# Working on #{branch.verbose_name}"
|
141
|
+
puts "###############################"
|
142
|
+
|
143
|
+
branch.checkout()
|
144
|
+
end
|
145
|
+
branch.send(action, opts)
|
146
|
+
}
|
147
|
+
break if opts[:watch] == false
|
148
|
+
sleep(opts[:watch])
|
149
|
+
travis.emptyCache()
|
150
|
+
end
|
139
151
|
end
|
140
152
|
|
141
153
|
def initialize(repo, version, travis, branch_suff)
|
data/lib/travis.rb
CHANGED