wordpress_tools 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -6
- data/.travis.yml +2 -2
- data/lib/wordpress_tools/version.rb +1 -1
- data/lib/wordpress_tools/wp_cli_core.rb +9 -8
- data/tmp/.keep +0 -0
- data/wordpress_tools.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c26c72c71bd8bb74b3fcdb3a2ae4302a8b22170
|
4
|
+
data.tar.gz: be929e12b15a9acbabf077e61e64095042844869
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd84358d1962f3dd601947996aeee5d11734fa67e74e8cc7c64ff3bd9d1b76bf0f13a36477cd81d382a504982cd159aa4af51ddb792c7dbb016895e8fc54001d
|
7
|
+
data.tar.gz: 95711a166ecd825eb9f74d8399d8e580168ffa28c50c0779bcfdf4f08ec4eac10bea524daef455c6bc7068e8c9cf7ebb2d5388cc058caba470a8f069f3150805
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -11,9 +11,10 @@ module WordPressTools
|
|
11
11
|
make_executable
|
12
12
|
|
13
13
|
if installed?
|
14
|
-
success
|
14
|
+
success("WP-CLI installed")
|
15
|
+
check_bash_path || warning("Please, add #{install_path} to your shell '$PATH'")
|
15
16
|
else
|
16
|
-
error
|
17
|
+
error("Could not install WP-CLI")
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|
@@ -27,7 +28,7 @@ module WordPressTools
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def installed?
|
30
|
-
|
31
|
+
File.exist?(install_path) && File.executable?(install_path)
|
31
32
|
end
|
32
33
|
|
33
34
|
def download
|
@@ -59,16 +60,16 @@ module WordPressTools
|
|
59
60
|
end
|
60
61
|
|
61
62
|
def install_path
|
62
|
-
|
63
|
-
run("which wp", verbose: false, capture: true).strip
|
64
|
-
else
|
65
|
-
Configuration.for(:wp_cli_path)
|
66
|
-
end
|
63
|
+
Configuration.for(:wp_cli_path)
|
67
64
|
end
|
68
65
|
|
69
66
|
def install_dir
|
70
67
|
File.dirname(install_path)
|
71
68
|
end
|
69
|
+
|
70
|
+
def check_bash_path
|
71
|
+
run_command("which wp")
|
72
|
+
end
|
72
73
|
end
|
73
74
|
end
|
74
75
|
end
|
data/tmp/.keep
ADDED
File without changes
|
data/wordpress_tools.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "thor", "~> 0.19.1"
|
24
24
|
spec.add_dependency "activesupport", "~> 4.2"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "
|
26
|
+
spec.add_development_dependency "bundler", ">= 1.6.2"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.4"
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.2"
|
29
29
|
spec.add_development_dependency "fakeweb", "~> 1.3"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Étienne Després"
|
@@ -46,16 +46,16 @@ dependencies:
|
|
46
46
|
name: bundler
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- - "
|
49
|
+
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 1.6.2
|
52
52
|
type: :development
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- - "
|
56
|
+
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
58
|
+
version: 1.6.2
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rake
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/wordpress_tools/wp_cli_core.rb
|
162
162
|
- lib/wordpress_tools/wp_cli_server.rb
|
163
163
|
- templates/wp_cli_config.yml
|
164
|
+
- tmp/.keep
|
164
165
|
- wordpress_tools.gemspec
|
165
166
|
homepage: http://github.com/welaika/wordpress_tools
|
166
167
|
licenses:
|