google_font_url 0.1.5 → 0.1.7
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
- data/lib/google_font_url.rb +3 -0
- metadata +5 -7
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
|
data/lib/google_font_url.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mrmalvi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rspec
|
|
@@ -97,7 +96,6 @@ metadata:
|
|
|
97
96
|
homepage_uri: https://github.com/mrmalvi/google_font_url
|
|
98
97
|
source_code_uri: https://github.com/mrmalvi/google_font_url
|
|
99
98
|
changelog_uri: https://github.com/mrmalvi/google_font_url/blob/main/CHANGELOG.md
|
|
100
|
-
post_install_message:
|
|
101
99
|
rdoc_options: []
|
|
102
100
|
require_paths:
|
|
103
101
|
- lib
|
|
@@ -112,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
110
|
- !ruby/object:Gem::Version
|
|
113
111
|
version: '0'
|
|
114
112
|
requirements: []
|
|
115
|
-
rubygems_version: 3.
|
|
116
|
-
signing_key:
|
|
113
|
+
rubygems_version: 3.6.9
|
|
117
114
|
specification_version: 4
|
|
118
|
-
summary: A gem to generate Google Fonts URLs dynamically
|
|
115
|
+
summary: A gem to generate Google Fonts CSS stylelink URLs dynamically and font-face
|
|
116
|
+
urls.
|
|
119
117
|
test_files: []
|