rails_pwnerer 0.6.60 → 0.6.61

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.61. Smarter code for choosing between mysql and mysql2, since the latter is still buggy.
2
+
1
3
  v0.6.60. Switched Rails database adapter to mysql2.
2
4
 
3
5
  v0.6.59. Bugfix in pgsql scaffold code.
@@ -71,8 +71,11 @@ ENDSQL
71
71
  db_name, db_user, db_pass = app_config[:db_name], app_config[:db_user], app_config[:db_pass]
72
72
 
73
73
  config_file = File.join app_config[:app_path], 'config', 'database.yml'
74
- configuration = File.open(config_file, 'r') { |f| YAML.load f }
75
- configuration['production'].merge! 'adapter' => 'mysql2', 'database' => db_name, 'username' => db_user, 'password' => db_pass
74
+ configuration = File.open(config_file, 'r') { |f| YAML.load f }
75
+ unless /mysql/ =~ (configuration['production'] || '')
76
+ configuration['production'] = 'mysql2'
77
+ end
78
+ configuration['production'].merge! 'database' => db_name, 'username' => db_user, 'password' => db_pass
76
79
  configuration['production'].merge! mysql_host_info()
77
80
  File.open(config_file, 'w') { |f| YAML.dump(configuration, f) }
78
81
 
@@ -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.60"
5
+ s.version = "0.6.61"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 60
9
- version: 0.6.60
8
+ - 61
9
+ version: 0.6.61
10
10
  platform: ruby
11
11
  authors:
12
12
  - Victor Costan