rails_pwnerer 0.6.98 → 0.6.99

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.99. Reinstall gems when restoring an app from backup.
2
+
1
3
  v0.6.98. Fixed various crashes when restoring a backup.
2
4
 
3
5
  v0.6.97. Allow "scaffold config" to run when a database already exists.
@@ -36,6 +36,12 @@ class RailsPwnerer::App::Gems
36
36
  end
37
37
  end
38
38
 
39
+ def manage(app_name, instance_name, action)
40
+ # Called when an app is rolled back, to get the old gems reinstalled,
41
+ # if necessary.
42
+ update(app_name, instance_name)
43
+ end
44
+
39
45
  def setup(app_name, instance_name)
40
46
  update(app_name, instance_name)
41
47
  end
@@ -104,7 +104,7 @@ module RailsPwnerer::App
104
104
  end
105
105
  when :rollback
106
106
  self.update_app app, instance do
107
- [Files, Database, ClusterConfig].each do |mod|
107
+ [Files, Gems, Database, ClusterConfig].each do |mod|
108
108
  mod.new.manage app, instance, action
109
109
  end
110
110
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.98"
5
+ s.version = "0.6.99"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Victor Costan}]
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: 195
4
+ hash: 193
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 98
10
- version: 0.6.98
9
+ - 99
10
+ version: 0.6.99
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan