matthewtodd-wordpress 0.6.0 → 0.6.1

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.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.6.1
2
+
3
+ * Update deploy:setup:config to write new secret keys introduced in Wordpress 2.6.
4
+ * Update deploy.rb to match what I like to use.
5
+
1
6
  == 0.6.0
2
7
 
3
8
  * Slight documentation updates.
data/lib/wordpress/cli.rb CHANGED
@@ -27,22 +27,19 @@ module Wordpress
27
27
  END
28
28
 
29
29
  file 'deploy.rb', <<-END
30
- set :application, 'set your application name here'
31
- set :repository, 'set your repository location here'
32
- set :database_name, 'set your database name here'
33
- set :database_username, 'set your database username here'
30
+ set :application, 'set your application name here'
31
+
32
+ server 'your server here', :web, :user => 'your user here'
34
33
 
35
- # If you aren't deploying to /u/apps/\#{application} on the target
36
- # servers (which is the default), you can specify the actual location
37
- # via the :deploy_to variable:
38
- # set :deploy_to, "/var/www/\#{application}"
34
+ set :scm, :git
35
+ set :local_repository, "your server here:git/#{application}.git"
36
+ set :repository, "/path/to/repos/git/#{application}.git"
37
+ set :git_shallow_clone, 1
39
38
 
40
- # If you aren't using Subversion to manage your source code, specify
41
- # your SCM below:
42
- # set :scm, :git
43
- # set :git_shallow_clone, 1
39
+ set :deploy_to, '/path/to/domains/your domain here/var/www'
44
40
 
45
- server 'your server here', :web, :app, :db, :primary => true
41
+ set :database_name, 'set your database name here'
42
+ set :database_username, 'set your database username here'
46
43
  END
47
44
 
48
45
  file 'lighttpd.conf', <<-END
@@ -119,11 +116,14 @@ module Wordpress
119
116
  )
120
117
  END
121
118
 
122
- config = Wordpress.config(:db_name => File.basename(base),
123
- :db_user => 'root',
124
- :db_password => '',
125
- :secret_key => Digest::SHA1.hexdigest(rand.to_s),
126
- :abspath => '/../public/')
119
+ config = Wordpress.config(:db_name => File.basename(base),
120
+ :db_user => 'root',
121
+ :db_password => '',
122
+ :auth_key => Digest::SHA1.hexdigest(rand.to_s),
123
+ :secure_auth_key => Digest::SHA1.hexdigest(rand.to_s),
124
+ :logged_in_key => Digest::SHA1.hexdigest(rand.to_s),
125
+ :nonce_key => Digest::SHA1.hexdigest(rand.to_s),
126
+ :abspath => '/../public/')
127
127
 
128
128
  file 'wp-config.php', config
129
129
  file 'wp-config-sample.php', config
@@ -161,11 +161,14 @@ Capistrano::Configuration.instance(:must_exist).load do
161
161
  DESC
162
162
  task :config, :except => { :no_release => true } do
163
163
  require 'digest/sha1'
164
- wp_config = Wordpress.config(:db_name => database_name,
165
- :db_user => database_username,
166
- :db_password => database_password,
167
- :secret_key => Digest::SHA1.hexdigest(rand.to_s),
168
- :abspath => '/../current/public/')
164
+ wp_config = Wordpress.config(:db_name => database_name,
165
+ :db_user => database_username,
166
+ :db_password => database_password,
167
+ :auth_key => Digest::SHA1.hexdigest(rand.to_s),
168
+ :secure_auth_key => Digest::SHA1.hexdigest(rand.to_s),
169
+ :logged_in_key => Digest::SHA1.hexdigest(rand.to_s),
170
+ :nonce_key => Digest::SHA1.hexdigest(rand.to_s),
171
+ :abspath => '/../current/public/')
169
172
 
170
173
  put wp_config, "#{shared_path}/wp-config.php", :mode => 0600
171
174
  end
data/lib/wordpress.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'wordpress/release'
2
2
 
3
3
  module Wordpress #:nodoc:
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
 
6
6
  def self.config(options={})
7
7
  config = release.contents('wp-config-sample.php')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matthewtodd-wordpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Todd
@@ -56,7 +56,7 @@ rdoc_options:
56
56
  - --main
57
57
  - README.rdoc
58
58
  - --title
59
- - wordpress-0.6.0
59
+ - wordpress-0.6.1
60
60
  - --inline-source
61
61
  - --line-numbers
62
62
  - --all