tachikoma 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4d465e1be54cdb74fab6cc28747f5f1ee089478
4
- data.tar.gz: 46f2f2189db781597509dfed32178d22d67ca9ef
3
+ metadata.gz: 6173f36c45efda317e6ebf39e40142a4ffcc9ed1
4
+ data.tar.gz: dc09afdcf0e7a92c7ed0853ffeaa93f640388b79
5
5
  SHA512:
6
- metadata.gz: 0baca61c11f85249c99ce0cdf4008af378ff371a2ce287f45f02a5da4d9b5f72049721b7ac3f93350f09e658866d0e09b5e63329772cf111863e4ea1d0406427
7
- data.tar.gz: 8b1cf0e97a43b86a40c672fcf74d064c46f3ea4bc824f9b6a0ae916dc424b9e7b46f777233c101157651d8625721dea8f0ae46cc18648ad8ba4f3166ff79d7aa
6
+ metadata.gz: f85a6fc6d1be52a1f7061beaacf960cbc0f9d1b98a2103b2fa8e8a18a372a044ab328eee5ea4a9b43502867d275a74c5b11b517b4075559d7c0507c9791bc97f
7
+ data.tar.gz: e505435b7bf9a9379d839c16a0d1c20737e45d379d463976f0267fa094f7721eada8c91a2123682aedd2c251510b299e0becfe4442efbdbe909c641f66579e63
@@ -2,6 +2,10 @@
2
2
 
3
3
  Features:
4
4
 
5
+ ## 5.1.0 (2017-02-08)
6
+
7
+ - Support Carthage (#282, @nakajijapan)
8
+
5
9
  ## 5.0.0 (2017-01-08)
6
10
 
7
11
  - Drop support for ruby 1.9
data/README.md CHANGED
@@ -22,7 +22,8 @@ You can use these strategies:
22
22
  - Bundler (Ruby)
23
23
  - Carton (Perl)
24
24
  - David (Node.js)
25
- - CocoaPods (Objective-C)
25
+ - CocoaPods (Objective-C, Swift)
26
+ - Carthage (Swift)
26
27
  - Composer (PHP)
27
28
  - None (without strategy)
28
29
 
@@ -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])
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  # Version of tachikoma
2
2
  module Tachikoma
3
- VERSION = '5.0.0'
3
+ VERSION = '5.1.0'
4
4
  end
@@ -36,4 +36,9 @@ namespace :tachikoma do
36
36
  task :run_cocoapods do
37
37
  Tachikoma::Application.run 'cocoapods'
38
38
  end
39
+
40
+ desc 'run tachikoma with carthage'
41
+ task :run_carthage do
42
+ Tachikoma::Application.run 'carthage'
43
+ end
39
44
  end
@@ -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.0.0
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-01-08 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml