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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2c8f263d4104e1dc79885d0ecb19226a5b504518af3c43cb48c9e8da90fe971
4
- data.tar.gz: b52e7a958ea715407c689c492365e44de88cd42ed0193be58f4acaed00efd58d
3
+ metadata.gz: 1c45c33f0989ba19297a2123d22d3d678c96e6a339beffc3ea3b70719ff12786
4
+ data.tar.gz: 36bccfc77d17a3294220f5e49789e30bf6c738c967ff03b6f9cea0801b2dce23
5
5
  SHA512:
6
- metadata.gz: ef77c2319ef1a31cbc9a4a00c6bbfcfc148d662f97b18b337d094f8bb473ea16ad61ccc5bcc0a16070db5beea331a48754c0ef83e2841e804f598cb6e052c420
7
- data.tar.gz: 22727baee9961e123388a683eac0d03fb9db6b0dece4cdb1c5e2515d022eb12c4c7ad3f7d34116bb7548691d955febc86d7d174be9482ff6db1dcceda5153040
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
- current_package = package_json["dependencies"].dig(yarn_add_dependency.first)
83
- next unless current_package.nil? || current_package != yarn_add_dependency.last
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
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.1"
5
5
  CODE_NAME = "Hazelwood"
6
6
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2020-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport