bridgetown-core 1.2.0.beta1 → 1.2.0.beta2

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: 151aa943c75bc92219b009a1024ba80346428dd86b2a55aa606d14e1fbe67fca
4
- data.tar.gz: 922024f32b5785568c424894875694b5b0d2b3c417397ea2199227fdeccdfc46
3
+ metadata.gz: 8a6cae1de973325e00001b6c9a9f2a27879d24164727195ae53744dcc10f7f4a
4
+ data.tar.gz: 1ee4e7b77a9e25946d9daa7fc7204637559c35691b6f64475245427a49184596
5
5
  SHA512:
6
- metadata.gz: 794136c89b55a6c4bca1a0c9c00b1e26570782d9c4d8ee24e5f0543f318ecbdfb645a257b635d8cf4e42cb2bed644c7507ddfc21a8820ff730c4da34fb1d9a3d
7
- data.tar.gz: 4fa68e3690b005053452c75a55f044dca2310f83364c94eef1c22e3adc5b13e010ced5cbeb4008de5211079cc4ed2244079fcb341aadc3989bbe67c3f486221a
6
+ metadata.gz: bfdaa601767fc44f50c11ebc40008e7b661f9dbae9aa192e3a44fe22e8fbcb5271e8cfd33f414421950eb19de4a7532ae19ffd48a31fde8a9f001385dce2c057
7
+ data.tar.gz: 1125afb5db05a07d62d4c656053d6815740aab2ee8b6050b35da33d34961cbfc6a5d970cccf2293690077b847b8c5026c819416a685ee00670fd6cf86b1406a6
@@ -57,7 +57,7 @@ module Bridgetown
57
57
  end
58
58
 
59
59
  def builder(klass = nil, &block)
60
- return klass.register if klass.is_a?(Bridgetown::Builder)
60
+ return klass.register if klass.is_a?(Class) && klass < Bridgetown::Builder
61
61
 
62
62
  unless klass.is_a?(Symbol)
63
63
  raise "You must supply a constant symbol to register an inline builder"
@@ -61,7 +61,7 @@ module Bridgetown
61
61
  end
62
62
 
63
63
  def self.setup_bundler(skip_yarn: false)
64
- if !ENV["BRIDGETOWN_NO_BUNDLER_REQUIRE"] && File.file?("Gemfile")
64
+ if !ENV["BRIDGETOWN_NO_BUNDLER_REQUIRE"] && (File.file?("Gemfile") || Bridgetown.env.test?)
65
65
  require "bundler"
66
66
 
67
67
  require_relative "utils/initializers"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "1.2.0.beta1"
4
+ VERSION = "1.2.0.beta2"
5
5
  CODE_NAME = "Bonny Slope"
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: 1.2.0.beta1
4
+ version: 1.2.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-02 00:00:00.000000000 Z
11
+ date: 2022-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel