bridgetown-core 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-core/plugin_manager.rb +6 -2
- data/lib/bridgetown-core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c45c33f0989ba19297a2123d22d3d678c96e6a339beffc3ea3b70719ff12786
|
4
|
+
data.tar.gz: 36bccfc77d17a3294220f5e49789e30bf6c738c967ff03b6f9cea0801b2dce23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b36d74cac58d2210185de187455f6ba3536feaccd34200b42dd08449c7c15745fb0ed468c2f551e31f3b7270ee286ea29396cfe0d4040a644d86b4750c3e3898
|
7
|
+
data.tar.gz: 7833b8a76ca6b2e36cd398e21a2b18d0f38163210f49e679552e637a4c90bbe68f7d76582966cbbcc036f5a901bb86a24910280f23f79a4b29092ae862a7a99f
|
@@ -67,6 +67,7 @@ module Bridgetown
|
|
67
67
|
# If that exact package hasn't been installed, execute yarn add
|
68
68
|
#
|
69
69
|
# Returns nothing.
|
70
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
70
71
|
def self.install_yarn_dependencies(required_gems)
|
71
72
|
return unless File.exist?("package.json")
|
72
73
|
|
@@ -79,14 +80,17 @@ module Bridgetown
|
|
79
80
|
next unless yarn_add_dependency.length == 2
|
80
81
|
|
81
82
|
# check matching version number is see if it's already installed
|
82
|
-
|
83
|
-
|
83
|
+
if package_json["dependencies"]
|
84
|
+
current_package = package_json["dependencies"].dig(yarn_add_dependency.first)
|
85
|
+
next unless current_package.nil? || current_package != yarn_add_dependency.last
|
86
|
+
end
|
84
87
|
|
85
88
|
# all right, time to install the package
|
86
89
|
cmd = "yarn add #{yarn_add_dependency.join("@")}"
|
87
90
|
system cmd
|
88
91
|
end
|
89
92
|
end
|
93
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
90
94
|
|
91
95
|
# Require all .rb files
|
92
96
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|