rvm-capistrano 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,26 +1,31 @@
1
- === 1.2.0 / 2012-05-19
1
+ ### 1.2.1 / 2012-05-22
2
+
3
+ * Add `set :rvm_ruby_string, :local`, merged #4
4
+ * Fix `command_install` edge cases, merged #12, closes #13
5
+
6
+ ## 1.2.0 / 2012-05-19
2
7
 
3
8
  * Add task to create gemset, fix #8
4
- * Add rvm_install_ruby_params, fix #9
9
+ * Add `rvm_install_ruby_params`, fix #9
5
10
  * Improved installing RVM with sudo, fix #10
6
11
  * Use the new RVM installer
7
12
 
8
- === 1.1.0 / 2012-04-29
13
+ ## 1.1.0 / 2012-04-29
9
14
 
10
- * Fix rvm installation task to use sudo and rvm_path when needed
15
+ * Fix rvm installation task to use sudo and `rvm_path` when needed
11
16
 
12
- === 1.0.2 / 2012-03-28
17
+ ### 1.0.2 / 2012-03-28
13
18
 
14
19
  * Fix the bundler auto require problem
15
20
 
16
- === 1.0.1 / 2012-03-26
21
+ ### 1.0.1 / 2012-03-26
17
22
 
18
23
  * Updated to latest integration code for installing rvm/ruby
19
24
  * Cleaning code, improving gemification
20
25
  * Switch the default rvm installation type to user - as we discourage system installations
21
26
  * Improved README.md
22
27
 
23
- === 1.0.0 / 2012-03-26
28
+ # 1.0.0 / 2012-03-26
24
29
 
25
30
  * Ported RVM /Capistrano Gem Library into it's own repository from the main RVM
26
31
  repostitory. ( https://github.com/wayneeseguin/rvm-capistrano )
data/README.md CHANGED
@@ -23,13 +23,16 @@ Example:
23
23
 
24
24
  set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
25
25
  set :rvm_install_ruby_params, '--1.9' # for jruby/rbx default to 1.9 mode
26
-
26
+
27
27
  before 'deploy:setup', 'rvm:install_rvm' # install RVM
28
28
  before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, or:
29
29
  before 'deploy:setup', 'rvm:create_gemset' # only create gemset
30
-
30
+
31
31
  require "rvm/capistrano"
32
32
 
33
+ ## To use the ruby version currently active locally
34
+
35
+ set :rvm_ruby_string, :local
33
36
 
34
37
  ## Development
35
38
 
@@ -1,5 +1,5 @@
1
1
  module RVM
2
2
  class Capistrano
3
- VERSION="1.2.0"
3
+ VERSION="1.2.1"
4
4
  end
5
5
  end
@@ -12,8 +12,13 @@ Capistrano::Configuration.instance(true).load do
12
12
  set :default_shell do
13
13
  shell = File.join(rvm_bin_path, "rvm-shell")
14
14
  ruby = rvm_ruby_string.to_s.strip
15
- if "#{ruby}" == "release_path"
15
+ case ruby
16
+ when "release_path"
16
17
  shell = "rvm_path=#{rvm_path} #{shell} --path '#{release_path}'"
18
+ when "local"
19
+ ruby = (ENV['GEM_HOME'] || "").gsub(/.*\//, "")
20
+ raise "Failed to get ruby version from GEM_HOME. Please make sure rvm is loaded!" if ruby.empty?
21
+ shell = "rvm_path=#{rvm_path} #{shell} '#{ruby}'"
17
22
  else
18
23
  shell = "rvm_path=#{rvm_path} #{shell} '#{ruby}'" unless ruby.empty?
19
24
  end
@@ -84,6 +89,8 @@ Capistrano::Configuration.instance(true).load do
84
89
  else
85
90
  command_install = "#{sudo} "
86
91
  end
92
+ else
93
+ command_install = ''
87
94
  end
88
95
  command_install << "#{rvm_install_shell} -s #{rvm_install_type} --path #{rvm_path}"
89
96
  run "#{command_fetch} #{command_install}", :shell => "#{rvm_install_shell}"
metadata CHANGED
@@ -1,78 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rvm-capistrano
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 2
9
- - 0
10
- version: 1.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Wayne E. Seguin
14
9
  - Michal Papis
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-05-19 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2012-05-22 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: capistrano
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 15
30
- segments:
31
- - 2
32
- - 0
33
- - 0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 2.0.0
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 2.0.0
31
+ - !ruby/object:Gem::Dependency
32
+ name: rake
33
+ requirement: !ruby/object:Gem::Requirement
41
34
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
49
39
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: minitest
53
40
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: minitest
49
+ requirement: !ruby/object:Gem::Requirement
55
50
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
63
55
  type: :development
64
- version_requirements: *id003
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
65
63
  description: RVM / Capistrano Integration Gem
66
- email:
64
+ email:
67
65
  - wayneeseguin@gmail.com
68
66
  - mpapis@gmail.com
69
67
  executables: []
70
-
71
68
  extensions: []
72
-
73
69
  extra_rdoc_files: []
74
-
75
- files:
70
+ files:
76
71
  - History.md
77
72
  - Manifest.yml
78
73
  - README.md
@@ -82,36 +77,27 @@ files:
82
77
  - spec/spec_helper.rb
83
78
  homepage: https://rvm.beginrescueend.com/integration/capistrano
84
79
  licenses: []
85
-
86
80
  post_install_message:
87
81
  rdoc_options: []
88
-
89
- require_paths:
82
+ require_paths:
90
83
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
84
+ required_ruby_version: !ruby/object:Gem::Requirement
92
85
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
98
- - 0
99
- version: "0"
100
- required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
91
  none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
109
96
  requirements: []
110
-
111
97
  rubyforge_project:
112
98
  rubygems_version: 1.8.24
113
99
  signing_key:
114
100
  specification_version: 3
115
101
  summary: RVM / Capistrano Integration Gem
116
- test_files:
102
+ test_files:
117
103
  - spec/spec_helper.rb