theme-juice 0.28.6 → 0.28.7

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: 04e334373be73040dcd133bbeaf4bb69871ac92b
4
- data.tar.gz: e2dc0e590b06c3c3033e3ceee027584d7aca4b0c
3
+ metadata.gz: 623ec68f09df76be764f7f8d5a1554d4648f8f7b
4
+ data.tar.gz: 4d305f1533e51a8461ee8fe5973791c96e83c300
5
5
  SHA512:
6
- metadata.gz: 743c47d3fa8f65282122791619f8ddea6431ea056ef05463fceb1a4d00169e683b7893a812ef47c65fbfabc65908e67db164b9f4170d2343b721a51ad9873521
7
- data.tar.gz: 3bc2451d456d708a899e454c6f326ea4f939235a860565cfd9c7d7d1f8e6d1bdbb6b36efa65179566375a5b3634dedd6cea706627340a6e1421867af8897e8fb
6
+ metadata.gz: 6878a2270f134e35bcf96c77deaf71df60911b31fa4e805195e90f5d1a60d65ecd6ce12187b41748fd659aada776cfca2c65da6930de44bcceab6a132a639344
7
+ data.tar.gz: e3f515c28a27c6c468da8590d0bfeb626a5b52d5003b023578408ecb5c0d7ef53355f54b80e58f5f0ed30489450be1f2e63025318f8444a1fb20429de5c2e806
@@ -1,5 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
+ require "rubygems"
3
4
  require "thor"
4
5
  require "faker"
5
6
  require "os"
@@ -10,17 +10,22 @@ module ThemeJuice
10
10
 
11
11
  def execute
12
12
  install_vagrant_plugin "vagrant-triggers", "0.5.3"
13
- install_vagrant_plugin "landrush", "1.0.0" unless @env.no_landrush
13
+ install_vagrant_plugin "landrush", "1.2.0" unless @env.no_landrush
14
14
  end
15
15
 
16
16
  private
17
17
 
18
- def vagrant_plugin_is_installed?(plugin)
19
- `vagrant plugin list`.include? plugin
18
+ def vagrant_plugin_is_installed?(plugin, version)
19
+ plugins = `vagrant plugin list`
20
+ current_version = plugins.match(/#{plugin} \(([[0-9]\.]+)(?:,[^\)]+)?\)/)[1]
21
+
22
+ return false if !plugins.include?(plugin) || current_version.nil?
23
+
24
+ Gem::Version.new(current_version) >= Gem::Version.new(version)
20
25
  end
21
26
 
22
27
  def install_vagrant_plugin(plugin, version)
23
- return if vagrant_plugin_is_installed? plugin
28
+ return if vagrant_plugin_is_installed? plugin, version
24
29
 
25
30
  @io.log "Installing #{plugin}"
26
31
  @util.run "vagrant plugin install #{plugin} --plugin-version #{version}", {
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.28.6"
4
+ VERSION = "0.28.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.6
4
+ version: 0.28.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  requirements: []
249
249
  rubyforge_project:
250
- rubygems_version: 2.4.8
250
+ rubygems_version: 2.6.8
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: WordPress development made easy