capistrano-wp 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTVkMDRjNDBlOWU3ZjY2NjYxMjIxMTFiYTBmMDllYWNmMWY3MGUzNw==
5
+ data.tar.gz: !binary |-
6
+ MDMwOThmMjhlN2UzZGMxOWRjZmQzZTczZmQyOGMyMDY4MTQyOGQxMg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ N2I1MzhkM2MwYWE2OGRkMzk1ODUyYzFhZjlkYTE3OTdjZTM1YzA4NTMwMGY5
10
+ ZmZjNGNkZDJhMmIwN2Y0ZTA4OWNiN2U4MDIwMzEzZTI4ODM5OGY5ZmQ1NDM0
11
+ ZjkzMGVkZWQ3YjQzZTY1OTFiMTQ5ZTQ5MDNhMjE0YWM2NTMyMGQ=
12
+ data.tar.gz: !binary |-
13
+ ZGYwOTczYjBmODNlNDRjMjQ3NTJhNDc2NDZjY2U0YjE1Y2M3ZDdiMDE5MDc4
14
+ NTExZDUyY2RiNzg2NTUyZTE2NThiNjhmYzAzMGVkNzhjNzdlYWQ5NDE4YjE0
15
+ ZmQ2NjBhYjMyZmEyMmZkNjI2NjE3NTRjYzQxMDY0MDI2M2QzYzA=
data/README.md CHANGED
@@ -17,7 +17,7 @@ also deploy multisite environments with WP at the root).
17
17
  ## Usage
18
18
 
19
19
  This is a plugin for the Capistrano deployment tool. If you are unfamiliar
20
- with Capistrano, we would suggest at least familiarizing yoruself with
20
+ with Capistrano, we would suggest at least familiarizing yourself with
21
21
  the general concepts outlined in the [Capistrano Wiki](https://github.com/capistrano/capistrano/wiki).
22
22
 
23
23
  ### Assumptions (Requirements)
@@ -56,7 +56,7 @@ For documentation regarding this portion of functionality, see the
56
56
 
57
57
  This gem handles WordPress via SVN directly from WordPress.org.
58
58
 
59
- In your main `config/deploy.rb` file you will see how to decalare what
59
+ In your main `config/deploy.rb` file you will see how to declare what
60
60
  version of WordPress you wish to use by defining an SVN location
61
61
  like `branches/3.6`, `tags/3.6.1` or even `trunk`:
62
62
 
@@ -89,7 +89,7 @@ set :wordpress_version, false
89
89
  ### Persistent file/directory symlinks
90
90
 
91
91
  This gem augments the way capistrano handles directories you need to "persist"
92
- between releases. Providing a declaritive interface for these items.
92
+ between releases. Providing a declarative interface for these items.
93
93
 
94
94
  There are some common directories that WordPress needs to act this way. By
95
95
  default, if the following directories exist in the "shared" directory, they
@@ -155,7 +155,7 @@ set :wp_configs, [{
155
155
  You can follow the same steps as the symlinks for modification or addition
156
156
  to the default config copying rules.
157
157
 
158
- ### Stage specfiic overrides
158
+ ### Stage specific overrides
159
159
 
160
160
  Stage specific overrides allow you to target specific configuration
161
161
  files to their respective stage.
@@ -176,7 +176,7 @@ This will place the proper `production-htaccess` file in the root of
176
176
  your next release, overriding any existing file of the same name.
177
177
 
178
178
  By default, it looks for the common `.htaccess` situation
179
- along withh `local-config.php`
179
+ along with `local-config.php`
180
180
 
181
181
  ```ruby
182
182
  set :stage_specific_overrides, {
@@ -229,7 +229,7 @@ This gem by default checks the current release for modifications since
229
229
  it was deployed. Either you're dealing with clients that like to make
230
230
  changes in production, or you have plugins that write configs and other
231
231
  things to the file system. This step protects you against moving changes
232
- that have happend in the target stage out of use.
232
+ that have happened in the target stage out of use.
233
233
 
234
234
  When deploying, if it detects a change it will stop the deploy process, and
235
235
  provide you with a listing of all the files that have been either added,
@@ -269,6 +269,16 @@ to a given file - deletion, creation, or content changes - while the other lists
269
269
  may be useful for more limited exclusions - for instance, a file that can be deleted
270
270
  but should never be changed if it remains present.
271
271
 
272
+ ### Enhanced :git capistrano scm module
273
+
274
+ capistrano-wp includes a slight enhancement to the `:git` scm
275
+ module. The one shipped with Capistrano 2 does not gracefully
276
+ handle submodules being removed in the repo; they stick around in
277
+ the cached copy.
278
+
279
+ The enhancement gives an extra -f to `git clean` to induce it to remove
280
+ the submodule detritus, and also runs the clean in every submodule
281
+ (with `git submodule foreach`).
272
282
 
273
283
  ## Development
274
284
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
@@ -2,14 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: capistrano-wp 0.4.8 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "capistrano-wp"
8
- s.version = "0.4.7"
9
+ s.version = "0.4.8"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
12
  s.authors = ["Crowd Favorite"]
12
- s.date = "2013-11-14"
13
+ s.date = "2014-01-29"
13
14
  s.description = "Recipes for deploying and maintaining remote WordPress installations with\nCapistrano. Pulls in WordPress from SVN, optionally using a local or\nremote cache, and supports a number of common operations and tasks towards\nthe care and feeding of sites that may not be 100% maintained through\nversion control.\n"
14
15
  s.executables = ["capify-wp"]
15
16
  s.extra_rdoc_files = [
@@ -33,6 +34,7 @@ Gem::Specification.new do |s|
33
34
  "doc/examples/config/staging-local-config.php",
34
35
  "lib/capistrano-wp.rb",
35
36
  "lib/capistrano/crowdfavorite/wordpress.rb",
37
+ "lib/capistrano/recipes/deploy/scm/git-enhanced.rb",
36
38
  "lib/capistrano/templates/Capfile",
37
39
  "lib/capistrano/templates/config/deploy.rb",
38
40
  "lib/capistrano/templates/config/deploy/production.rb",
@@ -53,11 +55,11 @@ Gem::Specification.new do |s|
53
55
  s.homepage = "http://github.com/crowdfavorite/gem-capistrano-wp"
54
56
  s.licenses = ["Apache License version 2"]
55
57
  s.require_paths = ["lib"]
56
- s.rubygems_version = "1.8.25"
58
+ s.rubygems_version = "2.1.11"
57
59
  s.summary = "Crowd Favorite WordPress Capistrano recipes"
58
60
 
59
61
  if s.respond_to? :specification_version then
60
- s.specification_version = 3
62
+ s.specification_version = 4
61
63
 
62
64
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
65
  s.add_runtime_dependency(%q<capistrano>, ["~> 2.15.3"])
@@ -0,0 +1,55 @@
1
+ require 'capistrano/recipes/deploy/scm/base'
2
+ require 'capistrano/recipes/deploy/scm/git'
3
+
4
+ module Capistrano
5
+ module Deploy
6
+ module SCM
7
+ class Git < Base
8
+ # Merges the changes to 'head' since the last fetch, for remote_cache
9
+ # deployment strategy
10
+ def sync(revision, destination)
11
+ git = command
12
+ remote = origin
13
+
14
+ execute = []
15
+ execute << "cd #{destination}"
16
+
17
+ # Use git-config to setup a remote tracking branches. Could use
18
+ # git-remote but it complains when a remote of the same name already
19
+ # exists, git-config will just silenty overwrite the setting every
20
+ # time. This could cause wierd-ness in the remote cache if the url
21
+ # changes between calls, but as long as the repositories are all
22
+ # based from each other it should still work fine.
23
+ if remote != 'origin'
24
+ execute << "#{git} config remote.#{remote}.url #{variable(:repository)}"
25
+ execute << "#{git} config remote.#{remote}.fetch +refs/heads/*:refs/remotes/#{remote}/*"
26
+ end
27
+
28
+ # since we're in a local branch already, just reset to specified revision rather than merge
29
+ execute << "#{git} fetch #{verbose} #{remote} && #{git} fetch --tags #{verbose} #{remote} && #{git} reset #{verbose} --hard #{revision}"
30
+
31
+ if variable(:git_enable_submodules)
32
+ execute << "#{git} submodule #{verbose} init"
33
+ execute << "#{git} submodule #{verbose} sync"
34
+ if false == variable(:git_submodules_recursive)
35
+ execute << "#{git} submodule #{verbose} update --init"
36
+ else
37
+ execute << %Q(export GIT_RECURSIVE=$([ ! "`#{git} --version`" \\< "git version 1.6.5" ] && echo --recursive))
38
+ execute << "#{git} submodule #{verbose} update --init $GIT_RECURSIVE"
39
+ end
40
+ end
41
+
42
+ # Make sure there's nothing else lying around in the repository (for
43
+ # example, a submodule that has subsequently been removed).
44
+ execute << "#{git} clean #{verbose} -d -x -f -f"
45
+
46
+ if variable(:git_enable_submodules)
47
+ execute << "#{git} submodule #{verbose} foreach $GIT_RECURSIVE #{git} clean #{verbose} -d -x -f -f"
48
+ end
49
+ execute.join(" && ")
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
@@ -16,6 +16,7 @@
16
16
 
17
17
  require 'crowdfavorite/tasks/wordpress'
18
18
  require 'crowdfavorite/tasks/localchanges'
19
+ require 'capistrano/recipes/deploy/scm/git-enhanced'
19
20
 
20
21
  module CrowdFavorite::WordPress
21
22
  extend CrowdFavorite::Support::Namespace
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-wp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
5
- prerelease:
4
+ version: 0.4.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Crowd Favorite
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
11
+ date: 2014-01-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: capistrano-ext
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: railsless-deploy
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: erubis
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: bundler
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: jeweler
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
@@ -126,7 +111,6 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: simplecov
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ! '>='
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ! '>='
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: capistrano-spec
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ! '>='
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ! '>='
156
137
  - !ruby/object:Gem::Version
@@ -191,6 +172,7 @@ files:
191
172
  - doc/examples/config/staging-local-config.php
192
173
  - lib/capistrano-wp.rb
193
174
  - lib/capistrano/crowdfavorite/wordpress.rb
175
+ - lib/capistrano/recipes/deploy/scm/git-enhanced.rb
194
176
  - lib/capistrano/templates/Capfile
195
177
  - lib/capistrano/templates/config/deploy.rb
196
178
  - lib/capistrano/templates/config/deploy/production.rb
@@ -210,26 +192,25 @@ files:
210
192
  homepage: http://github.com/crowdfavorite/gem-capistrano-wp
211
193
  licenses:
212
194
  - Apache License version 2
195
+ metadata: {}
213
196
  post_install_message:
214
197
  rdoc_options: []
215
198
  require_paths:
216
199
  - lib
217
200
  required_ruby_version: !ruby/object:Gem::Requirement
218
- none: false
219
201
  requirements:
220
202
  - - ! '>='
221
203
  - !ruby/object:Gem::Version
222
204
  version: '0'
223
205
  required_rubygems_version: !ruby/object:Gem::Requirement
224
- none: false
225
206
  requirements:
226
207
  - - ! '>='
227
208
  - !ruby/object:Gem::Version
228
209
  version: '0'
229
210
  requirements: []
230
211
  rubyforge_project:
231
- rubygems_version: 1.8.25
212
+ rubygems_version: 2.1.11
232
213
  signing_key:
233
- specification_version: 3
214
+ specification_version: 4
234
215
  summary: Crowd Favorite WordPress Capistrano recipes
235
216
  test_files: []