capper 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/capper.gemspec +1 -1
- data/lib/capper/bundler.rb +6 -1
- data/lib/capper/rvm.rb +4 -0
- metadata +10 -10
data/capper.gemspec
CHANGED
data/lib/capper/bundler.rb
CHANGED
@@ -12,10 +12,15 @@ Capper.load do
|
|
12
12
|
# instead, use the gemset selected by rvm_ruby_string
|
13
13
|
set(:bundle_dir) { File.join(shared_path, 'bundle', rvm_ruby_string) }
|
14
14
|
|
15
|
+
# freeze bundler version
|
16
|
+
_cset(:bundler_version, "1.0.17")
|
17
|
+
|
15
18
|
namespace :bundle do
|
16
19
|
desc "Setup bundler"
|
17
20
|
task :setup, :except => {:no_release => true} do
|
18
|
-
run "if ! gem query -i -n ^bundler$ >/dev/null; then
|
21
|
+
run "if ! gem query -i -n ^bundler$ -v #{bundler_version} >/dev/null; then " +
|
22
|
+
"gem install bundler -v #{bundler_version}; " +
|
23
|
+
"fi"
|
19
24
|
run "mkdir -p #{bundle_dir}"
|
20
25
|
end
|
21
26
|
end
|
data/lib/capper/rvm.rb
CHANGED
@@ -8,6 +8,7 @@ require "capper/gem"
|
|
8
8
|
Capper.load do
|
9
9
|
set(:rvm_type, :user)
|
10
10
|
set(:rvm_ruby_string, File.read(".rvmrc").gsub(/^rvm use --create (.*)/, '\1').strip)
|
11
|
+
_cset(:rvm_rubygems_version, "1.6.2")
|
11
12
|
|
12
13
|
namespace :rvm do
|
13
14
|
# install the requested ruby if missing
|
@@ -25,6 +26,9 @@ Capper.load do
|
|
25
26
|
|
26
27
|
# this ensures that Gentoos declare -x RUBYOPT="-rauto_gem" is ignored.
|
27
28
|
run "touch ~/.rvm/rubies/#{wo_gemset}/lib/ruby/site_ruby/auto_gem.rb"
|
29
|
+
|
30
|
+
# freeze rubygems version
|
31
|
+
run("rvm rubygems #{rvm_rubygems_version}")
|
28
32
|
end
|
29
33
|
|
30
34
|
# prevents interactive rvm dialog
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubis
|
16
|
-
requirement: &
|
16
|
+
requirement: &18309160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18309160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano
|
27
|
-
requirement: &
|
27
|
+
requirement: &18308720 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *18308720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capistrano_colors
|
38
|
-
requirement: &
|
38
|
+
requirement: &18308300 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *18308300
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &18307800 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.0.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *18307800
|
58
58
|
description: Capistrano is a collection of opinionated Capistrano recipes
|
59
59
|
email:
|
60
60
|
- bb@xnull.de
|