capistrano-rbenv-install 1.0.0 → 1.1.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: afdb932ae318230056e5634b199d619b18e1eefd
4
- data.tar.gz: 9cc4770b5547475e981a478abc709ed9e88448b7
3
+ metadata.gz: b4376d1f69aaf179537baaa44d45a7fd433ddac8
4
+ data.tar.gz: ffdea53b5d9d4c1133a3a32864f331466d28340f
5
5
  SHA512:
6
- metadata.gz: 9eda8b1fd55349c806c86259cc246088bdef2f74fdfdf24a65dab5400a146988bd23bbe6c1f15b0425079b269236bade7895be5189d4bd09b2f84a59f3ba1d41
7
- data.tar.gz: db9217e6149e8b22053e718cf1e1ea51f7896f4a06465a8fcf15d831b7d3f269cf8bcda3c8eb01f98a56e2d56eea4db51b8d8a4804aadbd96d35992b14a6c723
6
+ metadata.gz: ac0ae27eb2180c370bf89719c6370c24507d603eca9b60817d325c4e5b3fb2880cde89afbea594939b026670736ab3686304a6c69ab57469bef8cca7e2c89546
7
+ data.tar.gz: 3a995a8d4e7ff503d6b406ada4cb0852a16fcd1571962df2c6b1494730fc6e71d9d0b64b1fb9f2a050f2f8c6ccf52622b55f84c31f6fb803d2b84a3ace3804fb
data/CHANGELOG.md CHANGED
@@ -1,2 +1,12 @@
1
- ### v1.0.0, 2014-03-39
1
+ # Changelog
2
+
3
+ ### master
4
+
5
+ ### v1.1.0, 2014-11-17
6
+ - extract paths and urls to a separate module
7
+ - update gem homepage
8
+ - fix a bug where bundler gem installation fails because `bundler:map_bins` task
9
+ is executed earlier.
10
+
11
+ ### v1.0.0, 2014-03-29
2
12
  - @bruno- all the v1.0.0 features
data/README.md CHANGED
@@ -10,7 +10,7 @@ Works with Capistrano 3 (only). For Capistrano 2 support check
10
10
 
11
11
  Install by adding the following to the `Gemfile`:
12
12
 
13
- gem 'capistrano', '~> 3.1'
13
+ gem 'capistrano', '~> 3.2.1'
14
14
  gem 'capistrano-rbenv', '~> 2.0' # required
15
15
  gem 'capistrano-rbenv-install'
16
16
 
@@ -94,16 +94,7 @@ supported.
94
94
 
95
95
  ### More Capistrano automation?
96
96
 
97
- If you'd like to streamline your Capistrano deploys, you might want to check
98
- these zero-configuration, plug-n-play plugins:
99
-
100
- - [capistrano-postgresql](https://github.com/bruno-/capistrano-postgresql)<br/>
101
- plugin that automates postgresql configuration and setup
102
- - [capistrano-unicorn-nginx](https://github.com/bruno-/capistrano-unicorn-nginx)<br/>
103
- no-configuration unicorn and nginx setup with sensible defaults
104
- - [capistrano-safe-deploy-to](https://github.com/bruno-/capistrano-safe-deploy-to)<br/>
105
- if you're annoyed that Capistrano does **not** create a deployment path for the
106
- app on the server (default `/var/www/myapp`), this is what you need!
97
+ Check out [capistrano-plugins](https://github.com/capistrano-plugins) github org.
107
98
 
108
99
  ### Thanks
109
100
 
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  https://github.com/yyuu/capistrano-rbenv
16
16
  EOF
17
17
  gem.summary = "Capistrano plugin for lightweight rubies managment with rbenv."
18
- gem.homepage = "https://github.com/bruno-/capistrano-rbenv-install"
18
+ gem.homepage = "https://github.com/capistrano-plugins/capistrano-rbenv-install"
19
19
 
20
20
  gem.license = "MIT"
21
21
 
@@ -0,0 +1,23 @@
1
+ module Capistrano
2
+ module DSL
3
+ module RbenvInstall
4
+
5
+ def rbenv_ruby_build_path
6
+ "#{fetch(:rbenv_path)}/plugins/ruby-build"
7
+ end
8
+
9
+ def rbenv_bin_executable_path
10
+ "#{fetch(:rbenv_path)}/bin/rbenv"
11
+ end
12
+
13
+ def rbenv_repo_url
14
+ 'https://github.com/sstephenson/rbenv.git'
15
+ end
16
+
17
+ def ruby_build_repo_url
18
+ 'https://github.com/sstephenson/ruby-build.git'
19
+ end
20
+
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module RbenvInstall
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -1,31 +1,29 @@
1
- namespace :load do
2
- task :defaults do
3
- # Heavily depends on 'capistrano-rbenv' variables:
4
- # https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L33-49
5
- # set :rbenv_type # :user or :system
6
- # set :rbenv_ruby, '2.0.0-p247' # ruby version
7
- # set :rbenv_roles, :all # where rbenv should be installed
8
- # set :rbenv_path, # ~/.rbenv or /usr/local/rbenv, depends on :rbenv_type
9
- # set :rbenv_ruby_dir # "#{fetch(:rbenv_path)}/versions/#{fetch(:rbenv_ruby)}" }
10
-
11
- set :rbenv_ruby_build_path, -> { "#{fetch(:rbenv_path)}/plugins/ruby-build" }
12
- end
13
- end
1
+ require 'capistrano/dsl/rbenv_install'
2
+
3
+ include Capistrano::DSL::RbenvInstall
4
+
5
+ # Heavily depends on 'capistrano-rbenv' variables:
6
+ # https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L33-49
7
+ # set :rbenv_type # :user or :system
8
+ # set :rbenv_ruby, '2.0.0-p247' # ruby version
9
+ # set :rbenv_roles, :all # where rbenv should be installed
10
+ # set :rbenv_path, # ~/.rbenv or /usr/local/rbenv, depends on :rbenv_type
11
+ # set :rbenv_ruby_dir # "#{fetch(:rbenv_path)}/versions/#{fetch(:rbenv_ruby)}" }
14
12
 
15
13
  namespace :rbenv do
16
14
  desc 'Install rbenv'
17
15
  task :install_rbenv do
18
16
  on roles fetch(:rbenv_roles) do
19
17
  next if test "[ -d #{fetch(:rbenv_path)} ]"
20
- execute :git, :clone, 'https://github.com/sstephenson/rbenv.git', fetch(:rbenv_path)
18
+ execute :git, :clone, rbenv_repo_url, fetch(:rbenv_path)
21
19
  end
22
20
  end
23
21
 
24
22
  desc 'Install ruby build - rbenv plugin'
25
23
  task :install_ruby_build do
26
24
  on roles fetch(:rbenv_roles) do
27
- next if test "[ -d #{fetch(:rbenv_ruby_build_path)} ]"
28
- execute :git, :clone, 'https://github.com/sstephenson/ruby-build.git', fetch(:rbenv_ruby_build_path)
25
+ next if test "[ -d #{rbenv_ruby_build_path} ]"
26
+ execute :git, :clone, ruby_build_repo_url, rbenv_ruby_build_path
29
27
  end
30
28
  end
31
29
 
@@ -33,12 +31,12 @@ namespace :rbenv do
33
31
  task :install_ruby do
34
32
  on roles fetch(:rbenv_roles) do
35
33
  next if test "[ -d #{fetch(:rbenv_ruby_dir)} ]"
36
- execute "#{fetch(:rbenv_path)}/bin/rbenv", :install, fetch(:rbenv_ruby)
34
+ execute rbenv_bin_executable_path, :install, fetch(:rbenv_ruby)
37
35
  end
38
36
  end
39
37
 
40
38
  desc 'Install bundler gem'
41
- task :install_bundler do
39
+ task install_bundler: ['rbenv:map_bins'] do
42
40
  on roles fetch(:rbenv_roles) do
43
41
  next if test :gem, :query, '--quiet --installed --name-matches ^bundler$'
44
42
  execute :gem, :install, :bundler, '--quiet --no-rdoc --no-ri'
@@ -50,8 +48,9 @@ namespace :rbenv do
50
48
  invoke 'rbenv:install_rbenv'
51
49
  invoke 'rbenv:install_ruby_build'
52
50
  invoke 'rbenv:install_ruby'
51
+ invoke 'rbenv:install_bundler'
53
52
  end
54
53
 
55
54
  before 'rbenv:validate', 'rbenv:install'
56
- after 'rbenv:map_bins', 'rbenv:install_bundler'
55
+ before 'bundler:map_bins', 'rbenv:install' if Rake::Task.task_defined?('bundler:map_bins')
57
56
  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.0.0
4
+ version: 1.1.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-03-29 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -69,10 +69,11 @@ files:
69
69
  - Rakefile
70
70
  - capistrano-rbenv-install.gemspec
71
71
  - lib/capistrano-rbenv-install.rb
72
+ - lib/capistrano/dsl/rbenv_install.rb
72
73
  - lib/capistrano/rbenv_install.rb
73
74
  - lib/capistrano/rbenv_install/version.rb
74
75
  - lib/capistrano/tasks/rbenv_install.rake
75
- homepage: https://github.com/bruno-/capistrano-rbenv-install
76
+ homepage: https://github.com/capistrano-plugins/capistrano-rbenv-install
76
77
  licenses:
77
78
  - MIT
78
79
  metadata: {}
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
93
  version: '0'
93
94
  requirements: []
94
95
  rubyforge_project:
95
- rubygems_version: 2.1.5
96
+ rubygems_version: 2.2.0
96
97
  signing_key:
97
98
  specification_version: 4
98
99
  summary: Capistrano plugin for lightweight rubies managment with rbenv.