rvm-capistrano 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.md +9 -0
- data/README.md +13 -2
- data/lib/rvm/capistrano/base.rb +5 -1
- data/lib/rvm/capistrano/version.rb +1 -1
- metadata +104 -125
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 70eb27363aaf2797a8fa3dc604d8ba10aaf381c2
|
4
|
+
data.tar.gz: aaaa5b9afd8ba00e657973945db0009e7c5228df
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4cadff2b14decf65bdb48d70746e56faa4dd684746a6cc8c121f42e3c3b1f1da7172b15e7aa55f941e41ebfe055af04b3bcc445083b9aba695e20bfd0edec013
|
7
|
+
data.tar.gz: 4ce390557d3f996c1617f4ffedc4b01572f042998bbc451244a3cdd0b0755cd1f5d50da201f5d85b3e01a3b3aa3db65cb10b08d5f98ac551a2d0656dc0044b08
|
data/History.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### 1.5.2 / 2014-05-31
|
2
|
+
|
3
|
+
* Documentation updates #96, #98
|
4
|
+
* Use RUBY_VERSION when available for autodetecting the version, merged #99 by @naemono
|
5
|
+
|
6
|
+
### 1.5.1 / 2013-10-08
|
7
|
+
|
8
|
+
* Fix curl silencing #91 by @aspiers
|
9
|
+
|
1
10
|
### 1.5.0 / 2013-09-04
|
2
11
|
|
3
12
|
* Add rvm:info & rvm:list for easier debugging
|
data/README.md
CHANGED
@@ -6,7 +6,8 @@ RVM / Capistrano Integration Gem
|
|
6
6
|
|
7
7
|
## Compatibility
|
8
8
|
|
9
|
-
`rvm-capistrano` `1.3.0` with Autolibs requires at least RVM `1.19.0`.
|
9
|
+
- `rvm-capistrano` `1.3.0` with Autolibs requires at least RVM `1.19.0`.
|
10
|
+
- `capistrano` `3.0.0` is a rewrite and does not work with this gem, use [`rvm1/capistrano3`](https://github.com/rvm/rvm1-capistrano3#readme) it will be extended to match this gem functionality.
|
10
11
|
|
11
12
|
## Installation
|
12
13
|
|
@@ -47,6 +48,16 @@ By default `rvm/capistrano` loads: `selector`, `info_list`, `install_rvm`, `inst
|
|
47
48
|
|
48
49
|
Warning: `selector` and `selector_mixed` are to be used separately they can not be used both at the same time.
|
49
50
|
|
51
|
+
## Requiring
|
52
|
+
|
53
|
+
Minimal code to load this gem is:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
require "rvm/capistrano"
|
57
|
+
```
|
58
|
+
|
59
|
+
Usually it's placed in `config/deploy.rb`.
|
60
|
+
|
50
61
|
## Example
|
51
62
|
|
52
63
|
The following code will:
|
@@ -116,7 +127,7 @@ This will allow to use clean scripts where proper RVM settings are automatically
|
|
116
127
|
from the aliased wrappers. For example configuring
|
117
128
|
[PassengerRuby](http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerRuby)
|
118
129
|
with `/home/ad/.rvm//wrappers/ad/ruby`, this way there is no need for changing scripts
|
119
|
-
when the application ruby changes. In the
|
130
|
+
when the application ruby changes. In the same spirit you can use wrapper for `bundle`
|
120
131
|
in **cron** or **init.d** scripts with `/home/ad/.rvm//wrappers/ad/bundle exec [command]` -
|
121
132
|
it will automatically load proper configuration for the application, no need for any tricks.
|
122
133
|
|
data/lib/rvm/capistrano/base.rb
CHANGED
@@ -77,7 +77,11 @@ rvm_with_capistrano do
|
|
77
77
|
set :rvm_ruby_string_evaluated do
|
78
78
|
value = fetch(:rvm_ruby_string, :default)
|
79
79
|
if value.to_sym == :local
|
80
|
-
|
80
|
+
if defined? ENV['RUBY_VERSION']
|
81
|
+
value = ENV['RUBY_VERSION'].gsub('ruby-','')
|
82
|
+
else
|
83
|
+
value = ENV['GEM_HOME'].gsub(/.*\//,"")
|
84
|
+
end
|
81
85
|
end
|
82
86
|
value.to_s
|
83
87
|
end
|
metadata
CHANGED
@@ -1,125 +1,113 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvm-capistrano
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 5
|
9
|
-
- 1
|
10
|
-
version: 1.5.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Wayne E. Seguin
|
14
8
|
- Michal Papis
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: capistrano
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 59
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 15
|
33
|
-
- 4
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
34
20
|
version: 2.15.4
|
35
21
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rake
|
39
22
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.15.4
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
43
32
|
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
49
35
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: rspec
|
53
36
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
57
46
|
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
63
49
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: capistrano-spec
|
67
50
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: capistrano-spec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
71
60
|
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
77
63
|
type: :development
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: guard-rspec
|
81
64
|
prerelease: false
|
82
|
-
|
83
|
-
|
84
|
-
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: guard-rspec
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
85
74
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
version: "0"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
91
77
|
type: :development
|
92
|
-
version_requirements: *id005
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: guard-bundler
|
95
78
|
prerelease: false
|
96
|
-
|
97
|
-
|
98
|
-
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: guard-bundler
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
99
88
|
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
segments:
|
103
|
-
- 0
|
104
|
-
version: "0"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
105
91
|
type: :development
|
106
|
-
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
107
98
|
description: RVM / Capistrano Integration Gem
|
108
|
-
email:
|
99
|
+
email:
|
109
100
|
- wayneeseguin@gmail.com
|
110
101
|
- mpapis@gmail.com
|
111
102
|
executables: []
|
112
|
-
|
113
103
|
extensions: []
|
114
|
-
|
115
104
|
extra_rdoc_files: []
|
116
|
-
|
117
|
-
files:
|
105
|
+
files:
|
118
106
|
- History.md
|
107
|
+
- LICENSE
|
119
108
|
- Manifest.yml
|
120
109
|
- README.md
|
121
110
|
- Rakefile
|
122
|
-
- LICENSE
|
123
111
|
- lib/rvm/capistrano.rb
|
124
112
|
- lib/rvm/capistrano/alias_and_wrapp.rb
|
125
113
|
- lib/rvm/capistrano/base.rb
|
@@ -127,13 +115,6 @@ files:
|
|
127
115
|
- lib/rvm/capistrano/empty_gemset.rb
|
128
116
|
- lib/rvm/capistrano/gem_install_uninstall.rb
|
129
117
|
- lib/rvm/capistrano/gemset_import_export.rb
|
130
|
-
- lib/rvm/capistrano/info_list.rb
|
131
|
-
- lib/rvm/capistrano/install_pkgs.rb
|
132
|
-
- lib/rvm/capistrano/install_ruby.rb
|
133
|
-
- lib/rvm/capistrano/install_rvm.rb
|
134
|
-
- lib/rvm/capistrano/selector.rb
|
135
|
-
- lib/rvm/capistrano/selector_mixed.rb
|
136
|
-
- lib/rvm/capistrano/version.rb
|
137
118
|
- lib/rvm/capistrano/helpers/_cset.rb
|
138
119
|
- lib/rvm/capistrano/helpers/base.rb
|
139
120
|
- lib/rvm/capistrano/helpers/quote_and_escape.rb
|
@@ -141,51 +122,49 @@ files:
|
|
141
122
|
- lib/rvm/capistrano/helpers/rvm_if_sudo.rb
|
142
123
|
- lib/rvm/capistrano/helpers/rvm_methods.rb
|
143
124
|
- lib/rvm/capistrano/helpers/with_rvm_group.rb
|
144
|
-
-
|
125
|
+
- lib/rvm/capistrano/info_list.rb
|
126
|
+
- lib/rvm/capistrano/install_pkgs.rb
|
127
|
+
- lib/rvm/capistrano/install_ruby.rb
|
128
|
+
- lib/rvm/capistrano/install_rvm.rb
|
129
|
+
- lib/rvm/capistrano/selector.rb
|
130
|
+
- lib/rvm/capistrano/selector_mixed.rb
|
131
|
+
- lib/rvm/capistrano/version.rb
|
145
132
|
- spec/create_gemset_spec.rb
|
146
|
-
- spec/install_ruby_spec.rb
|
147
133
|
- spec/empty_gemset_spec.rb
|
148
|
-
- spec/
|
149
|
-
- spec/support/abort_matcher.rb
|
134
|
+
- spec/install_ruby_spec.rb
|
150
135
|
- spec/rvm_paths_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
- spec/support/abort_matcher.rb
|
138
|
+
- spec/support/capistrano.rb
|
151
139
|
homepage: https://github.com/wayneeseguin/rvm-capistrano
|
152
|
-
licenses:
|
140
|
+
licenses:
|
153
141
|
- MIT
|
142
|
+
metadata: {}
|
154
143
|
post_install_message:
|
155
144
|
rdoc_options: []
|
156
|
-
|
157
|
-
require_paths:
|
145
|
+
require_paths:
|
158
146
|
- lib
|
159
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
-
|
161
|
-
requirements:
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
162
149
|
- - ">="
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
version: "0"
|
168
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
171
154
|
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
version: "0"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
177
157
|
requirements: []
|
178
|
-
|
179
158
|
rubyforge_project:
|
180
|
-
rubygems_version:
|
159
|
+
rubygems_version: 2.2.2
|
181
160
|
signing_key:
|
182
|
-
specification_version:
|
161
|
+
specification_version: 4
|
183
162
|
summary: RVM / Capistrano Integration Gem
|
184
|
-
test_files:
|
185
|
-
- spec/
|
163
|
+
test_files:
|
164
|
+
- spec/support/abort_matcher.rb
|
165
|
+
- spec/support/capistrano.rb
|
186
166
|
- spec/create_gemset_spec.rb
|
187
|
-
- spec/install_ruby_spec.rb
|
188
167
|
- spec/empty_gemset_spec.rb
|
189
|
-
- spec/
|
190
|
-
- spec/support/abort_matcher.rb
|
168
|
+
- spec/install_ruby_spec.rb
|
191
169
|
- spec/rvm_paths_spec.rb
|
170
|
+
- spec/spec_helper.rb
|