tachikoma 5.1.0 → 5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6173f36c45efda317e6ebf39e40142a4ffcc9ed1
4
- data.tar.gz: dc09afdcf0e7a92c7ed0853ffeaa93f640388b79
3
+ metadata.gz: 0b22bd55e09ac2208af4a427c2bb94b97c0d5c06
4
+ data.tar.gz: 579f0d91922f76368328af86fe49320d4165e81b
5
5
  SHA512:
6
- metadata.gz: f85a6fc6d1be52a1f7061beaacf960cbc0f9d1b98a2103b2fa8e8a18a372a044ab328eee5ea4a9b43502867d275a74c5b11b517b4075559d7c0507c9791bc97f
7
- data.tar.gz: e505435b7bf9a9379d839c16a0d1c20737e45d379d463976f0267fa094f7721eada8c91a2123682aedd2c251510b299e0becfe4442efbdbe909c641f66579e63
6
+ metadata.gz: 1ef475436e00696fe1da264d52a0aa9878753d1fd1500d6e294a03d2b3b23d0687f50292d4101291941061ac5ef4d2e28afd5a1f1e17d2f3efea462b07eceab5
7
+ data.tar.gz: 007b612947bfd7d4483c56a96960451c70abdef7947e8df91e99850b8b098bc0f9e67fa7ea39335d4d9a8e7c57cde7620fbc071ecaf0b3d5944f63c6cf8412fb
@@ -2,6 +2,11 @@
2
2
 
3
3
  Features:
4
4
 
5
+ ## 5.2.0 (2017-03-30)
6
+
7
+ - Support Yarn (#285, @yhirano55)
8
+ - Support npm-check-updates (#286, @yhirano55)
9
+
5
10
  ## 5.1.0 (2017-02-08)
6
11
 
7
12
  - Support Carthage (#282, @nakajijapan)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Coverage Status](http://img.shields.io/coveralls/sanemat/tachikoma/master.svg?style=flat)](https://coveralls.io/r/sanemat/tachikoma)
7
7
 
8
8
  **Tachikoma** is a Interval Pull Requester with
9
- bundler/carton/david/cocoapods/composer/none update.
9
+ bundler/carton/david/yarn/npm-check-updates/cocoapods/carthage/composer/none update.
10
10
  This is [Actual pull request](https://github.com/sanemat/tachikoma/pull/152).
11
11
 
12
12
  ![tachikoma](https://cloud.githubusercontent.com/assets/75448/4431995/1f7817e4-4681-11e4-8235-64df5c562496.gif 'tachikoma')
@@ -22,6 +22,8 @@ You can use these strategies:
22
22
  - Bundler (Ruby)
23
23
  - Carton (Perl)
24
24
  - David (Node.js)
25
+ - Yarn (Node.js)
26
+ - npm-check-updates (Node.js)
25
27
  - CocoaPods (Objective-C, Swift)
26
28
  - Carthage (Swift)
27
29
  - Composer (PHP)
@@ -221,6 +221,37 @@ module Tachikoma
221
221
  end
222
222
  end
223
223
 
224
+ def ncu
225
+ Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
226
+ sh(*['git', 'config', 'user.name', @commiter_name])
227
+ sh(*['git', 'config', 'user.email', @commiter_email])
228
+ sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch])
229
+ sh(*%w(ncu -u))
230
+ sh(*['git', 'add', 'package.json']) if File.exist?('package.json')
231
+ sh(*['git', 'commit', '-m', "Ncu update #{@readable_time}"]) do
232
+ # ignore exitstatus
233
+ end
234
+ sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"])
235
+ end
236
+ end
237
+
238
+ def yarn
239
+ Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
240
+ sh(*['git', 'config', 'user.name', @commiter_name])
241
+ sh(*['git', 'config', 'user.email', @commiter_email])
242
+ sh(*['git', 'checkout', '-b', "tachikoma/update-#{@readable_time}", @base_remote_branch])
243
+ sh(*%w(yarn install))
244
+ sh(*%w(yarn outdated))
245
+ sh(*%w(yarn upgrade))
246
+ sh(*['git', 'add', 'package.json'])
247
+ sh(*['git', 'add', 'yarn.lock'])
248
+ sh(*['git', 'commit', '-m', "Yarn update #{@readable_time}"]) do
249
+ # ignore exitstatus
250
+ end
251
+ sh(*['git', 'push', @authorized_compare_url, "tachikoma/update-#{@readable_time}"])
252
+ end
253
+ end
254
+
224
255
  def pull_request
225
256
  @client = Octokit::Client.new access_token: @github_token
226
257
  @client.create_pull_request(
@@ -60,6 +60,8 @@ Tasks:
60
60
  rake tachikoma:run_composer # run tachikoma with composer
61
61
  rake tachikoma:run_cocoapods # run tachikoma with cocoapods
62
62
  rake tachikoma:run_carthage # run tachikoma with carthage
63
+ rake tachikoma:run_ncu # run tachikoma with npm-check-updates
64
+ rake tachikoma:run_yarn # run tachikoma with yarn
63
65
  USAGE
64
66
  end
65
67
 
@@ -1,4 +1,4 @@
1
1
  # Version of tachikoma
2
2
  module Tachikoma
3
- VERSION = '5.1.0'
3
+ VERSION = '5.2.0'
4
4
  end
@@ -41,4 +41,14 @@ namespace :tachikoma do
41
41
  task :run_carthage do
42
42
  Tachikoma::Application.run 'carthage'
43
43
  end
44
+
45
+ desc 'run tachikoma with npm-check-updates'
46
+ task :run_ncu do
47
+ Tachikoma::Application.run 'ncu'
48
+ end
49
+
50
+ desc 'run tachikoma with yarn'
51
+ task :run_yarn do
52
+ Tachikoma::Application.run 'yarn'
53
+ end
44
54
  end
@@ -124,6 +124,32 @@ YAML
124
124
  end
125
125
  end
126
126
 
127
+ context 'if strategy is `ncu`' do
128
+ before do
129
+ allow_any_instance_of(Tachikoma::Application).to receive(:load)
130
+ allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
131
+ allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
132
+ end
133
+
134
+ it 'should be called `ncu` method' do
135
+ expect_any_instance_of(Tachikoma::Application).to receive(:ncu)
136
+ Tachikoma::Application.run 'ncu'
137
+ end
138
+ end
139
+
140
+ context 'if strategy is `yarn`' do
141
+ before do
142
+ allow_any_instance_of(Tachikoma::Application).to receive(:load)
143
+ allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
144
+ allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
145
+ end
146
+
147
+ it 'should be called `yarn` method' do
148
+ expect_any_instance_of(Tachikoma::Application).to receive(:yarn)
149
+ Tachikoma::Application.run 'yarn'
150
+ end
151
+ end
152
+
127
153
  describe '#bundler_parallel_option' do
128
154
  subject { described_class.new }
129
155
 
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.1.0
4
+ version: 5.2.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-02-08 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.5.1
199
+ rubygems_version: 2.6.8
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: Update gem frequently gets less pain. Let's doing bundle update as a habit!