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.
- checksums.yaml +4 -4
- data/README.md +38 -0
- data/lib/zewo.rb +4 -1
- data/lib/zewo/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0710a87897259fe0523fa090153e93b67d5d408
|
4
|
+
data.tar.gz: a268ac4ec65d8a16bffab89cae5066d9a1ede65e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
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.
|
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
|