rails_pwnerer 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/pwnage/app/config.rb +3 -3
- data/rails_pwnerer.gemspec +2 -2
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/pwnage/app/config.rb
CHANGED
@@ -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
|
-
#
|
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]
|
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::
|
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)
|
data/rails_pwnerer.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Rails_pwnerer-0.6.
|
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
|
+
version: 0.6.9
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- Victor Costan
|