wp-capistrano3 0.0.41 → 0.0.43

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: 9a070b9a864afbe240ca9eb4f4ce6a385df2286bbdef3466618db8d81421a6a2
4
- data.tar.gz: d462a92e3577b724d799cc8709dd63ea32e256bce615850f46872397720e2620
3
+ metadata.gz: 93639a0227e507ce17bcb94db193da1db7afaa4c63ca6b94f5924cc84a2bcbdd
4
+ data.tar.gz: cb8d2c7f2d8fbbabb8e95fa5b6c0a29f00add3fb6170eb7a83b477ee2a95d0a3
5
5
  SHA512:
6
- metadata.gz: 92cab3844c07da731dd7b05156866914eb2525aee1a14963ed49d554dc547629bf2c75107f9d32207261d8593e5f6809c71f75c7774349c4caae5d95b97d1b1a
7
- data.tar.gz: 5ce8927e70176a3657511c6a72ae49d220d43974d8e2e14ebb35e40c60533b191e21ec980a584b3bcfc98cf8d1ef516c9e2d5b7f0b0067ad1cc5aca853536d88
6
+ metadata.gz: 606050efd246ffdc757ce8cdb4bd948b4b02e719929ae71ba8110ec37d3e909cffb574fe9e7941eb4395c3e082b133bcf29c31ba65a18cdd7c060682e4cd016d
7
+ data.tar.gz: 898b1bbc5a8f252c4876f47980192cb26b6715438fd5e24870be34c1197c31963983a7d555ef6142758dc312d3a894d8d7bfc71c1a242cf48c94c9634087014a
@@ -13,11 +13,11 @@ 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 $1 }'")
16
+ installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $2 }'")
17
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 $2 }'")
18
+ installedPluginsStatus = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $4 }'")
19
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 $4 }'")
20
+ installedPluginsVersion = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk '{ print $8 }'")
21
21
  installedPluginsVersionArr = installedPluginsVersion.to_s.gsub(/\n/, '|').split("|")
22
22
 
23
23
  plugins = []
@@ -57,10 +57,10 @@ namespace "wp-capistrano" do
57
57
  next
58
58
  end
59
59
 
60
- if(plugin[:slug].empty?){
60
+ if(plugin[:slug].empty?)
61
61
  warn "Slug empty : '#{plugin[:slug]}'"
62
62
  next
63
- }
63
+ end
64
64
 
65
65
  existingPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin search #{plugin[:slug]} --path=#{release_path} --field=slug --per-page=999999")
66
66
  if (existingPlugins.to_s.gsub(/\n/, '|').split("|").include?("#{plugin[:slug]}") == false)
@@ -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.41'
7
+ spec.version = '0.0.43'
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.41
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT