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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/lib/tachikoma/application.rb +31 -0
- data/lib/tachikoma/cli.rb +2 -0
- data/lib/tachikoma/version.rb +1 -1
- data/lib/tasks/app.rake +10 -0
- data/spec/tachikoma/application_spec.rb +26 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b22bd55e09ac2208af4a427c2bb94b97c0d5c06
|
4
|
+
data.tar.gz: 579f0d91922f76368328af86fe49320d4165e81b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef475436e00696fe1da264d52a0aa9878753d1fd1500d6e294a03d2b3b23d0687f50292d4101291941061ac5ef4d2e28afd5a1f1e17d2f3efea462b07eceab5
|
7
|
+
data.tar.gz: 007b612947bfd7d4483c56a96960451c70abdef7947e8df91e99850b8b098bc0f9e67fa7ea39335d4d9a8e7c57cde7620fbc071ecaf0b3d5944f63c6cf8412fb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
[](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
|

|
@@ -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(
|
data/lib/tachikoma/cli.rb
CHANGED
@@ -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
|
|
data/lib/tachikoma/version.rb
CHANGED
data/lib/tasks/app.rake
CHANGED
@@ -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.
|
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-
|
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.
|
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!
|