tachikoma 5.0.0 → 5.1.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/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/lib/tachikoma/application.rb +15 -0
- data/lib/tachikoma/cli.rb +1 -0
- data/lib/tachikoma/version.rb +1 -1
- data/lib/tasks/app.rake +5 -0
- data/spec/tachikoma/application_spec.rb +13 -0
- 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: 6173f36c45efda317e6ebf39e40142a4ffcc9ed1
|
4
|
+
data.tar.gz: dc09afdcf0e7a92c7ed0853ffeaa93f640388b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85a6fc6d1be52a1f7061beaacf960cbc0f9d1b98a2103b2fa8e8a18a372a044ab328eee5ea4a9b43502867d275a74c5b11b517b4075559d7c0507c9791bc97f
|
7
|
+
data.tar.gz: e505435b7bf9a9379d839c16a0d1c20737e45d379d463976f0267fa094f7721eada8c91a2123682aedd2c251510b299e0becfe4442efbdbe909c641f66579e63
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -191,6 +191,21 @@ module Tachikoma
|
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
194
|
+
def carthage
|
195
|
+
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
|
196
|
+
sh(*['git', 'config', 'user.name', @commiter_name])
|
197
|
+
sh(*['git', 'config', 'user.email', @commiter_email])
|
198
|
+
sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch])
|
199
|
+
sh(*%w(carthage bootstrap))
|
200
|
+
sh(*%w(carthage update))
|
201
|
+
sh(*['git', 'add', 'Cartfile.resolved'])
|
202
|
+
sh(*['git', 'commit', '-m', "Carthage update #{@readable_time}"]) do
|
203
|
+
# ignore exitstatus
|
204
|
+
end
|
205
|
+
sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"])
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
194
209
|
def cocoapods
|
195
210
|
Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
|
196
211
|
sh(*['git', 'config', 'user.name', @commiter_name])
|
data/lib/tachikoma/cli.rb
CHANGED
@@ -59,6 +59,7 @@ Tasks:
|
|
59
59
|
rake tachikoma:run_david # run tachikoma with david
|
60
60
|
rake tachikoma:run_composer # run tachikoma with composer
|
61
61
|
rake tachikoma:run_cocoapods # run tachikoma with cocoapods
|
62
|
+
rake tachikoma:run_carthage # run tachikoma with carthage
|
62
63
|
USAGE
|
63
64
|
end
|
64
65
|
|
data/lib/tachikoma/version.rb
CHANGED
data/lib/tasks/app.rake
CHANGED
@@ -98,6 +98,19 @@ YAML
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
context 'if strategy is `carthage`' do
|
102
|
+
before do
|
103
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:load)
|
104
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
|
105
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
|
106
|
+
end
|
107
|
+
|
108
|
+
it 'should be called `carthage` method' do
|
109
|
+
expect_any_instance_of(Tachikoma::Application).to receive(:carthage)
|
110
|
+
Tachikoma::Application.run 'carthage'
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
101
114
|
context 'if strategy is `cocoapods`' do
|
102
115
|
before do
|
103
116
|
allow_any_instance_of(Tachikoma::Application).to receive(:load)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tachikoma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|