capistrano-wearerequired 1.3.1 → 2.0.0
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.
- checksums.yaml +4 -4
- data/.editorconfig +3 -0
- data/CHANGELOG.md +49 -0
- data/CONTRIBUTING.md +12 -0
- data/README.md +0 -57
- data/lib/capistrano/wearerequired/tasks/wordpress.rake +11 -10
- data/lib/capistrano/wearerequired/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 479ba072588849a876fa397fbced80d38a29f666
|
|
4
|
+
data.tar.gz: af37d7f87dbe0af91126f317f9b37908c8a6d33e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33f6f453b6d177433808b829087c1dddfb7d8da0de8ac6a47b3f434ab3502f8e3a674e5932c68dc149569e2c69cd35621b76daa193c24348dd1f405f1118fc65
|
|
7
|
+
data.tar.gz: ad4befc9955ce00b2f4f79da3d89ec1eca480016f5c21d1596545b9aed7015e835fcecad6721e99c1a6fdd4c81d7e3753e42481d36c9d2e21a4f586252172672
|
data/.editorconfig
CHANGED
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.0
|
|
4
|
+
* Requires WP-CLI 2.1.0 and newer
|
|
5
|
+
WP-CLI 2.1.0 introduced the `--all` flag for installing translations for all installed plugins/themes.
|
|
6
|
+
* Changed event from `deploy:finishing` to `deploy:updated` to install and update translations before publishing a new release without translations.
|
|
7
|
+
|
|
8
|
+
## 1.3.1
|
|
9
|
+
|
|
10
|
+
* Correct Slackistrano defaults tasks hook.
|
|
11
|
+
|
|
12
|
+
## 1.3.0
|
|
13
|
+
|
|
14
|
+
* Improve defaults for Slackistrano
|
|
15
|
+
Prevents warnings when not using Slack notifications at all.
|
|
16
|
+
* Improve WP-CLI error handling
|
|
17
|
+
Prevents clutter and early deployment fails when WP-CLI language commands error.
|
|
18
|
+
|
|
19
|
+
## 1.2.0
|
|
20
|
+
|
|
21
|
+
* Support WP-CLI 2.0.0 and newer
|
|
22
|
+
In WP-CLI 2.0.0 the `wp language plugin` and `wp language theme` commands were introduced.
|
|
23
|
+
|
|
24
|
+
## 1.1.0
|
|
25
|
+
|
|
26
|
+
* Support WP-CLI 1.2.0 and newer
|
|
27
|
+
In WP-CLI v1.2.0 the `wp core language` command was changed to `wp language core`.
|
|
28
|
+
* Get deployer's name from Git config in `SlackistranoMessagingElements`
|
|
29
|
+
|
|
30
|
+
## 1.0.0
|
|
31
|
+
|
|
32
|
+
* Renamed to `Capistrano::Wearerequired` and published on [rubygems.org](https://rubygems.org/gems/capistrano-wearerequired).
|
|
33
|
+
* Added `wordpress:clear_opcache` task.
|
|
34
|
+
* Added new messaging classes for Slackistrano for more informative notifications.
|
|
35
|
+
* Moved support for custom icon (via `icon_url` or `icon_emoji`) and bot name (via `username`) to its own class `SlackistranoMessagingElements`.
|
|
36
|
+
* `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors` which extends `SlackistranoMessagingElements`.
|
|
37
|
+
|
|
38
|
+
## 0.3.0
|
|
39
|
+
|
|
40
|
+
* Added `deploy:cleanup_all` task.
|
|
41
|
+
* Added `wordpress:install_translations` and `wordpress:update_translations` tasks.
|
|
42
|
+
|
|
43
|
+
## 0.2.0
|
|
44
|
+
|
|
45
|
+
* Added `composer:clear_cache` task.
|
|
46
|
+
|
|
47
|
+
## 0.1.0
|
|
48
|
+
|
|
49
|
+
* Initial version.
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Release Checklist
|
|
4
|
+
|
|
5
|
+
To build and ship a new version of this gem, you need to follow these steps:
|
|
6
|
+
|
|
7
|
+
1. Update changelog.
|
|
8
|
+
2. Change version in `lib/capistrano/wearerequired/version.rb`.
|
|
9
|
+
3. Build new gem using `gem build capistrano-wearerequired.gemspec`.
|
|
10
|
+
4. Publish gem using `gem push capistrano-wearerequired-<version>.gem`, e.g. `gem push capistrano-wearerequired-1.3.0.gem`.
|
|
11
|
+
5. Tag latest commit with `v<version>`, e,g. `v1.3.0`.
|
|
12
|
+
6. Merge `master` branch into `stable`
|
data/README.md
CHANGED
|
@@ -112,60 +112,3 @@ cap staging wordpress:clear_opcache
|
|
|
112
112
|
|
|
113
113
|
(Requires the [WP-CLI Clear OPcache](https://packagist.org/packages/wearerequired/wp-cli-clear-opcache) plugin.)
|
|
114
114
|
|
|
115
|
-
## Contributing
|
|
116
|
-
|
|
117
|
-
### Release Checklist
|
|
118
|
-
|
|
119
|
-
To build and ship a new version of this gem, you need to follow these steps:
|
|
120
|
-
|
|
121
|
-
1. Update changelog.
|
|
122
|
-
2. Change version in `lib/capistrano/wearerequired/version.rb`.
|
|
123
|
-
3. Build new gem using `gem build capistrano-wearerequired.gemspec`.
|
|
124
|
-
4. Publish gem using `gem push capistrano-wearerequired-<version>.gem`, e.g. `gem push capistrano-wearerequired-1.3.0.gem`.
|
|
125
|
-
5. Tag latest commit with `v<version>`, e,g. `v1.3.0`.
|
|
126
|
-
6. Merge `master` branch into `stable`
|
|
127
|
-
|
|
128
|
-
## Changelog
|
|
129
|
-
|
|
130
|
-
### 1.3.1
|
|
131
|
-
|
|
132
|
-
* Correct Slackistrano defaults tasks hook.
|
|
133
|
-
|
|
134
|
-
### 1.3.0
|
|
135
|
-
|
|
136
|
-
* Improve defaults for Slackistrano
|
|
137
|
-
Prevents warnings when not using Slack notifications at all.
|
|
138
|
-
* Improve WP-CLI error handling
|
|
139
|
-
Prevents clutter and early deployment fails when WP-CLI language commands error.
|
|
140
|
-
|
|
141
|
-
### 1.2.0
|
|
142
|
-
|
|
143
|
-
* Support WP-CLI 2.0.0 and newer
|
|
144
|
-
In WP-CLI 2.0.0 the `wp language plugin` and `wp language theme` commands were introduced.
|
|
145
|
-
|
|
146
|
-
### 1.1.0
|
|
147
|
-
|
|
148
|
-
* Support WP-CLI 1.2.0 and newer
|
|
149
|
-
In WP-CLI v1.2.0 the `wp core language` command was changed to `wp language core`.
|
|
150
|
-
* Get deployer's name from Git config in `SlackistranoMessagingElements`
|
|
151
|
-
|
|
152
|
-
### 1.0.0
|
|
153
|
-
|
|
154
|
-
* Renamed to `Capistrano::Wearerequired` and published on [rubygems.org](https://rubygems.org/gems/capistrano-wearerequired).
|
|
155
|
-
* Added `wordpress:clear_opcache` task.
|
|
156
|
-
* Added new messaging classes for Slackistrano for more informative notifications.
|
|
157
|
-
* Moved support for custom icon (via `icon_url` or `icon_emoji`) and bot name (via `username`) to its own class `SlackistranoMessagingElements`.
|
|
158
|
-
* `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors` which extends `SlackistranoMessagingElements`.
|
|
159
|
-
|
|
160
|
-
### 0.3.0
|
|
161
|
-
|
|
162
|
-
* Added `deploy:cleanup_all` task.
|
|
163
|
-
* Added `wordpress:install_translations` and `wordpress:update_translations` tasks.
|
|
164
|
-
|
|
165
|
-
### 0.2.0
|
|
166
|
-
|
|
167
|
-
* Added `composer:clear_cache` task.
|
|
168
|
-
|
|
169
|
-
### 0.1.0
|
|
170
|
-
|
|
171
|
-
* Initial version.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'shellwords'
|
|
2
|
+
|
|
1
3
|
namespace :wordpress do
|
|
2
4
|
|
|
3
5
|
desc <<-DESC
|
|
@@ -5,14 +7,13 @@ namespace :wordpress do
|
|
|
5
7
|
DESC
|
|
6
8
|
task :install_translations do
|
|
7
9
|
next unless fetch(:wp_languages).any?
|
|
10
|
+
languages = fetch(:wp_languages).shelljoin
|
|
8
11
|
|
|
9
12
|
on roles(:app) do
|
|
10
13
|
within release_path do
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
execute :wp, "theme list --field=name | xargs -I % wp language theme install % #{language} 2> /dev/null", raise_on_non_zero_exit: false
|
|
15
|
-
end
|
|
14
|
+
execute :wp, "language core install #{languages}"
|
|
15
|
+
execute :wp, "language plugin install --all #{languages} --format=csv"
|
|
16
|
+
execute :wp, "language theme install --all #{languages} --format=csv"
|
|
16
17
|
end
|
|
17
18
|
end
|
|
18
19
|
end
|
|
@@ -25,9 +26,9 @@ namespace :wordpress do
|
|
|
25
26
|
|
|
26
27
|
on roles(:app) do
|
|
27
28
|
within release_path do
|
|
28
|
-
execute :wp, "language core update"
|
|
29
|
-
execute :wp, "language plugin update --all"
|
|
30
|
-
execute :wp, "language theme update --all"
|
|
29
|
+
execute :wp, "language core update --quiet"
|
|
30
|
+
execute :wp, "language plugin update --all --quiet"
|
|
31
|
+
execute :wp, "language theme update --all --quiet"
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
end
|
|
@@ -46,8 +47,8 @@ namespace :wordpress do
|
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
|
|
49
|
-
after 'deploy:
|
|
50
|
-
after 'deploy:
|
|
50
|
+
after 'deploy:updated', 'wordpress:install_translations'
|
|
51
|
+
after 'deploy:updated', 'wordpress:update_translations'
|
|
51
52
|
after 'deploy:finishing', 'wordpress:clear_opcache'
|
|
52
53
|
end
|
|
53
54
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-wearerequired
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wearerequired
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2019-01-02 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: capistrano
|
|
@@ -92,6 +92,8 @@ extra_rdoc_files: []
|
|
|
92
92
|
files:
|
|
93
93
|
- ".editorconfig"
|
|
94
94
|
- ".gitignore"
|
|
95
|
+
- CHANGELOG.md
|
|
96
|
+
- CONTRIBUTING.md
|
|
95
97
|
- Gemfile
|
|
96
98
|
- LICENSE.txt
|
|
97
99
|
- README.md
|
|
@@ -130,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
130
132
|
version: '0'
|
|
131
133
|
requirements: []
|
|
132
134
|
rubyforge_project:
|
|
133
|
-
rubygems_version: 2.
|
|
135
|
+
rubygems_version: 2.6.14
|
|
134
136
|
signing_key:
|
|
135
137
|
specification_version: 4
|
|
136
138
|
summary: Recipes for Capistrano used by required gmbh
|