wordmove 5.0.0 → 5.0.1

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: b9bad2c9642b0664b21d86fe8ff6f07e32ece69a3be37bcc5d42d455e5d9ed1e
4
- data.tar.gz: c1b4a105e73411c3e4a022858afe6cebe561b21174a8bd847b927a12e8c0de21
3
+ metadata.gz: a8295afc0c284c3fb0f3e28938875c43b5c2bbf2d4c2a5a3eaca80d69c64ab1a
4
+ data.tar.gz: 876abf510acbbae9b9c97c50839081e4685758a32995357d2974cdfba99ed0d6
5
5
  SHA512:
6
- metadata.gz: cb6a58864144648e6fa9c9b67974ef1faab88d68ab08e01a0aefa77ff9c62b6078fc41200276f77dbc480fca0e3fa07a4c23a89b31089cb6f2706e06162fa83f
7
- data.tar.gz: e883c9c12032408e4b80581ddf1447d558db3f34edbe32f611bd5d3518d6a31bfdb0a41f5003d217b811542a591f6802a118caf3b98148149d2cdd89d7238248
6
+ metadata.gz: bcd8e3b1769ae854dfb37213c47f46b6cc2f556e0c2893a930e1161df313d6d271389fda3819dc791393e39a1bedb0a4b1984c13b7b221a157f99afe29487912
7
+ data.tar.gz: 4e82ad3971ee2766bc8478122cc0f33ee84d44de0a1b75c52ae927857144071d6eaeaa1a19541af9a177c6be47543aed5945d12137448d53f55f154533702806
@@ -10,9 +10,6 @@ before_install:
10
10
  - gem install bundler
11
11
 
12
12
  install:
13
- - curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
14
- - chmod +x wp-cli.phar
15
- - sudo mv wp-cli.phar /usr/local/bin/wp
16
13
  - bundle install --jobs=3 --retry=3
17
14
 
18
15
  deploy:
@@ -1,3 +1,3 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST "$DOCKER_TRIGGER"
3
+ curl -H "Content-Type: application/json" -X POST "$DOCKER_TRIGGER"
@@ -7,7 +7,12 @@ module Wordmove
7
7
  formatted_message = if strings_to_hide.empty?
8
8
  message
9
9
  else
10
- message.gsub(Regexp.new(strings_to_hide.join('|')), '[secret]')
10
+ message.gsub(
11
+ Regexp.new(
12
+ strings_to_hide.map { |string| Regexp.escape(string) }.join('|')
13
+ ),
14
+ '[secret]'
15
+ )
11
16
  end
12
17
 
13
18
  "\n#{formatted_message}\n"
@@ -11,13 +11,19 @@ module Wordmove
11
11
  end
12
12
 
13
13
  def command
14
- unless system('which wp > /dev/null 2>&1')
14
+ unless wp_in_path?
15
15
  raise UnmetPeerDependencyError, "WP-CLI is not installed or not in your $PATH"
16
16
  end
17
17
 
18
18
  "wp search-replace --path=#{local_path} #{from} #{to} --quiet "\
19
19
  "--skip-columns=guid --all-tables --allow-root"
20
20
  end
21
+
22
+ private
23
+
24
+ def wp_in_path?
25
+ system('which wp > /dev/null 2>&1')
26
+ end
21
27
  end
22
28
  end
23
29
  end
@@ -1,3 +1,3 @@
1
1
  module Wordmove
2
- VERSION = "5.0.0".freeze
2
+ VERSION = "5.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordmove
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2019-11-27 00:00:00.000000000 Z
15
+ date: 2019-12-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport