rvm-capistrano 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -7
- data/History.md +4 -0
- data/lib/rvm/capistrano/install_ruby.rb +0 -1
- data/lib/rvm/capistrano/version.rb +1 -1
- data/spec/create_gemset_spec.rb +3 -3
- data/spec/empty_gemset_spec.rb +2 -2
- data/spec/install_ruby_spec.rb +4 -4
- data/spec/rvm_paths_spec.rb +15 -15
- metadata +96 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c5481c544e68713327cb9876595473ca73acc555
|
4
|
+
data.tar.gz: 81b564c17658ea1d4bf279401603fc1e62261ae0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 61cb7d4bb5ef3d81efa23b13a24ab726b7c148761d93f07c827042f7a3b60dbc186df1470ce79f35858ad7b6ce5c4dd5a9d8368f7adf33b61a97d91781c748f1
|
7
|
+
data.tar.gz: cd4b6a1d7610263303bcdc34f3d7b13ccd560077b6367637b128d34e7069dde24ca11bb4cbd94f7274faeb16353014db1a2a943da314bf98047153bc50158293
|
data/History.md
CHANGED
@@ -48,7 +48,6 @@ ruby can not be installed when using :rvm_ruby_string => :#{ruby}
|
|
48
48
|
1 read read-only
|
49
49
|
2 fail read-fail
|
50
50
|
).include?( autolibs_flag )
|
51
|
-
autolibs_flag = "1" unless autolibs_flag_no_requirements
|
52
51
|
|
53
52
|
install_ruby_threads = fetch(:rvm_install_ruby_threads,nil).nil? ? '' : "-j #{rvm_install_ruby_threads}"
|
54
53
|
unless autolibs_flag_no_requirements
|
data/spec/create_gemset_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe "rvm:create_gemset task" do
|
|
12
12
|
it "should create a gemset in $HOME" do
|
13
13
|
@configuration.trigger :load
|
14
14
|
expected = "$HOME/.rvm/bin/rvm 2.0.0 do rvm gemset create #{@gemset}"
|
15
|
-
@task.namespace.
|
15
|
+
expect(@task.namespace).to receive(:run_without_rvm).with(expected)
|
16
16
|
@configuration.execute_task @task
|
17
17
|
end
|
18
18
|
|
@@ -25,7 +25,7 @@ describe "rvm:create_gemset task" do
|
|
25
25
|
else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm 2.0.0 do rvm gemset create #{@gemset}' ;
|
26
26
|
fi
|
27
27
|
EOSHELL
|
28
|
-
@task.namespace.
|
28
|
+
expect(@task.namespace).to receive(:run_without_rvm).with(expected)
|
29
29
|
@configuration.execute_task @task
|
30
30
|
end
|
31
31
|
|
@@ -38,7 +38,7 @@ describe "rvm:create_gemset task" do
|
|
38
38
|
expected = \
|
39
39
|
"/usr/local/rvm/bin/rvm 2.0.0 do rvm user gemsets ; " +
|
40
40
|
"/usr/local/rvm/bin/rvm 2.0.0 do rvm gemset create #{@gemset}"
|
41
|
-
task.namespace.
|
41
|
+
expect(task.namespace).to receive(:run_without_rvm).with(expected)
|
42
42
|
@configuration.execute_task task
|
43
43
|
end
|
44
44
|
end
|
data/spec/empty_gemset_spec.rb
CHANGED
@@ -13,7 +13,7 @@ describe "rvm:create_gemset task" do
|
|
13
13
|
it "should empty a gemset in $HOME" do
|
14
14
|
@configuration.trigger :load
|
15
15
|
expected = "$HOME/.rvm/bin/rvm 2.0.0 do rvm --force gemset empty #{@gemset}"
|
16
|
-
@task.namespace.
|
16
|
+
expect(@task.namespace).to receive(:run_without_rvm).with(expected)
|
17
17
|
@configuration.execute_task @task
|
18
18
|
end
|
19
19
|
|
@@ -26,7 +26,7 @@ describe "rvm:create_gemset task" do
|
|
26
26
|
else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm 2.0.0 do rvm --force gemset empty #{@gemset}' ;
|
27
27
|
fi
|
28
28
|
EOSHELL
|
29
|
-
@task.namespace.
|
29
|
+
expect(@task.namespace).to receive(:run_without_rvm).with(expected)
|
30
30
|
@configuration.execute_task @task
|
31
31
|
end
|
32
32
|
end
|
data/spec/install_ruby_spec.rb
CHANGED
@@ -25,7 +25,7 @@ describe "rvm:install_ruby task" do
|
|
25
25
|
rm -rf $CURL_HOME;
|
26
26
|
exit ${__LAST_STATUS}
|
27
27
|
EOSHELL
|
28
|
-
@configuration.
|
28
|
+
expect(@configuration).to receive(:run_without_rvm).with(expected)
|
29
29
|
@configuration.execute_task @task
|
30
30
|
end
|
31
31
|
|
@@ -54,7 +54,7 @@ describe "rvm:install_ruby task" do
|
|
54
54
|
rm -rf $CURL_HOME;
|
55
55
|
exit ${__LAST_STATUS}
|
56
56
|
EOSHELL
|
57
|
-
@configuration.
|
57
|
+
expect(@configuration).to receive(:run_without_rvm).with(expected)
|
58
58
|
@configuration.execute_task @task
|
59
59
|
end
|
60
60
|
|
@@ -85,7 +85,7 @@ describe "rvm:install_ruby task" do
|
|
85
85
|
rm -rf $CURL_HOME;
|
86
86
|
exit ${__LAST_STATUS}
|
87
87
|
EOSHELL
|
88
|
-
@configuration.
|
88
|
+
expect(@configuration).to receive(:run_without_rvm).with(expected)
|
89
89
|
@configuration.execute_task @task
|
90
90
|
end
|
91
91
|
end
|
@@ -113,7 +113,7 @@ describe "rvm:install_ruby task" do
|
|
113
113
|
rm -rf $CURL_HOME;
|
114
114
|
exit ${__LAST_STATUS}
|
115
115
|
EOSHELL
|
116
|
-
@configuration.
|
116
|
+
expect(@configuration).to receive(:run_without_rvm).with(expected)
|
117
117
|
@configuration.execute_task @task
|
118
118
|
end
|
119
119
|
end
|
data/spec/rvm_paths_spec.rb
CHANGED
@@ -7,27 +7,27 @@ describe "rvm paths" do
|
|
7
7
|
before { @configuration.trigger(:load) }
|
8
8
|
|
9
9
|
it "should return default system path" do
|
10
|
-
@configuration.fetch(:rvm_system_path).
|
10
|
+
expect(@configuration.fetch(:rvm_system_path)).to eq('/usr/local/rvm')
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should return default user path" do
|
14
|
-
@configuration.fetch(:rvm_user_path).
|
14
|
+
expect(@configuration.fetch(:rvm_user_path)).to eq('$HOME/.rvm')
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should return default installation mode" do
|
18
|
-
@configuration.fetch(:rvm_type).
|
18
|
+
expect(@configuration.fetch(:rvm_type)).to eq(:user)
|
19
19
|
end
|
20
20
|
|
21
21
|
it "should return default path" do
|
22
|
-
@configuration.fetch(:rvm_path).
|
22
|
+
expect(@configuration.fetch(:rvm_path)).to eq('$HOME/.rvm')
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should return default bin path" do
|
26
|
-
@configuration.fetch(:rvm_bin_path).
|
26
|
+
expect(@configuration.fetch(:rvm_bin_path)).to eq('$HOME/.rvm/bin')
|
27
27
|
end
|
28
28
|
|
29
29
|
it "should return default gemset path" do
|
30
|
-
@configuration.fetch(:rvm_gemset_path).
|
30
|
+
expect(@configuration.fetch(:rvm_gemset_path)).to eq('$HOME/.rvm/gemsets')
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -38,15 +38,15 @@ describe "rvm paths" do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
it "should return default path" do
|
41
|
-
@configuration.fetch(:rvm_path).
|
41
|
+
expect(@configuration.fetch(:rvm_path)).to eq('/usr/local/rvm')
|
42
42
|
end
|
43
43
|
|
44
44
|
it "should return system bin path" do
|
45
|
-
@configuration.fetch(:rvm_bin_path).
|
45
|
+
expect(@configuration.fetch(:rvm_bin_path)).to eq('/usr/local/rvm/bin')
|
46
46
|
end
|
47
47
|
|
48
48
|
it "should return system gemset path" do
|
49
|
-
@configuration.fetch(:rvm_gemset_path).
|
49
|
+
expect(@configuration.fetch(:rvm_gemset_path)).to eq('/usr/local/rvm/gemsets')
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -56,38 +56,38 @@ describe "rvm paths" do
|
|
56
56
|
|
57
57
|
it "should abort if rvm_type is :mixed and rvm_user empty" do
|
58
58
|
expect { @configuration.trigger(:load) }.to \
|
59
|
-
|
59
|
+
raise_error(/When rvm_type is :mixed, you must also set rvm_user/)
|
60
60
|
end
|
61
61
|
|
62
62
|
it "should abort if rvm_user isn't an Array" do
|
63
63
|
@configuration.set(:rvm_user, "a string")
|
64
64
|
expect { @configuration.trigger(:load) }.to \
|
65
|
-
|
65
|
+
raise_error(/rvm_user must be an Array/)
|
66
66
|
end
|
67
67
|
|
68
68
|
it "should abort if rvm_user contains an invalid value" do
|
69
69
|
@configuration.set(:rvm_user, [ :invalid_value ])
|
70
70
|
expect { @configuration.trigger(:load) }.to \
|
71
|
-
|
71
|
+
raise_error(/Invalid value\(s\) in rvm_user: invalid_value/)
|
72
72
|
end
|
73
73
|
|
74
74
|
it "should abort if rvm_user mixes :none with other values" do
|
75
75
|
@configuration.set(:rvm_user, [ :none, :gemsets ])
|
76
76
|
expect { @configuration.trigger(:load) }.to \
|
77
|
-
|
77
|
+
raise_error(/rvm_user cannot mix :none with other values/)
|
78
78
|
end
|
79
79
|
|
80
80
|
it "should abort if rvm_user mixes :all with other values" do
|
81
81
|
@configuration.set(:rvm_user, [ :gemsets, :all ])
|
82
82
|
expect { @configuration.trigger(:load) }.to \
|
83
|
-
|
83
|
+
raise_error(/rvm_user cannot mix :all with other values/)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
87
|
it "should abort if rvm_user is set and rvm_type isn't :mixed" do
|
88
88
|
@configuration.set(:rvm_user, [ :gemsets ])
|
89
89
|
expect { @configuration.trigger(:load) }.to \
|
90
|
-
|
90
|
+
raise_error(/rvm_user must not be set unless rvm_type is :mixed/)
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
metadata
CHANGED
@@ -1,81 +1,108 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvm-capistrano
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Wayne E. Seguin
|
8
8
|
- Michal Papis
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: capistrano
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Version
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
22
20
|
version: 2.15.4
|
23
21
|
type: :runtime
|
24
|
-
version_requirements: *id001
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: rake
|
27
22
|
prerelease: false
|
28
|
-
|
29
|
-
requirements:
|
30
|
-
-
|
31
|
-
-
|
32
|
-
|
33
|
-
|
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:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
34
35
|
type: :development
|
35
|
-
version_requirements: *id002
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rspec
|
38
36
|
prerelease: false
|
39
|
-
|
40
|
-
requirements:
|
41
|
-
-
|
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:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.0'
|
42
49
|
type: :development
|
43
|
-
version_requirements: *id004
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: capistrano-spec
|
46
50
|
prerelease: false
|
47
|
-
|
48
|
-
requirements:
|
49
|
-
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: capistrano-spec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
50
63
|
type: :development
|
51
|
-
version_requirements: *id005
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: guard-rspec
|
54
64
|
prerelease: false
|
55
|
-
|
56
|
-
requirements:
|
57
|
-
-
|
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:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
58
77
|
type: :development
|
59
|
-
version_requirements: *id006
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: guard-bundler
|
62
78
|
prerelease: false
|
63
|
-
|
64
|
-
requirements:
|
65
|
-
-
|
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:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
66
91
|
type: :development
|
67
|
-
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
68
98
|
description: RVM / Capistrano Integration Gem
|
69
|
-
email:
|
99
|
+
email:
|
70
100
|
- wayneeseguin@gmail.com
|
71
101
|
- mpapis@gmail.com
|
72
102
|
executables: []
|
73
|
-
|
74
103
|
extensions: []
|
75
|
-
|
76
104
|
extra_rdoc_files: []
|
77
|
-
|
78
|
-
files:
|
105
|
+
files:
|
79
106
|
- History.md
|
80
107
|
- Manifest.yml
|
81
108
|
- README.md
|
@@ -104,39 +131,41 @@ files:
|
|
104
131
|
- lib/rvm/capistrano/helpers/with_rvm_group.rb
|
105
132
|
- spec/support/abort_matcher.rb
|
106
133
|
- spec/support/capistrano.rb
|
134
|
+
- spec/spec_helper.rb
|
107
135
|
- spec/create_gemset_spec.rb
|
108
136
|
- spec/empty_gemset_spec.rb
|
109
137
|
- spec/install_ruby_spec.rb
|
110
138
|
- spec/rvm_paths_spec.rb
|
111
|
-
- spec/spec_helper.rb
|
112
139
|
homepage: https://github.com/wayneeseguin/rvm-capistrano
|
113
|
-
licenses:
|
140
|
+
licenses:
|
114
141
|
- MIT
|
115
142
|
metadata: {}
|
116
|
-
|
117
143
|
post_install_message:
|
118
144
|
rdoc_options: []
|
119
|
-
|
120
|
-
require_paths:
|
145
|
+
require_paths:
|
121
146
|
- lib
|
122
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
requirements:
|
124
|
-
-
|
125
|
-
|
126
|
-
|
127
|
-
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
128
157
|
requirements: []
|
129
|
-
|
130
158
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.0.
|
159
|
+
rubygems_version: 2.0.15
|
132
160
|
signing_key:
|
133
161
|
specification_version: 4
|
134
162
|
summary: RVM / Capistrano Integration Gem
|
135
|
-
test_files:
|
163
|
+
test_files:
|
136
164
|
- spec/support/abort_matcher.rb
|
137
165
|
- spec/support/capistrano.rb
|
166
|
+
- spec/spec_helper.rb
|
138
167
|
- spec/create_gemset_spec.rb
|
139
168
|
- spec/empty_gemset_spec.rb
|
140
169
|
- spec/install_ruby_spec.rb
|
141
170
|
- spec/rvm_paths_spec.rb
|
142
|
-
|
171
|
+
has_rdoc:
|