capper 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/capper.gemspec +1 -1
  2. data/lib/capper/base.rb +9 -3
  3. metadata +10 -10
data/capper.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capper"
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Benedikt Böhm"]
data/lib/capper/base.rb CHANGED
@@ -45,14 +45,17 @@ Capper.load do
45
45
  _cset(:bin_path) { File.join(deploy_to, "bin") }
46
46
  _cset(:base_path) { "/var/app" }
47
47
  _cset(:config_path) { "#{shared_path}/config" }
48
- set(:deploy_to) { "#{base_path}/#{application}" }
48
+ _cset(:deploy_to) { "#{base_path}/#{application}" }
49
49
 
50
50
  # do not clobber asset timestamps by default
51
51
  _cset(:normalize_asset_timestamps, false)
52
52
 
53
- # cleanup by default
54
- after "deploy:update", "deploy:cleanup"
53
+ # set proper unicode locale, so gemspecs with unicode chars will not crash
54
+ # bundler. see https://github.com/capistrano/capistrano/issues/70
55
+ _cset(:default_environment, { 'LANG' => 'en_US.UTF-8' })
55
56
 
57
+ # overwrite deploy:setup to get rid of the annoying chmod g+w which makes ssh
58
+ # logins impossible
56
59
  namespace :deploy do
57
60
  desc <<-DESC
58
61
  Prepares one or more servers for deployment. Before you can use any \
@@ -73,4 +76,7 @@ Capper.load do
73
76
  run "mkdir -p #{dirs.join(' ')}"
74
77
  end
75
78
  end
79
+
80
+ # cleanup by default
81
+ after "deploy:update", "deploy:cleanup"
76
82
  end
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.3.3
4
+ version: 0.3.4
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-04 00:00:00.000000000Z
12
+ date: 2011-08-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
16
- requirement: &7727200 !ruby/object:Gem::Requirement
16
+ requirement: &12576420 !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: *7727200
24
+ version_requirements: *12576420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano
27
- requirement: &7726760 !ruby/object:Gem::Requirement
27
+ requirement: &12575980 !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: *7726760
35
+ version_requirements: *12575980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: capistrano_colors
38
- requirement: &7726340 !ruby/object:Gem::Requirement
38
+ requirement: &12575560 !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: *7726340
46
+ version_requirements: *12575560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &7725840 !ruby/object:Gem::Requirement
49
+ requirement: &12575060 !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: *7725840
57
+ version_requirements: *12575060
58
58
  description: Capistrano is a collection of opinionated Capistrano recipes
59
59
  email:
60
60
  - bb@xnull.de