zewo-dev 0.1.8 → 0.2.0
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/README.md +1 -1
- data/lib/zewo/version.rb +1 -1
- data/lib/zewo.rb +15 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c44e142dac8ba152c983e0af01c2b666762beaf1
|
4
|
+
data.tar.gz: 9eb785b29a27335363d8bf9b0629c40a4ca6bbac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d280d746810ffe639d9dc4bdc64308677d4faa59de4a76aa795fc0467958a9d854e928545d4b1d56fba68e69fa0fbc3ca26050bdfd9b054c82a237f2177b69
|
7
|
+
data.tar.gz: 6e7600763780ecda4420e8047a9d45e734fca4ab62fde6ffaf7e759f1e3a201f8c2856e189b70514a46ee893b1d7cc408f64d24ec5b3dd2bdfebe0dbd1451e85
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ Run `zewodev make_projects` to generate Xcode projects for all Swift modules. Ev
|
|
29
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
30
|
|
31
31
|
|
32
|
-
## Committing
|
32
|
+
## Committing
|
33
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
34
|
|
35
35
|
Lastly, you'll be prompted to push your changes.
|
data/lib/zewo/version.rb
CHANGED
data/lib/zewo.rb
CHANGED
@@ -36,6 +36,15 @@ module Zewo
|
|
36
36
|
xcode_project.native_targets.find { |t| t.name == target_name } || xcode_project.new_target(:framework, target_name, :osx)
|
37
37
|
end
|
38
38
|
|
39
|
+
def test_target
|
40
|
+
target_name = "#{framework_target.name}-Test"
|
41
|
+
xcode_project.native_targets.find { |t| t.name == target_name } || xcode_project.new_target(:bundle, target_name, :osx)
|
42
|
+
end
|
43
|
+
|
44
|
+
def tests_dir
|
45
|
+
"Tests"
|
46
|
+
end
|
47
|
+
|
39
48
|
def xcode_dir
|
40
49
|
"#{name}/XcodeDevelopment"
|
41
50
|
end
|
@@ -119,6 +128,11 @@ module Zewo
|
|
119
128
|
add_files("#{name}/#{sources_dir}/*", group, framework_target)
|
120
129
|
end
|
121
130
|
|
131
|
+
if File.directory?("#{name}/#{tests_dir}")
|
132
|
+
group = xcode_project.new_group(tests_dir)
|
133
|
+
add_files("#{name}/#{tests_dir}/*", group, test_target)
|
134
|
+
end
|
135
|
+
|
122
136
|
xcode_project.save
|
123
137
|
end
|
124
138
|
end
|
@@ -249,7 +263,7 @@ module Zewo
|
|
249
263
|
print "Uncommitted changes in #{repo.name}. Not updating.".red + "\n"
|
250
264
|
next
|
251
265
|
end
|
252
|
-
|
266
|
+
system("cd #{repo.name}; git pull")
|
253
267
|
print "Updated #{repo.name}".green + "\n"
|
254
268
|
end
|
255
269
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zewo-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Ask
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|