wp-capistrano3 0.0.49 → 0.0.51

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 523bbfdb9d587a38482e3c0218c62b8628d671fdc691dcba603887f75aa0c8fe
4
- data.tar.gz: 5d53784e8bb7ba46970d82aa1b99bc6d9b060ea24802383c5745cc279a442b9b
3
+ metadata.gz: a7f4ca210ba73658823c7fd1c661d054ad82050b8b18d5f1b38c27595985da24
4
+ data.tar.gz: 7505da520d1844088c91dc05911799682a6ea4a227e7e9b84f712e7b6e37627b
5
5
  SHA512:
6
- metadata.gz: fa30741835b503f3c8ffd3e4b222d774b81e9127c28c0dda8a4c9644df56e6722a5be4d24a04856fad1b66a5d43c2cdc7f01dd32cc9e55a39842152b3b9bf44a
7
- data.tar.gz: f6ff7da6fb75a00cbee8fbf7e2eff6adb88f31952a4aa57f382561ff44f2bcc104fb78268d840bb589340879726436a81818e1bef9710e4ea1e4d67a4fd7ccb5
6
+ metadata.gz: 2d429b86af385fd495d789fff98705d1683aaecf46b088643a02328df28073e94a8424a5d936b72918f3d1e7990bb3073a890e4dd0b712bfc74bf8f84a414036
7
+ data.tar.gz: '0385f4425dd38006fd1a11e902f72dfa50b2a032fc4fb60f1a7bd32e2feae24e914056eb16dcd6d8fb9993e7b31caf5aafbd52be50e01861f715fb3a832eb368'
@@ -6,26 +6,25 @@ namespace "wp-capistrano" do
6
6
  jsonPlugins = []
7
7
  info "Check file #{release_path}/plugins.json"
8
8
  if (test("[ -f #{release_path}/plugins.json ]"))
9
- debug "#{release_path}/plugins.json exist"
9
+ info "#{release_path}/plugins.json exist"
10
10
  pluginsStr = capture("cat #{release_path}/plugins.json")
11
11
  jsonPlugins = JSON.parse(pluginsStr)
12
12
  end
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 'BEGIN{OFS=":"} {print $2,$4,$6,$8}'");
17
- execute "php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk 'BEGIN{OFS=":"} {print $2,$4,$6,$8}'"
16
+ execute "php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path}"
17
+ installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path}");
18
+ info installedPlugins
18
19
  plugins = []
19
20
  languages = []
20
-
21
21
  installedPlugins.each_line do |line|
22
-
23
- plugin = line.split(":");
24
- if(plugin[0].empty?)
25
- next
26
- end
27
- pluginInfo = {:slug => plugin[0], :version => plugin[1], :status => plugin[2] }
28
- plugins.push(pluginInfo)
22
+ plugin= line.scan(/[\w\-\.\_]+/)
23
+ if(plugin[0].empty?)
24
+ next
25
+ end
26
+ pluginInfo = {:slug => plugin[0], :version => plugin[1], :status => plugin[2] }
27
+ plugins.push(pluginInfo)
29
28
  end
30
29
  if( !jsonPlugins["plugins"].nil? )
31
30
  jsonPlugins["plugins"].each do |plugin, version|
@@ -98,4 +97,4 @@ namespace "wp-capistrano" do
98
97
  end
99
98
  end
100
99
  end
101
- end
100
+ end
@@ -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.49'
7
+ spec.version = '0.0.51'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.49
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano