tachikoma 4.0.0 → 4.0.1
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/.travis.yml +1 -0
- data/CHANGELOG.md +11 -0
- data/README.md +4 -0
- data/lib/tachikoma/application.rb +2 -2
- data/lib/tachikoma/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/tachikoma/application_spec.rb +8 -8
- data/spec/tachikoma/settings_spec.rb +1 -1
- data/spec/tasks/app_task_spec.rb +6 -0
- data/tachikoma.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ddf01cae7d332c30dfe0aa73ecd8af467e402d
|
4
|
+
data.tar.gz: 18b463702ca130fa83aeb7d5b7e42d7d7fb10d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e7047d855ae8ffddafd33a8eb07b455fdd97952affd7196eee6b1e1c7ba1cc262441e697893a231e4ef249470ab004de6454f011843a3b4593673128df1218d
|
7
|
+
data.tar.gz: d5e49603c26ab3b7249adb5afd26cab61453d7dda1005c4a2e68ee7cc547dc9956957f959db917d2a6793c654b3c90a8e5ffc0a1e0b6d9a1fc09e3cb096fb651
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -115,6 +115,10 @@ at YAPC::Asia Tokyo 2013 Lightning Talk
|
|
115
115
|
by @sanemat
|
116
116
|
[slide](https://gist.github.com/sanemat/6605029) _Japanese_
|
117
117
|
[video](http://www.youtube.com/watch?v=IAoJzxBzOok) _Japanese_
|
118
|
+
- Updating Library Dependencies Off and On with Tachikoma
|
119
|
+
at RubyConf 2013 Lightning Talk
|
120
|
+
by @sanemat
|
121
|
+
[slide](https://gist.github.com/sanemat/7374944) _English_
|
118
122
|
|
119
123
|
### Article
|
120
124
|
- [tachikoma を使って毎日自動で bundle update - willnet.in](http://willnet.in/111)
|
@@ -73,10 +73,10 @@ module Tachikoma
|
|
73
73
|
Dir.chdir("#{Tachikoma.repos_path.to_s}/#{@build_for}") do
|
74
74
|
Bundler.with_clean_env do
|
75
75
|
sh %Q|ruby -i -pe '$_.gsub! /^ruby/, "#ruby"' Gemfile|
|
76
|
-
|
76
|
+
sh "git config user.name #{@commiter_name}"
|
77
77
|
sh "git config user.email #{@commiter_email}"
|
78
78
|
sh "git checkout -b feature/bundle-#{@readable_time} #{@base_remote_branch}"
|
79
|
-
sh "bundle --gemfile Gemfile --no-deployment --without nothing #{@parallel_option}"
|
79
|
+
sh "bundle --gemfile Gemfile --no-deployment --without nothing --path vendor/bundle #{@parallel_option}"
|
80
80
|
sh 'bundle update'
|
81
81
|
sh 'git add Gemfile.lock'
|
82
82
|
sh %Q!git commit -m "Bundle update #{@readable_time}"! do; end # ignore exitstatus
|
data/lib/tachikoma/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -22,26 +22,26 @@ YAML
|
|
22
22
|
|
23
23
|
context 'if strategy is `bundle`' do
|
24
24
|
before do
|
25
|
-
Tachikoma::Application.
|
26
|
-
Tachikoma::Application.
|
27
|
-
Tachikoma::Application.
|
25
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:load)
|
26
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
|
27
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'should be called `bundle` method' do
|
31
|
-
Tachikoma::Application.
|
31
|
+
expect_any_instance_of(Tachikoma::Application).to receive(:bundle)
|
32
32
|
Tachikoma::Application.run 'bundle'
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
context 'if strategy is `carton`' do
|
37
37
|
before do
|
38
|
-
Tachikoma::Application.
|
39
|
-
Tachikoma::Application.
|
40
|
-
Tachikoma::Application.
|
38
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:load)
|
39
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
|
40
|
+
allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'should be called `carton` method' do
|
44
|
-
Tachikoma::Application.
|
44
|
+
expect_any_instance_of(Tachikoma::Application).to receive(:carton)
|
45
45
|
Tachikoma::Application.run 'carton'
|
46
46
|
end
|
47
47
|
end
|
data/spec/tasks/app_task_spec.rb
CHANGED
@@ -6,6 +6,12 @@ describe 'app.rake' do
|
|
6
6
|
describe 'tachikoma:pull_request' do
|
7
7
|
context 'when github returns 422 UnprocessableEntity' do
|
8
8
|
before do
|
9
|
+
# FIXME: Using `stub_chain` from rspec-mocks' old `:should`
|
10
|
+
# syntax without explicitly enabling the syntax is deprecated.
|
11
|
+
# Use the new `:expect` syntax or explicitly enable `:should`
|
12
|
+
# instead. Called from
|
13
|
+
# /Users/sane/work/ruby-study/tachikoma/spec/tasks/app_task_spec.rb:9:
|
14
|
+
# in `block (4 levels) in <top (required)>'.
|
9
15
|
Octokit::Client.stub_chain(:new, :create_pull_request).and_raise(Octokit::UnprocessableEntity)
|
10
16
|
end
|
11
17
|
|
data/tachikoma.gemspec
CHANGED
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: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 3.0.0.beta
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - '>='
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 3.0.0.beta
|
117
117
|
description: Interval pull requester with bundle/carton update.
|
118
118
|
email:
|
119
119
|
- o.gata.ken@gmail.com
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- .rspec
|
128
128
|
- .rubocop.yml
|
129
129
|
- .travis.yml
|
130
|
+
- CHANGELOG.md
|
130
131
|
- Gemfile
|
131
132
|
- LICENSE.txt
|
132
133
|
- NOTE.txt
|
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
167
|
version: '0'
|
167
168
|
requirements: []
|
168
169
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.0.
|
170
|
+
rubygems_version: 2.0.14
|
170
171
|
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: Update gem frequently gets less pain. Let's doing bundle update as a habit!
|