google_font_url 0.1.5 → 0.1.6
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/README.md +1 -1
- data/data/fonts_data.yml +1745 -1745
- data/google_font_url.gemspec +1 -1
- data/lib/google_font_url/generator.rb +1 -1
- data/lib/google_font_url/version.rb +1 -1
- metadata +4 -3
data/google_font_url.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.license = "MIT"
|
|
10
10
|
spec.authors = ["mrmalvi"]
|
|
11
11
|
spec.email = ["malviyak00@gmail.com"]
|
|
12
|
-
spec.summary = "A gem to generate Google Fonts URLs dynamically." # Short summary
|
|
12
|
+
spec.summary = "A gem to generate Google Fonts CSS stylelink URLs dynamically and font-face urls." # Short summary
|
|
13
13
|
spec.description = "This gem provides a simple way to generate Google Fonts URLs with custom font names, weights, and variants. It supports embedding fonts into your web projects effortlessly by generating URLs or complete CSS links, ensuring compatibility with all font styles and weights available in the Google Fonts library."
|
|
14
14
|
spec.homepage = "https://github.com/mrmalvi/google_font_url"
|
|
15
15
|
spec.required_ruby_version = ">= 3.0.0"
|
|
@@ -3,7 +3,7 @@ require_relative 'utils'
|
|
|
3
3
|
module GoogleFontUrl
|
|
4
4
|
class Generator
|
|
5
5
|
def self.generate
|
|
6
|
-
GoogleFontUrl::Utils.read_fonts.map { |font_data| [font_data["family"], font_data["
|
|
6
|
+
GoogleFontUrl::Utils.read_fonts.map { |font_data| [font_data["family"], font_data["css_url"]] }
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def self.all
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google_font_url
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mrmalvi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -115,5 +115,6 @@ requirements: []
|
|
|
115
115
|
rubygems_version: 3.5.11
|
|
116
116
|
signing_key:
|
|
117
117
|
specification_version: 4
|
|
118
|
-
summary: A gem to generate Google Fonts URLs dynamically
|
|
118
|
+
summary: A gem to generate Google Fonts CSS stylelink URLs dynamically and font-face
|
|
119
|
+
urls.
|
|
119
120
|
test_files: []
|