rails_pwnerer 0.6.96 → 0.6.97

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.97. Allow "scaffold config" to run when a database already exists.
2
+
1
3
  v0.6.96. Another bugfix in the rubygems configuration.
2
4
 
3
5
  v0.6.95. Bugfix in rubygems configuration.
@@ -39,9 +39,8 @@ module RailsPwnerer::Config
39
39
  # creates a new database
40
40
  def self.create_db(db_name)
41
41
  db_name = db_name.to_s
42
- raise "Configuration database #{db_name} already exists" if get_db(db_name)
43
42
 
44
- db_contents = install_db_hooks Hash.new, db_name
43
+ db_contents = install_db_hooks({}, db_name)
45
44
  @@db_cache[db_name] = db_contents
46
45
  @@db_dirty[db_name] = true
47
46
  flush_db db_name
@@ -26,7 +26,7 @@ class RailsPwnerer::Scaffolds::Config
26
26
  # the user owning the /prod subtrees
27
27
  host_info[:pwnerer_user] = current_user
28
28
 
29
- RailsPwnerer::Config.flush_db :host
29
+ RailsPwnerer::Config.flush_db :host
30
30
 
31
31
  # the free port list
32
32
  RailsPwnerer::Config.init_ports
@@ -13,7 +13,7 @@ class RailsPwnerer::Scaffolds::Gems
13
13
  end
14
14
 
15
15
  def install_databases
16
- install_gems %w(mysql mysql2 pg sqlite3-ruby)
16
+ install_gems %w(mysql mysql2 pg sqlite3)
17
17
  install_gems %w(memcache-client)
18
18
  end
19
19
 
@@ -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.96"
5
+ s.version = "0.6.97"
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: 199
4
+ hash: 197
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 96
10
- version: 0.6.96
9
+ - 97
10
+ version: 0.6.97
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan