rails_pwnerer 0.6.84 → 0.6.85

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.85. Ignores bad configuration files in the application.
2
+
1
3
  v0.6.84. Configured nginx to set cache headers for static files.
2
4
 
3
5
  v0.6.83. Added zerg_support dependency.
@@ -85,11 +85,15 @@ class RailsPwnerer::App::Config
85
85
 
86
86
  ["config/rails_pwnerer/.yml", "config/rails_pwnerer/#{instance_name}.yml"].each do |fname|
87
87
  next unless File.exists? fname
88
- config_update = File.open(fname, 'r') { |f| YAML.load f }
88
+ config_update = File.open(fname, 'r') { |f| YAML.load f } rescue nil
89
+ unless config_update
90
+ print "Configuration file ignored due to parsing error - #{fname}\n"
91
+ config_update = {}
92
+ end
89
93
  config_update.each do |key, value|
90
94
  app_config[key] = value
91
95
  end
92
- end
96
+ end
93
97
  end
94
98
 
95
99
  # TODO: if database settings changed, the database should be moved (re-created or re-keyed)
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.84"
5
+ s.version = "0.6.85"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
9
- s.date = %q{2011-01-30}
9
+ s.date = %q{2011-02-27}
10
10
  s.default_executable = %q{bin/rpwn}
11
11
  s.description = %q{Rails deployment hack.}
12
12
  s.email = %q{victor@costan.us}
@@ -18,12 +18,11 @@ Gem::Specification.new do |s|
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails_pwnerer", "--main", "README"]
19
19
  s.require_paths = ["lib", "ext"]
20
20
  s.rubyforge_project = %q{rails-pwnage}
21
- s.rubygems_version = %q{1.3.7}
21
+ s.rubygems_version = %q{1.5.2}
22
22
  s.summary = %q{Rails deployment hack.}
23
23
  s.test_files = ["test/base_package_test.rb"]
24
24
 
25
25
  if s.respond_to? :specification_version then
26
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
26
  s.specification_version = 3
28
27
 
29
28
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 175
5
- prerelease: false
4
+ hash: 173
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 84
10
- version: 0.6.84
9
+ - 85
10
+ version: 0.6.85
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-30 00:00:00 -05:00
18
+ date: 2011-02-27 00:00:00 -05:00
19
19
  default_executable: bin/rpwn
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements: []
230
230
 
231
231
  rubyforge_project: rails-pwnage
232
- rubygems_version: 1.3.7
232
+ rubygems_version: 1.5.2
233
233
  signing_key:
234
234
  specification_version: 3
235
235
  summary: Rails deployment hack.