rails_pwnerer 0.6.5 → 0.6.6

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.6. Bugfix in configuration update system: wasn't retaining database settings.
2
+
1
3
  v0.6.5. Faster killing in kill_process_set, plus now it honors the :verbose option.
2
4
 
3
5
  v0.6.4. Added configuration variable for the environment. Switched to a more determinstic config update model.
@@ -54,7 +54,11 @@ class RailsPwnage::App::Config
54
54
  # pushes config changes from the application file to the database
55
55
  def update(app_name, instance_name)
56
56
  app_config = RailsPwnage::Config[app_name, instance_name]
57
+
58
+ db_name, db_user, db_pass = app_config[:db_name], app_config[:db_user], app_config[:db_pass]
57
59
  app_config.clear
60
+ app_config[:db_name], app_config[:db_user], app_config[:db_pass] = db_name, db_user, db_pass
61
+
58
62
  populate_defaults app_name, instance_name, app_config
59
63
  Dir.chdir app_config[:app_path] do
60
64
  ["config/rails_pwnerer/.yml", "config/rails_pwnerer/#{instance_name}.yml"].each do |fname|
@@ -65,6 +69,9 @@ class RailsPwnage::App::Config
65
69
  end
66
70
  end
67
71
  end
72
+
73
+ # TODO: if database settings changed, the database should be moved (re-created or re-keyed)
74
+
68
75
  RailsPwnage::Config.flush_db RailsPwnage::Config.app_db_name(app_name, instance_name)
69
76
  end
70
77
 
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Rails_pwnerer-0.6.5
2
+ # Gem::Specification for Rails_pwnerer-0.6.6
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: rails_pwnerer
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.6.5
8
+ version: 0.6.6
9
9
  platform: ruby
10
10
  authors:
11
11
  - Victor Costan
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-09-21 00:00:00 -04:00
15
+ date: 2008-09-22 00:00:00 -04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-21 00:00:00 -04:00
12
+ date: 2008-09-22 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency