tachikoma 4.1.0 → 4.2.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: 3495d6a4018f6d60ff5dfa3e73b6848d76b01afa
4
- data.tar.gz: 7d8ebcbff5cd2aa9f8cbd5f272c256690dcfa480
3
+ metadata.gz: 0dfda2f4dc0acea54fd5a744190b88aa8777b6d1
4
+ data.tar.gz: bd6b216ff28177fe3640e065d10e53aa0793b5c4
5
5
  SHA512:
6
- metadata.gz: 02c6ab89936447a175a7085bd201b980e575c20d0252069fc41a4b6258b79413e9c3175d13f04c573f5221460b7f9f9459de6187ee030e424ddf230b46058df1
7
- data.tar.gz: ca286c963ec8c8d59e4cc1472271a24e5c7f7f5c877ee5ad23ec1038b416a8684c2a16880ded3ba7a68e7977b014b621bb60c91ae5592958c13400d9b4be006e
6
+ metadata.gz: 169c11d3fc33ea48ac8344243e94eb8550eeaa111407f5090fd23b1203d7a312a46b94baa5a779ed1d9f212475f52b8a3c2db99dae3762d2b6c2037eb095fe17
7
+ data.tar.gz: a9372ad47b3707aeb2aec4979fd1a3e0f56d84e1e5733ed6bead0fac05f6792adf1b0f56411592525a9287ee40e9a986d2eab033273b26d11dd516d33f9154c7
data/.tachikoma.yml ADDED
@@ -0,0 +1 @@
1
+ strategy: 'none'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 4.2.0 (2014-08-18)
2
+
3
+ Features:
4
+ - Get the ability for node.js application `david update`(#101, @sanemat)
5
+
1
6
  ## 4.1.0 (2014-07-31)
2
7
 
3
8
  Features:
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Code Climate](http://img.shields.io/codeclimate/github/sanemat/tachikoma.svg?style=flat)](https://codeclimate.com/github/sanemat/tachikoma)
6
6
  [![Coverage Status](http://img.shields.io/coveralls/sanemat/tachikoma/master.svg?style=flat)](https://coveralls.io/r/sanemat/tachikoma)
7
7
 
8
- Interval Pull Requester with bundle/carton/none update. [Actual pull request](https://github.com/mrtaddy/fenix-knight/pull/25)
8
+ Interval Pull Requester with bundler/carton/david/none update. [Actual pull request](https://github.com/mrtaddy/fenix-knight/pull/25)
9
9
 
10
10
  ![tachikoma](https://gist.github.com/sanemat/6605029/raw/ztachikoma-demo5.gif 'tachikoma')
11
11
  ![tachikoma](https://gist.github.com/sanemat/6605029/raw/ztachikoma-demo6.gif 'tachikoma')
@@ -34,7 +34,17 @@ $ export TOKEN_YOUR_REPOSITORY_NAME_THAT_IS_SAME_TO_YAML_FILENAME=xxxxxxxxxxxxxx
34
34
  $ bundle exec rake tachikoma:run_bundle
35
35
  ```
36
36
 
37
+ ### Strategies
38
+
39
+ You can use these strategies:
40
+
41
+ - Bundler (Ruby)
42
+ - Carton (Perl)
43
+ - David (Node.js)
44
+ - None (without strategy)
45
+
37
46
  If you use carton, then you use `tachikoma:run_carton` instead of `tachikoma:run_bundle`.
47
+ You can also use `tachikoma:run_none` and `tachikoma:run_david`.
38
48
 
39
49
  ### Setting example
40
50
  [gist-mail setting (data/gist-mail.yaml)](https://github.com/sanemat/bot-motoko-tachikoma/blob/a47ceb8b88f8b6da8028e5c0b641b8a84c9c3505/data/gist-mail.yaml)
@@ -107,6 +107,18 @@ module Tachikoma
107
107
  end
108
108
  end
109
109
 
110
+ def david
111
+ Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do
112
+ sh "git config user.name #{@commiter_name}"
113
+ sh "git config user.email #{@commiter_email}"
114
+ sh "git checkout -b tachikoma/update-#{@readable_time} #{@base_remote_branch}"
115
+ sh 'david update --warn404'
116
+ sh 'git add package.json'
117
+ sh %Q(git commit -m "David update #{@readable_time}") do; end # ignore exitstatus
118
+ sh "git push #{@authorized_compare_url} tachikoma/update-#{@readable_time}"
119
+ end
120
+ end
121
+
110
122
  def pull_request
111
123
  @client = Octokit::Client.new access_token: @github_token
112
124
  @client.create_pull_request(@pull_request_url, @pull_request_base, @pull_request_head, @pull_request_title, @pull_request_body)
data/lib/tachikoma/cli.rb CHANGED
@@ -55,6 +55,8 @@ module Tachikoma
55
55
  Tasks:
56
56
  rake tachikoma:run_bundle # run tachikoma with bundle
57
57
  rake tachikoma:run_carton # run tachikoma with carton
58
+ rake tachikoma:run_none # run tachikoma with none
59
+ rake tachikoma:run_david # run tachikoma with david
58
60
  USAGE
59
61
  end
60
62
 
@@ -1,4 +1,4 @@
1
1
  # Version of tachikoma
2
2
  module Tachikoma
3
- VERSION = '4.1.0'
3
+ VERSION = '4.2.0'
4
4
  end
data/lib/tasks/app.rake CHANGED
@@ -10,4 +10,14 @@ namespace :tachikoma do
10
10
  task :run_carton do
11
11
  Tachikoma::Application.run 'carton'
12
12
  end
13
+
14
+ desc 'run tachikoma with none'
15
+ task :run_none do
16
+ Tachikoma::Application.run 'none'
17
+ end
18
+
19
+ desc 'run tachikoma with david'
20
+ task :run_david do
21
+ Tachikoma::Application.run 'david'
22
+ end
13
23
  end
@@ -59,6 +59,19 @@ YAML
59
59
  end
60
60
  end
61
61
 
62
+ context 'if strategy is `david`' do
63
+ before do
64
+ allow_any_instance_of(Tachikoma::Application).to receive(:load)
65
+ allow_any_instance_of(Tachikoma::Application).to receive(:fetch)
66
+ allow_any_instance_of(Tachikoma::Application).to receive(:pull_request)
67
+ end
68
+
69
+ it 'should be called `david` method' do
70
+ expect_any_instance_of(Tachikoma::Application).to receive(:david)
71
+ Tachikoma::Application.run 'david'
72
+ end
73
+ end
74
+
62
75
  describe '#bundler_parallel_option' do
63
76
  subject { described_class.new }
64
77
 
data/tachikoma.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Tachikoma::VERSION
9
9
  spec.authors = ['sanemat']
10
10
  spec.email = ['o.gata.ken@gmail.com']
11
- spec.description = %q(Interval pull requester with bundle/carton update.)
11
+ spec.description = %q(Interval pull requester with bundler/carton/david/none update.)
12
12
  spec.summary = %q(Update gem frequently gets less pain. Let's doing bundle update as a habit!)
13
13
  spec.homepage = 'https://github.com/sanemat/tachikoma'
14
14
  spec.license = 'MIT'
@@ -20,11 +20,11 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'safe_yaml'
22
22
  spec.add_dependency 'rake'
23
- spec.add_dependency 'octokit', '>= 3.2', '< 3.3'
23
+ spec.add_dependency 'octokit', '>= 3.2', '< 3.4'
24
24
  spec.add_dependency 'json'
25
25
  spec.add_dependency 'thor'
26
26
 
27
- spec.add_development_dependency 'bundler', '>= 1.3', '< 1.7'
27
+ spec.add_development_dependency 'bundler', '>= 1.3', '< 1.8'
28
28
  spec.add_development_dependency 'dotenv'
29
29
  spec.add_development_dependency 'rspec', '>= 3.0.0'
30
30
  end
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.1.0
4
+ version: 4.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: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '3.2'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '3.3'
50
+ version: '3.4'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '3.2'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.3'
60
+ version: '3.4'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: json
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +95,7 @@ dependencies:
95
95
  version: '1.3'
96
96
  - - "<"
97
97
  - !ruby/object:Gem::Version
98
- version: '1.7'
98
+ version: '1.8'
99
99
  type: :development
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -105,7 +105,7 @@ dependencies:
105
105
  version: '1.3'
106
106
  - - "<"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.7'
108
+ version: '1.8'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: dotenv
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ dependencies:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
136
  version: 3.0.0
137
- description: Interval pull requester with bundle/carton update.
137
+ description: Interval pull requester with bundler/carton/david/none update.
138
138
  email:
139
139
  - o.gata.ken@gmail.com
140
140
  executables:
@@ -146,6 +146,7 @@ files:
146
146
  - ".gitignore"
147
147
  - ".rspec"
148
148
  - ".rubocop.yml"
149
+ - ".tachikoma.yml"
149
150
  - ".travis.yml"
150
151
  - CHANGELOG.md
151
152
  - Gemfile