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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b158a3f54b8df76d7aaf093171982b26b83990f
4
- data.tar.gz: fbfee8583490f2b38c77fef8456e33adacdc37d7
3
+ metadata.gz: 8c26c72c71bd8bb74b3fcdb3a2ae4302a8b22170
4
+ data.tar.gz: be929e12b15a9acbabf077e61e64095042844869
5
5
  SHA512:
6
- metadata.gz: b7bbbd7d500b569896c9541013eca7aa2d97685e34e8857b2bf806639312e5602d7a069c819bda2f1b514933f64941fac6d0b42e21b94d15a2265365f1224de6
7
- data.tar.gz: a57fea0dd9ce145fd71aac30609b3de5008fa24cac695259e4aa4279a283c70e3509a3185abc4af951d72f046171bb5d0b533da360bb2866f79f65495d69d83a
6
+ metadata.gz: bd84358d1962f3dd601947996aeee5d11734fa67e74e8cc7c64ff3bd9d1b76bf0f13a36477cd81d382a504982cd159aa4af51ddb792c7dbb016895e8fc54001d
7
+ data.tar.gz: 95711a166ecd825eb9f74d8399d8e580168ffa28c50c0779bcfdf4f08ec4eac10bea524daef455c6bc7068e8c9cf7ebb2d5388cc058caba470a8f069f3150805
data/.gitignore CHANGED
@@ -6,9 +6,5 @@
6
6
  /doc/
7
7
  /pkg/
8
8
  /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
9
+ /tmp/*
10
+ !.keep
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 1.9.3
3
+ - 2.1.2
4
+ - 2.2.0
@@ -1,3 +1,3 @@
1
1
  module WordPressTools
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -11,9 +11,10 @@ module WordPressTools
11
11
  make_executable
12
12
 
13
13
  if installed?
14
- success "WP-CLI installed"
14
+ success("WP-CLI installed")
15
+ check_bash_path || warning("Please, add #{install_path} to your shell '$PATH'")
15
16
  else
16
- error "Could not install WP-CLI"
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
- run_command("which wp")
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
- if installed?
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
@@ -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", "~> 1.8"
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.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: '1.8'
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: '1.8'
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: