theme-juice 0.28.6 → 0.28.7
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 +4 -4
- data/lib/theme-juice.rb +1 -0
- data/lib/theme-juice/tasks/vm_plugins.rb +9 -4
- data/lib/theme-juice/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 623ec68f09df76be764f7f8d5a1554d4648f8f7b
|
|
4
|
+
data.tar.gz: 4d305f1533e51a8461ee8fe5973791c96e83c300
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6878a2270f134e35bcf96c77deaf71df60911b31fa4e805195e90f5d1a60d65ecd6ce12187b41748fd659aada776cfca2c65da6930de44bcceab6a132a639344
|
|
7
|
+
data.tar.gz: e3f515c28a27c6c468da8590d0bfeb626a5b52d5003b023578408ecb5c0d7ef53355f54b80e58f5f0ed30489450be1f2e63025318f8444a1fb20429de5c2e806
|
data/lib/theme-juice.rb
CHANGED
|
@@ -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.
|
|
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
|
|
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}", {
|
data/lib/theme-juice/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
250
|
+
rubygems_version: 2.6.8
|
|
251
251
|
signing_key:
|
|
252
252
|
specification_version: 4
|
|
253
253
|
summary: WordPress development made easy
|