capistrano-wearerequired 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bff5ed912d5b107c27d4568c001bbc0c7f1ad0aa8b7fe05d9e7b54a58cd5c511
4
- data.tar.gz: 4c8843b7032475bdd1fffec02bfa0bbe5060b74c968886320716a59c92beda20
3
+ metadata.gz: b4b96fa245953d099d7348bde5e873b92a3decb9f0712bc6906952587ba78e4d
4
+ data.tar.gz: 354306dc9c6934ba5e031122a08737097fff35dfac8d5f4f76e36a6f688f9dc8
5
5
  SHA512:
6
- metadata.gz: 89f3c6c0bf458c9b404eb6b3d4c6baf04320379638f867a2a661108a376ed9ee5372bb8c0e1eb17ef4aa7ebfc9122b01affe2e48a82ac56c1908075abe967cc3
7
- data.tar.gz: f769d29e87e85baf3a3559e054ddf88a16c64be83b3faaf8f19a47220395b966442ef34a9f768cb853384547de74a7f2cedb5ffecddb7fc3b5f0b99dc7bc1b61
6
+ metadata.gz: 1904f86c2c4873f7931670187f24a4ce0d4f40307d4ab516b3370d1c14f862cb9880c7d90dcc8eb2a4cf2b80986e84a72a8c08a0aa3fcbb2b8dcd8cdebda42dd
7
+ data.tar.gz: 25e45e1102f2fd10cffce2e01d2431ce26e08683588c8613d98af6c3a375aad1fdf77f4bb82e048568b9d51738ef5ce6a602856e95c03fe295e1e78fec330526
data/README.md CHANGED
@@ -112,9 +112,28 @@ 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-<version>.gem`, e.g. `gem build capistrano-wearerequired-1.3.0.gem`.
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`
115
127
 
116
128
  ## Changelog
117
129
 
130
+ ### 1.3.0
131
+
132
+ * Improve defaults for Slackistrano
133
+ Prevents warnings when not using Slack notifications at all.
134
+ * Improve WP-CLI error handling
135
+ Prevents clutter and early deployment fails when WP-CLI language commands error.
136
+
118
137
  ### 1.2.0
119
138
 
120
139
  * Support WP-CLI 2.0.0 and newer
@@ -5,6 +5,7 @@ module Capistrano
5
5
  end
6
6
  end
7
7
 
8
+ require "capistrano/wearerequired/slackistrano.rb"
8
9
  require "capistrano/wearerequired/slackistrano_messaging_elements"
9
10
  require "capistrano/wearerequired/slackistrano_messaging_colors"
10
11
  require "capistrano/wearerequired/slackistrano_extended_git_messaging"
@@ -0,0 +1 @@
1
+ load File.expand_path('../tasks/slackistrano.rake', __FILE__)
@@ -0,0 +1,10 @@
1
+ namespace :slackistrano do
2
+
3
+ desc <<-DESC
4
+ Sets some defaults for Slackistrano to not cause warnings when not using Slack notifications.
5
+ DESC
6
+ task :defaults do
7
+ set_if_empty :slackistrano, false
8
+ end
9
+ before 'slack:deploy', 'slackistrano:defaults'
10
+ end
@@ -9,9 +9,9 @@ namespace :wordpress do
9
9
  on roles(:app) do
10
10
  within release_path do
11
11
  fetch(:wp_languages).each do |language|
12
- execute :wp, "language core install #{language}"
13
- execute :wp, "plugin list --field=name | xargs -I % wp language plugin install % #{language}"
14
- execute :wp, "theme list --field=name | xargs -I % wp language theme install % #{language}"
12
+ execute :wp, "language core install #{language} 2> /dev/null", raise_on_non_zero_exit: false
13
+ execute :wp, "plugin list --field=name | xargs -I % wp language plugin install % #{language} 2> /dev/null", raise_on_non_zero_exit: false
14
+ execute :wp, "theme list --field=name | xargs -I % wp language theme install % #{language} 2> /dev/null", raise_on_non_zero_exit: false
15
15
  end
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Wearerequired
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
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: 1.2.0
4
+ version: 1.3.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: 2018-09-05 00:00:00.000000000 Z
14
+ date: 2018-09-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capistrano
@@ -100,11 +100,13 @@ files:
100
100
  - lib/capistrano/wearerequired.rb
101
101
  - lib/capistrano/wearerequired/capistrano.rb
102
102
  - lib/capistrano/wearerequired/composer.rb
103
+ - lib/capistrano/wearerequired/slackistrano.rb
103
104
  - lib/capistrano/wearerequired/slackistrano_extended_git_messaging.rb
104
105
  - lib/capistrano/wearerequired/slackistrano_messaging_colors.rb
105
106
  - lib/capistrano/wearerequired/slackistrano_messaging_elements.rb
106
107
  - lib/capistrano/wearerequired/tasks/capistrano.rake
107
108
  - lib/capistrano/wearerequired/tasks/composer.rake
109
+ - lib/capistrano/wearerequired/tasks/slackistrano.rake
108
110
  - lib/capistrano/wearerequired/tasks/wordpress.rake
109
111
  - lib/capistrano/wearerequired/version.rb
110
112
  - lib/capistrano/wearerequired/wordpress.rb