capistrano-wearerequired 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: bbbfbd1abe90eed9229a0240a9f99a1a292a2426
4
- data.tar.gz: 218a7d64e42025e316bee547d8ed1574374efe81
3
+ metadata.gz: d90f1081fc7aaec443723334fcf71297ad403006
4
+ data.tar.gz: e2e7b12e93bc91f0603a96919dd6ff40fa0d77c5
5
5
  SHA512:
6
- metadata.gz: 71e388dc67bcabc9053ed29d93dcb5092aa5928bf7cebeeb4742ba04021e621208fe2b61dc3b6ca2e7f8436c54e4e601a578dc793b8c05a050b8f251671608dc
7
- data.tar.gz: 68e6c28419fc15e0f3eb2c555c176533d3263cf0cdc6af724bb62d74296ed1a75503af020384e553abf0d6cef0d10a90514f3ca4542a0266e0eba722fae0e3bf
6
+ metadata.gz: 34da2852badf17ab982022675137d38a8b8435994392a2d142a3ea89e07db9776f8bc2b1e6c830589d891dec086c142f2b65081bdc0821b6ea8c8b9741e3dd23
7
+ data.tar.gz: fcd6f5d290fd9f9f26b443de0d0785edbc88457d5aff054d23b6c67e0fd0e50569827023e8ef250b7371bd0f680961cf19e0d1a321aded6b2881200ac8ccb125
data/README.md CHANGED
@@ -54,6 +54,8 @@ set :slackistrano, {
54
54
  }
55
55
  ```
56
56
 
57
+ ![image](https://user-images.githubusercontent.com/1785641/30828166-73a570be-a245-11e7-8e1e-9eda33719179.png)
58
+
57
59
  ### Expanded Git Messaging for Slackistrano
58
60
 
59
61
  The class `SlackistranoExpandedGitMessaging` adds a link to the current diff, the current revision and branch, the name of the deployer and suppresses update messages. `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors`.
@@ -67,6 +69,8 @@ set :slackistrano, {
67
69
  }
68
70
  ```
69
71
 
72
+ ![image](https://user-images.githubusercontent.com/1785641/30828269-c5e55fc4-a245-11e7-8ac9-94cf299ef5a3.png)
73
+
70
74
  See [Customizing the Messaging](https://github.com/phallstrom/slackistrano/tree/v3.1.0#customizing-the-messaging) for more information.
71
75
 
72
76
  ### Additional tasks
@@ -100,7 +104,7 @@ To **update WordPress translations** run:
100
104
  cap staging wordpress: update_translations
101
105
  ```
102
106
 
103
- To **clear OPcache** of your site set `:wp_clear_opcache, true` and run:
107
+ To **clear OPcache** of your site `set :wp_clear_opcache, true` and run:
104
108
 
105
109
  ```
106
110
  cap staging wordpress:clear_opcache
@@ -111,13 +115,19 @@ cap staging wordpress:clear_opcache
111
115
 
112
116
  ## Changelog
113
117
 
118
+ ### 1.1.0
119
+
120
+ * Support WP-CLI 1.2.0 and newer
121
+ In WP-CLI v1.2.0 the `wp core language` command was changed to `wp language core`.
122
+ * Get deployer's name from Git config in `SlackistranoMessagingElements`
123
+
114
124
  ### 1.0.0
115
125
 
116
126
  * Renamed to `Capistrano::Wearerequired` and published on [rubygems.org](https://rubygems.org/gems/capistrano-wearerequired).
117
127
  * Added `wordpress:clear_opcache` task.
118
128
  * Added new messaging classes for Slackistrano for more informative notifications.
119
- * Moved support for custom icon (via `icon_url` or `icon_emoji`) and bot name (via `username`) to it's own class `SlackistranoMessagingElements`.
120
- * `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors` which extends `SlackistranoMessagingElements`.
129
+ * Moved support for custom icon (via `icon_url` or `icon_emoji`) and bot name (via `username`) to its own class `SlackistranoMessagingElements`.
130
+ * `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors` which extends `SlackistranoMessagingElements`.
121
131
 
122
132
  ### 0.3.0
123
133
 
@@ -31,6 +31,14 @@ module Capistrano
31
31
  end
32
32
  end
33
33
 
34
+ # Override the deployer helper to pull the best name available (git, password file, env vars).
35
+ def deployer
36
+ name = `git config user.name`.strip.split.first
37
+ name = nil if name.empty?
38
+ name ||= Etc.getpwnam(ENV['USER']).gecos || ENV['USER'] || ENV['USERNAME']
39
+ name
40
+ end
41
+
34
42
  end
35
43
  end
36
44
  end
@@ -9,7 +9,7 @@ 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, "core language install #{language}"
12
+ execute :wp, "language core install #{language}"
13
13
  end
14
14
  end
15
15
  end
@@ -23,7 +23,7 @@ namespace :wordpress do
23
23
 
24
24
  on roles(:app) do
25
25
  within release_path do
26
- execute :wp, "core language update"
26
+ execute :wp, "language core update"
27
27
  end
28
28
  end
29
29
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Wearerequired
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.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.0.0
4
+ version: 1.1.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: 2017-09-18 00:00:00.000000000 Z
14
+ date: 2017-11-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capistrano
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.6.11
131
+ rubygems_version: 2.6.14
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Recipes for Capistrano used by required gmbh