kete-capistrano-configuration 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.1.1 (January 7, 2009)
2
+
3
+ * Fixing deployment issues
4
+ - Configuration write now happens after symlink, not code update (so current directory is present)
5
+ - YAML files were parsing incorrectly (would leave backslashes at the end of lines breaking format)
6
+
1
7
  == 0.1.0 (January 6, 2009)
2
8
 
3
9
  * Initial Release
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capistrano-configuration"
5
- s.version = "0.1.0"
6
- s.date = "2009-01-06"
5
+ s.version = "0.1.1"
6
+ s.date = "2009-01-07"
7
7
  s.author = "Kieran Pilkington"
8
8
  s.email = "kieran@katipo.co.nz"
9
9
  s.homepage = "http://github.com/kete/capistrano-configuration"
@@ -42,7 +42,8 @@ module CapistranoConfiguration
42
42
  abort "@@configurations is empty. Did you forget to define some configurations?" if @@configurations.empty?
43
43
  @@configurations.each do |file, value|
44
44
  run "cd #{current_path} && rm -rf config/#{file}.yml"
45
- run "cd #{current_path} && echo '#{value.to_yaml.gsub("'", "\\'")}' >> config/#{file}.yml"
45
+ yaml = value.to_yaml.gsub("\n", '\n').gsub('"', '\"')
46
+ run "cd #{current_path} && echo \"#{yaml}\" >> config/#{file}.yml"
46
47
  end
47
48
  end
48
49
 
@@ -50,7 +51,7 @@ module CapistranoConfiguration
50
51
 
51
52
  end
52
53
 
53
- after "deploy:update_code", "deploy:configuration:write"
54
+ after "deploy:symlink", "deploy:configuration:write"
54
55
 
55
56
  end
56
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kete-capistrano-configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kieran Pilkington
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-06 00:00:00 -08:00
12
+ date: 2009-01-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency