wp-capistrano3 0.0.37 → 0.0.38

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: 6eefb117293ba312cd0ebcf70dc41c11d32bd585b907b4ec82031da74f646cff
4
- data.tar.gz: bfecc88f8796bf6515f9c1fb53ffe343dc6ac07ebf1d85c7df4c6007e390e0e1
3
+ metadata.gz: 40f206837328d69794d78d494eb166b824cb2b80e0a7f9c332a94353df415eee
4
+ data.tar.gz: 872356e78f1c74cb4f76adde179111bb2d1dfb27b2ac95684802c3bfd7707d6c
5
5
  SHA512:
6
- metadata.gz: 2597131efaa245a155a4d5b979cc93f9062f0fe160080cd70bd619f1c17577e95e01b6cb9d675c03b90c07b4e4aa264386315a59d2b31939e6138a79ec6ab435
7
- data.tar.gz: '0087ec5b314a120f8b665d2e0bc486e3f0f6b10bb43f287cc97ed653dd8d83e0e8f36a319fd104d7f821a4dd8c9c9ff712c8969be36304bc4376ba7ad3097d20'
6
+ metadata.gz: 1bca3c81c216c2da7f276827e35ba2d2b32fbb063d806ea7ec1d1800fce3e950b671aa3d2dbf346dfccc7e80417a1b84e6c0d2df424cc64b55a60ef1a063f52a
7
+ data.tar.gz: 790e319db40815a549ae574a968fe477a13caa0512ce5d915335076db223e62a0c4f7e7b8ee03f2d78a329952c382754bdbdf672ae44df1c176825416175bba5
@@ -52,17 +52,17 @@ namespace "wp-capistrano" do
52
52
 
53
53
 
54
54
  plugins.each do |plugin|
55
+ if (plugin[:version] == "uninstall")
56
+ warn "Uninstall pluggin #{plugin[:slug]}"
57
+ next
58
+ end
59
+
55
60
  existingPlugins = capture("/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin search #{plugin[:slug]} --path=#{release_path} --field=slug --per-page=999999")
56
61
  if (existingPlugins.to_s.gsub(/\n/, '|').split("|").include?("#{plugin[:slug]}") == false)
57
62
  warn "Pluggin #{plugin[:slug]} not known in wordpress repository. skip installation"
58
63
  next
59
64
  end
60
65
 
61
- if (plugin[:version] == "uninstall")
62
- warn "Uninstall pluggin #{plugin[:slug]}"
63
- next
64
- end
65
-
66
66
  info "install #{plugin[:slug]}:#{plugin[:version]}"
67
67
  if(plugin[:version]) == "latest"
68
68
  execute "/usr/bin/env php #{fetch(:tmp_dir)}/wp-cli.phar plugin install #{plugin[:slug]} --path=#{release_path} --force"
@@ -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.37'
7
+ spec.version = '0.0.38'
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.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -81,7 +81,7 @@ homepage: https://github.com/nicoren-tangkoko/wp-capistrano
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}
84
- post_install_message:
84
+ post_install_message:
85
85
  rdoc_options: []
86
86
  require_paths:
87
87
  - lib
@@ -96,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.2.15
100
- signing_key:
99
+ rubygems_version: 3.3.15
100
+ signing_key:
101
101
  specification_version: 4
102
102
  summary: Wordpress tasks for Capistrano 3.x
103
103
  test_files: []