zewo-dev 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zewo/version.rb +1 -1
  3. data/lib/zewo.rb +7 -8
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3673c4a0a82ab3e0b7ba26200dc9eca647b941fc
4
- data.tar.gz: 344a5d2eae09e3bfb08603ef9f72e4b91cfc5fc7
3
+ metadata.gz: a9830ba42377f2a4417538f8f4c50e6d70414c7a
4
+ data.tar.gz: a882a97536215236b6f1d2af9e240193c59bfa51
5
5
  SHA512:
6
- metadata.gz: fa29300400d55b66493e9bb55e4f5e23dc6dbc5aced2003a490a67cee0f4cabe6968c5b0d050c9d813cd8a65c1ad237e5884f472e243d2fd9388ea36dd1232c1
7
- data.tar.gz: d0a4f3e869c1edccdef1c723280a7b6d798ace07f2bbcac97e05335c2a0cef37b76e639c95594eeacdd51a25072636c7b762a762bcf0b3023409b2d228323391
6
+ metadata.gz: e891c872a0ef743f1e51bcb6ca097f48805045331414feb28e6f42013d0037a2dff7d63beab099203d90e7ac4f5318e5a4b2303e3ac091ad9aa2017a331c1ba2
7
+ data.tar.gz: e3f271323dad47542f59e75006070ac8163d91ae7b4cfb27180a5366362058a7c93aaa9df76f0a20a3263aa9c2b7a85fb2b2c3bd70a917107bc0fa140304398b
data/lib/zewo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zewo
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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 --exit-code --quiet")
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
- each_repo_async do |repo|
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
- each_repo_async do |repo|
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
- each_repo do |repo|
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
- each_repo do |repo|
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('Pull & push changes?'.red)
317
- pull
316
+ if prompt('Push changes?'.red)
318
317
  push
319
318
  end
320
319
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zewo-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ask