zewo-dev 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -0
  3. data/lib/zewo.rb +4 -1
  4. data/lib/zewo/version.rb +1 -1
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9830ba42377f2a4417538f8f4c50e6d70414c7a
4
- data.tar.gz: a882a97536215236b6f1d2af9e240193c59bfa51
3
+ metadata.gz: a0710a87897259fe0523fa090153e93b67d5d408
4
+ data.tar.gz: a268ac4ec65d8a16bffab89cae5066d9a1ede65e
5
5
  SHA512:
6
- metadata.gz: e891c872a0ef743f1e51bcb6ca097f48805045331414feb28e6f42013d0037a2dff7d63beab099203d90e7ac4f5318e5a4b2303e3ac091ad9aa2017a331c1ba2
7
- data.tar.gz: e3f271323dad47542f59e75006070ac8163d91ae7b4cfb27180a5366362058a7c93aaa9df76f0a20a3263aa9c2b7a85fb2b2c3bd70a917107bc0fa140304398b
6
+ metadata.gz: 7775f3b68dc8e51b9a36f8b34107817fa444bc262c4ba8f3eb09e6037eab56e9cc8f128dae638c2e5d4ab2b3bae2d54365eb3fe6435549bd84ede054b9bd6824
7
+ data.tar.gz: 53d97a60fd3077261f27006423666457cb4a327846d69dc13a8a586da6bfbca177720ed3e17f256303c37218d0f9ef2a7704fe51b840dcc43a0328d32eb1e3a1
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ zewo-dev
2
+ --------
3
+
4
+ `zewo-dev` is a tool to make developing Zewo modules and tracking their status easier.
5
+
6
+ The tool manages **only** modules including a `Package.swift` file, but checks out all the repositories in the Zewo organisation.
7
+
8
+ ## Installing
9
+ * Tool is built using Ruby.
10
+ * Requires you to have access to Github
11
+
12
+ `gem install zewo-dev`
13
+
14
+ ## Getting started
15
+ Create a directory in which you want to put all Zewo repositories, and move into it. Then run `zewo init`. This will clone all repositories in the Zewo organisation.
16
+
17
+ ```
18
+ mkdir zewo-development
19
+ cd zewo-development
20
+ zewodev init
21
+ ```
22
+
23
+ ## Xcode development
24
+ Run `zewodev make_projects` to generate Xcode projects for all Swift modules. Every time this command is run, the previously generated projects are removed entirely. Xcode files should not be pushed. Add `XcodeDevelopment` to `.gitignore` if not there already.
25
+
26
+ **Because the tool also adds modules as dependencies you can work on several repositories simultaneously.**
27
+
28
+ ## Checking status
29
+ `zewodev status` will show you the current status of all the repositories. Red means you have uncommitted changes, green means there are no uncommitted changes.
30
+
31
+
32
+ ## Committing
33
+ `zewodev commit MESSAGE` will take you through all repositories and perform `git add --all; git commit -am <MESSAGE>` after you've confirmed that the status of each repo looks ok. Commits are performed after you've confirmed **all** commits.
34
+
35
+ Lastly, you'll be prompted to push your changes.
36
+
37
+ ## Push & pull
38
+ `zewodev push` and `zewodev pull` will push and pull changes for all Swift modules.
data/lib/zewo.rb CHANGED
@@ -227,7 +227,7 @@ module Zewo
227
227
 
228
228
  desc :status, 'Get status of all repos'
229
229
  def status
230
- each_repo do |repo|
230
+ each_code_repo do |repo|
231
231
  str = repo.name
232
232
  if uncommited_changes?(repo.name)
233
233
  str = str.red
@@ -309,10 +309,13 @@ module Zewo
309
309
  system("cd #{repo.name}; git status")
310
310
  return unless prompt("Proceed with #{repo.name}?")
311
311
  end
312
+ end
312
313
 
314
+ each_code_repo do |repo|
313
315
  system("cd #{repo.name}; git add --all; git commit -am \"#{message}\"")
314
316
  puts "Commited #{repo.name}\n".green
315
317
  end
318
+
316
319
  if prompt('Push changes?'.red)
317
320
  push
318
321
  end
data/lib/zewo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zewo
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ask
@@ -109,6 +109,7 @@ files:
109
109
  - CODE_OF_CONDUCT.md
110
110
  - Gemfile
111
111
  - LICENSE.txt
112
+ - README.md
112
113
  - Rakefile
113
114
  - bin/console
114
115
  - bin/setup