bigcartel-theme-fonts 1.8.4 → 1.8.5
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/bigcartel-theme-fonts.gemspec +1 -1
- data/lib/bigcartel/theme/fonts/theme_font.rb +2 -0
- 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: f7287f4e4812c2e5675aacb28a390ce5870b6d1c4f9a09cfd467cbcad37a5b01
|
4
|
+
data.tar.gz: 4ba567304f48f2fd48198c40c64b8ece679adbfd2dd97e1ab9f17af839554f30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2556923b7505ca31912a54f253864018d7ca3400ff475227216ed1559ee20443a1bee1d730507412b38ed44b1c38252e351c0613af227f283cde294efbad38
|
7
|
+
data.tar.gz: 4aa7fd747a130075ec9617523f2cd2456f22830805dbd996e47335cc525648f7cd8bec057c8644b9b2b2c6bc0aeb16952c75c559ecba494d691d3e76201ea4f4
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'bigcartel-theme-fonts'
|
7
|
-
spec.version = '1.8.
|
7
|
+
spec.version = '1.8.5'
|
8
8
|
spec.authors = ['Big Cartel']
|
9
9
|
spec.email = ['dev@bigcartel.com']
|
10
10
|
spec.description = %q{A simple class for working with Big Cartel's supported theme fonts.}
|
@@ -67,6 +67,8 @@ class ThemeFont < Struct.new(:name, :family, :weights, :collection)
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def google_font_url_for_theme_json(account_theme)
|
70
|
+
return {} if account_theme.theme&.name.nil?
|
71
|
+
|
70
72
|
# Cosmos and Lunch Break use the secondary font for the primary text font
|
71
73
|
font_setting = if ["cosmos", "lunch break"].include?(account_theme.theme.name.downcase)
|
72
74
|
account_theme.settings[:secondary_font]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigcartel-theme-fonts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Big Cartel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|