rails_pwnerer 0.6.77 → 0.6.78

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.78. UTF-8 in mysql configuration.
2
+
1
3
  v0.6.77. UTF-8 forced in nginx config.
2
4
 
3
5
  v0.6.76. Remove funky characters from application names.
@@ -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
- if !configuration['production'] or
76
- !configuration['production']['adapter'] or
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) }
@@ -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.77"
5
+ s.version = "0.6.78"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["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: 157
4
+ hash: 155
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 77
10
- version: 0.6.77
9
+ - 78
10
+ version: 0.6.78
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan