rails_pwnerer 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.9. Re-keying the database on every update.
2
+
1
3
  v0.6.8. Added command for re-keying an app (changing the db user's password).
2
4
 
3
5
  v0.6.7. Tighter permissions around the configuration database files.
@@ -61,9 +61,9 @@ class RailsPwnage::App::Config
61
61
 
62
62
  db_name, db_user, db_pass = app_config[:db_name], app_config[:db_user], app_config[:db_pass]
63
63
  app_config.clear
64
- # TODO: don't restore the password, to force new password generation on the update
64
+ # NOTE: we don't restore the password on purpose, to get a new password on the update
65
65
  # this is useful so processes that were spawned before the update can't corrupt the db
66
- app_config[:db_name], app_config[:db_user], app_config[:db_pass] = db_name, db_user, db_pass
66
+ app_config[:db_name], app_config[:db_user] = db_name, db_user
67
67
 
68
68
  populate_defaults app_name, instance_name, app_config
69
69
  Dir.chdir app_config[:app_path] do
@@ -79,7 +79,7 @@ class RailsPwnage::App::Config
79
79
  # TODO: if database settings changed, the database should be moved (re-created or re-keyed)
80
80
  if db_pass != app_config[:db_pass]
81
81
  db_pass = random_db_password if !db_pass || db_pass.empty?
82
- RailsPwnage::Databaase.new.manage app_name, instance_name, :rekey
82
+ RailsPwnage::App::Database.new.manage app_name, instance_name, :rekey
83
83
  end
84
84
 
85
85
  RailsPwnage::Config.flush_db RailsPwnage::Config.app_db_name(app_name, instance_name)
@@ -1,11 +1,11 @@
1
1
 
2
- # Gem::Specification for Rails_pwnerer-0.6.8
2
+ # Gem::Specification for Rails_pwnerer-0.6.9
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.8
8
+ version: 0.6.9
9
9
  platform: ruby
10
10
  authors:
11
11
  - Victor Costan
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.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan