capistrano-rbenv-install 1.1.0 → 1.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: b4376d1f69aaf179537baaa44d45a7fd433ddac8
4
- data.tar.gz: ffdea53b5d9d4c1133a3a32864f331466d28340f
3
+ metadata.gz: 3e9b9a0e06ab2e778d020d0b0a4b35c81579935e
4
+ data.tar.gz: e55f8952da9927e999a669ab5a2c1242b04409aa
5
5
  SHA512:
6
- metadata.gz: ac0ae27eb2180c370bf89719c6370c24507d603eca9b60817d325c4e5b3fb2880cde89afbea594939b026670736ab3686304a6c69ab57469bef8cca7e2c89546
7
- data.tar.gz: 3a995a8d4e7ff503d6b406ada4cb0852a16fcd1571962df2c6b1494730fc6e71d9d0b64b1fb9f2a050f2f8c6ccf52622b55f84c31f6fb803d2b84a3ace3804fb
6
+ metadata.gz: d6245b1b9b9667f65e7aa0288a59f970206e16660685d7f99c38e1f4ee01c457d7ceed4b15ca4526db1e282d9b08086b9a198974b404967500f75929ffc733a5
7
+ data.tar.gz: b7459819397c75627f4476f18939d72157a6b2983741f20c93d39026348432807b35f197980ba0dd4680048183fff3b9dc72e70ddfb089d41b5fa46c9debdb33
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### master
4
4
 
5
+ ### v1.2.0, 2014-11-19
6
+ - update ruby-build before every ruby installation (@jimmynguyc)
7
+
5
8
  ### v1.1.0, 2014-11-17
6
9
  - extract paths and urls to a separate module
7
10
  - update gem homepage
data/README.md CHANGED
@@ -12,7 +12,7 @@ Install by adding the following to the `Gemfile`:
12
12
 
13
13
  gem 'capistrano', '~> 3.2.1'
14
14
  gem 'capistrano-rbenv', '~> 2.0' # required
15
- gem 'capistrano-rbenv-install'
15
+ gem 'capistrano-rbenv-install', '~> 1.2.0'
16
16
 
17
17
  then:
18
18
 
@@ -36,7 +36,7 @@ Other than that, this plugin does not need any setup.
36
36
 
37
37
  Run:
38
38
 
39
- $ bundle exec production deploy
39
+ $ bundle exec cap production deploy
40
40
 
41
41
  And watch ruby being installed.
42
42
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module RbenvInstall
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -27,10 +27,21 @@ namespace :rbenv do
27
27
  end
28
28
  end
29
29
 
30
+ desc 'Update ruby build - rbenv plugin'
31
+ task :update_ruby_build do
32
+ on roles fetch(:rbenv_roles) do
33
+ next if test "[ ! -d #{rbenv_ruby_build_path} ]"
34
+ within rbenv_ruby_build_path do
35
+ execute :git, :pull
36
+ end
37
+ end
38
+ end
39
+
30
40
  desc 'Install ruby'
31
41
  task :install_ruby do
32
42
  on roles fetch(:rbenv_roles) do
33
43
  next if test "[ -d #{fetch(:rbenv_ruby_dir)} ]"
44
+ invoke 'rbenv:update_ruby_build'
34
45
  execute rbenv_bin_executable_path, :install, fetch(:rbenv_ruby)
35
46
  end
36
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rbenv-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano