tachikoma 4.0.0 → 4.0.1

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: ae15f86ec27b00bc4066591c82d61f1201d6f81b
4
- data.tar.gz: ff29ae2cfbba6d33dca214a5dd8af30fcc38cce7
3
+ metadata.gz: 39ddf01cae7d332c30dfe0aa73ecd8af467e402d
4
+ data.tar.gz: 18b463702ca130fa83aeb7d5b7e42d7d7fb10d89
5
5
  SHA512:
6
- metadata.gz: 38cf5e426cae12102f17e9f83f1a5556de1a30ba35c8bfd4b7e27c50b8ce3ce224de14d940fe8f002598baba1ef00bd942b920872e5db1d33eb4ee9589f4eb5a
7
- data.tar.gz: 48ba8b9ca9265f1f6b6c44829b4ba90b8f30344fe32bc228167a5fe1264aa0b1014404168c672c6c26889f8529f5d603e46c65e8e2299b5b8a45e1d9845fb7f8
6
+ metadata.gz: 6e7047d855ae8ffddafd33a8eb07b455fdd97952affd7196eee6b1e1c7ba1cc262441e697893a231e4ef249470ab004de6454f011843a3b4593673128df1218d
7
+ data.tar.gz: d5e49603c26ab3b7249adb5afd26cab61453d7dda1005c4a2e68ee7cc547dc9956957f959db917d2a6793c654b3c90a8e5ffc0a1e0b6d9a1fc09e3cb096fb651
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0-preview2
5
6
  before_install:
6
7
  - gem update bundler
7
8
  notifications:
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 4.0.1 (2013-12-07)
2
+
3
+ Features:
4
+
5
+ - Using `--path` option to enhance the independence of multiple projects (#55, @kenchan)
6
+
7
+ ## 4.0.0 (2013-11-08)
8
+
9
+ Features:
10
+
11
+ - Brand-new architecture (#42, @kyanny)
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
- sh "git config user.name #{@commiter_name}"
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
@@ -1,4 +1,4 @@
1
1
  # Version of tachikoma
2
2
  module Tachikoma
3
- VERSION = '4.0.0'
3
+ VERSION = '4.0.1'
4
4
  end
data/spec/spec_helper.rb CHANGED
@@ -5,7 +5,6 @@
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
7
  RSpec.configure do |config|
8
- config.treat_symbols_as_metadata_keys_with_true_values = true
9
8
  config.run_all_when_everything_filtered = true
10
9
  config.filter_run :focus
11
10
 
@@ -22,26 +22,26 @@ YAML
22
22
 
23
23
  context 'if strategy is `bundle`' do
24
24
  before do
25
- Tachikoma::Application.any_instance.stub(:load)
26
- Tachikoma::Application.any_instance.stub(:fetch)
27
- Tachikoma::Application.any_instance.stub(:pull_request)
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.any_instance.should_receive(:bundle)
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.any_instance.stub(:load)
39
- Tachikoma::Application.any_instance.stub(:fetch)
40
- Tachikoma::Application.any_instance.stub(:pull_request)
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.any_instance.should_receive(:carton)
44
+ expect_any_instance_of(Tachikoma::Application).to receive(:carton)
45
45
  Tachikoma::Application.run 'carton'
46
46
  end
47
47
  end
@@ -6,7 +6,7 @@ describe Tachikoma do
6
6
  let(:repospath) { somewhere + '/repos' }
7
7
 
8
8
  before :each do
9
- Dir.stub(:pwd).and_return(somewhere)
9
+ allow(Dir).to receive(:pwd).and_return(somewhere)
10
10
  end
11
11
 
12
12
  it { expect(described_class.root_path).to eq Pathname.new(somewhere) }
@@ -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
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.3'
27
27
  spec.add_development_dependency 'dotenv'
28
- spec.add_development_dependency 'rspec', '>= 2.14.0.rc'
28
+ spec.add_development_dependency 'rspec', '>= 3.0.0.beta'
29
29
  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.0.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-08 00:00:00.000000000 Z
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: 2.14.0.rc
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: 2.14.0.rc
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.8
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!