wp-capistrano3 0.0.50 → 0.0.51

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: b1de8c4d251c7ab931073122260568b60081e5eaf7a4e80ad0c34a58a23b7a61
4
- data.tar.gz: 845a973e1940fe0dcb6cb8bb57c48fcfd398f39687caeb3eaa729434ed6a1fa7
3
+ metadata.gz: a7f4ca210ba73658823c7fd1c661d054ad82050b8b18d5f1b38c27595985da24
4
+ data.tar.gz: 7505da520d1844088c91dc05911799682a6ea4a227e7e9b84f712e7b6e37627b
5
5
  SHA512:
6
- metadata.gz: 637e35a910d967464fde9162978c7f95cd7a1f2a02c9f25a2be5ff5bd3b58397fbd9bc938152ad0b9a6737014b7d366afee00279eb7b18d29be86e818515ac1a
7
- data.tar.gz: fc83a7599e9088b88dc9f87be8c9026b23d92cc334879644ca067beae4ad939c43c006acaaeaacbe38ae596b884661dd9231ef1ae3067dbca1e20f4a3a798af0
6
+ metadata.gz: 2d429b86af385fd495d789fff98705d1683aaecf46b088643a02328df28073e94a8424a5d936b72918f3d1e7990bb3073a890e4dd0b712bfc74bf8f84a414036
7
+ data.tar.gz: '0385f4425dd38006fd1a11e902f72dfa50b2a032fc4fb60f1a7bd32e2feae24e914056eb16dcd6d8fb9993e7b31caf5aafbd52be50e01861f715fb3a832eb368'
@@ -13,20 +13,18 @@ namespace "wp-capistrano" do
13
13
 
14
14
  if(test("[ -L #{current_path} ]"))
15
15
  info "installing pluggins..."
16
- execute "php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk 'BEGIN{OFS=\":\"} {print $1,$2,$4}'"
17
- installedPlugins = capture("php #{fetch(:tmp_dir)}/wp-cli.phar plugin list --path=#{current_path} |awk 'BEGIN{OFS=\":\"} {print $1,$2,$4}'");
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
18
  info installedPlugins
19
19
  plugins = []
20
20
  languages = []
21
-
22
21
  installedPlugins.each_line do |line|
23
-
24
- plugin = line.split(":");
25
- if(plugin[0].empty?)
26
- next
27
- end
28
- pluginInfo = {:slug => plugin[0], :version => plugin[1], :status => plugin[2] }
29
- 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)
30
28
  end
31
29
  if( !jsonPlugins["plugins"].nil? )
32
30
  jsonPlugins["plugins"].each do |plugin, version|
@@ -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.50'
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,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.50
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT