contao 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/contao.gemspec +0 -1
- data/lib/contao/version.rb +1 -1
- data/lib/tasks/contao.rake +8 -2
- metadata +3 -3
data/contao.gemspec
CHANGED
data/lib/contao/version.rb
CHANGED
data/lib/tasks/contao.rake
CHANGED
@@ -90,7 +90,7 @@ namespace :contao do
|
|
90
90
|
require 'active_support/core_ext/object/blank'
|
91
91
|
config = TechnoGate::Contao::Application.config.contao_global_config
|
92
92
|
|
93
|
-
if !config
|
93
|
+
if !config || config.install_password.blank? || config.encryption_key.blank?
|
94
94
|
message = <<-EOS
|
95
95
|
You did not set the install password, and the encryption key in your
|
96
96
|
#{ENV['HOME']}/.contao/config.yml, I cannot generate a localconfig
|
@@ -101,7 +101,13 @@ namespace :contao do
|
|
101
101
|
else
|
102
102
|
config = config.clone
|
103
103
|
config.application_name = TechnoGate::Contao::Application.name
|
104
|
-
|
104
|
+
|
105
|
+
config.db_server_app = 'mysql'
|
106
|
+
config.db_hostname = config.mysql.host
|
107
|
+
config.db_port = config.mysql.port
|
108
|
+
config.db_username = config.mysql.user
|
109
|
+
config.db_password = config.mysql.pass
|
110
|
+
config.db_database = TechnoGate::Contao::Application.name
|
105
111
|
|
106
112
|
localconfig_template = Rails.root.join 'config/examples/localconfig.php.erb'
|
107
113
|
localconfig_path = public_path.join 'system/config/localconfig.php'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
segments:
|
173
173
|
- 0
|
174
|
-
hash:
|
174
|
+
hash: 1353541920061163065
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
177
|
rubygems_version: 1.8.23
|