wp-capistrano3 0.0.43 → 0.0.45

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: 93639a0227e507ce17bcb94db193da1db7afaa4c63ca6b94f5924cc84a2bcbdd
4
- data.tar.gz: cb8d2c7f2d8fbbabb8e95fa5b6c0a29f00add3fb6170eb7a83b477ee2a95d0a3
3
+ metadata.gz: e1819548071838a28bfa91afcc3c18b9354d9575b76a6d118b136c660f52a993
4
+ data.tar.gz: 301a04defbbd083fecdf49e0f62e83b1b15995a5a7d3d3c2bf9a03f927634736
5
5
  SHA512:
6
- metadata.gz: 606050efd246ffdc757ce8cdb4bd948b4b02e719929ae71ba8110ec37d3e909cffb574fe9e7941eb4395c3e082b133bcf29c31ba65a18cdd7c060682e4cd016d
7
- data.tar.gz: 898b1bbc5a8f252c4876f47980192cb26b6715438fd5e24870be34c1197c31963983a7d555ef6142758dc312d3a894d8d7bfc71c1a242cf48c94c9634087014a
6
+ metadata.gz: 5d563b0a42a2da301aa60a6b613210fcd5d8e1bb61424e0175c27a54813d32295ad05e187b5c8066aa2e125fe26be59580bd64037785ecbd89301ca0f88152d3
7
+ data.tar.gz: 7ee786d436ab4ad4ce966f7873e5b95936ddd3d0252ed468e8d3ab5b1ca94ed5cb55f2c68bf31bddee6574ce4b27d55e2f3973b390e2e531c318ae9cb23dff3d
@@ -13,21 +13,17 @@ namespace "wp-capistrano" do
13
13
 
14
14
  if(test("[ -L #{current_path} ]"))
15
15
  info "installing pluggins..."
16
- installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $2 }'")
17
- installedPluginsArr = installedPlugins.to_s.gsub(/\n/, '|').split("|")
18
- installedPluginsStatus = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $4 }'")
19
- installedPluginsStatusArr = installedPluginsStatus.to_s.gsub(/\n/, '|').split("|")
20
- installedPluginsVersion = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $8 }'")
21
- installedPluginsVersionArr = installedPluginsVersion.to_s.gsub(/\n/, '|').split("|")
22
-
16
+ installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk 'BEGIN{OFS=":"} {print $2,$4,$6,$8}'").spit("\n");
17
+
23
18
  plugins = []
24
19
  languages = []
25
20
 
26
- installedPluginsArr.each_with_index do |plugin, index|
27
- if(index == 0)
21
+ installedPlugins.each_with_index do |pluginStr, index|
22
+ if(plugin[0].empty?)
28
23
  next
29
24
  end
30
- pluginInfo = {:slug => plugin, :version => installedPluginsVersionArr[index], :status => installedPluginsStatusArr[index] }
25
+ plugin = pluginStr.spit(":");
26
+ pluginInfo = {:slug => plugin[0], :version => plugin[1], :status => plugin[2] }
31
27
  plugins.push(pluginInfo)
32
28
  end
33
29
  if( !jsonPlugins["plugins"].nil? )
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'wp-capistrano3'
7
- spec.version = '0.0.43'
7
+ spec.version = '0.0.45'
8
8
  spec.authors = ['Nicolas RENAULT']
9
9
  spec.email = ['nrenault@tangkoko.com']
10
10
  spec.description = %q{Wordpress tasks for Capistrano 3.x}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT