zewo-dev 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zewo/version.rb +1 -1
- data/lib/zewo.rb +7 -8
- 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: a9830ba42377f2a4417538f8f4c50e6d70414c7a
|
4
|
+
data.tar.gz: a882a97536215236b6f1d2af9e240193c59bfa51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e891c872a0ef743f1e51bcb6ca097f48805045331414feb28e6f42013d0037a2dff7d63beab099203d90e7ac4f5318e5a4b2303e3ac091ad9aa2017a331c1ba2
|
7
|
+
data.tar.gz: e3f271323dad47542f59e75006070ac8163d91ae7b4cfb27180a5366362058a7c93aaa9df76f0a20a3263aa9c2b7a85fb2b2c3bd70a917107bc0fa140304398b
|
data/lib/zewo/version.rb
CHANGED
data/lib/zewo.rb
CHANGED
@@ -217,7 +217,7 @@ module Zewo
|
|
217
217
|
end
|
218
218
|
|
219
219
|
def uncommited_changes?(repo_name)
|
220
|
-
!system("cd #{repo_name}; git diff --
|
220
|
+
!system("cd #{repo_name}; git diff --quiet HEAD")
|
221
221
|
end
|
222
222
|
|
223
223
|
def master_branch?(repo_name)
|
@@ -243,7 +243,7 @@ module Zewo
|
|
243
243
|
|
244
244
|
desc :pull, 'git pull on all repos'
|
245
245
|
def pull
|
246
|
-
|
246
|
+
each_code_repo_async do |repo|
|
247
247
|
print "Updating #{repo.name}..." + "\n"
|
248
248
|
if uncommited_changes?(repo.name)
|
249
249
|
print "Uncommitted changes in #{repo.name}. Not updating.".red + "\n"
|
@@ -258,7 +258,7 @@ module Zewo
|
|
258
258
|
def push
|
259
259
|
verify_branches
|
260
260
|
|
261
|
-
|
261
|
+
each_code_repo_async do |repo|
|
262
262
|
if uncommited_changes?(repo.name)
|
263
263
|
print "Uncommitted changes in #{repo.name}. Skipping.." + "\n"
|
264
264
|
next
|
@@ -283,7 +283,7 @@ module Zewo
|
|
283
283
|
|
284
284
|
desc :build, 'Clones all Zewo repositories'
|
285
285
|
def build
|
286
|
-
|
286
|
+
each_code_repo do |repo|
|
287
287
|
unless File.directory?("#{repo.name}/Xcode")
|
288
288
|
puts "Skipping #{repo.name}. No Xcode project".yellow
|
289
289
|
end
|
@@ -300,7 +300,7 @@ module Zewo
|
|
300
300
|
def commit(message)
|
301
301
|
return unless verify_branches
|
302
302
|
|
303
|
-
|
303
|
+
each_code_repo do |repo|
|
304
304
|
next unless uncommited_changes?(repo.name)
|
305
305
|
puts repo.name
|
306
306
|
puts '--------------------------------------------------------------'
|
@@ -310,11 +310,10 @@ module Zewo
|
|
310
310
|
return unless prompt("Proceed with #{repo.name}?")
|
311
311
|
end
|
312
312
|
|
313
|
-
system("cd #{repo.name}; git add --all; git commit -am #{message}")
|
313
|
+
system("cd #{repo.name}; git add --all; git commit -am \"#{message}\"")
|
314
314
|
puts "Commited #{repo.name}\n".green
|
315
315
|
end
|
316
|
-
if prompt('
|
317
|
-
pull
|
316
|
+
if prompt('Push changes?'.red)
|
318
317
|
push
|
319
318
|
end
|
320
319
|
end
|