rails_pwnerer 0.6.77 → 0.6.78
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/rails_pwnerer/app/db/mysql.rb +3 -2
- data/rails_pwnerer.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -72,11 +72,12 @@ ENDSQL
|
|
72
72
|
|
73
73
|
config_file = File.join app_config[:app_path], 'config', 'database.yml'
|
74
74
|
configuration = File.open(config_file, 'r') { |f| YAML.load f }
|
75
|
-
|
76
|
-
|
75
|
+
configuration['production'] ||= {}
|
76
|
+
if !configuration['production']['adapter'] or
|
77
77
|
!(/mysql/ =~ configuration['production']['adapter'])
|
78
78
|
configuration['production']['adapter'] = 'mysql2'
|
79
79
|
end
|
80
|
+
configuration['production']['encoding'] ||= 'utf-8'
|
80
81
|
configuration['production'].merge! 'database' => db_name, 'username' => db_user, 'password' => db_pass
|
81
82
|
configuration['production'].merge! mysql_host_info()
|
82
83
|
File.open(config_file, 'w') { |f| YAML.dump(configuration, f) }
|
data/rails_pwnerer.gemspec
CHANGED
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:
|
4
|
+
hash: 155
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 78
|
10
|
+
version: 0.6.78
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|