google_font_url 0.1.2 → 0.1.4
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 +17 -2
- data/lib/google_font_url/generator.rb +1 -1
- data/lib/google_font_url/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ae0f6648c06684a827780ccec30c01a396c3cb8c9f5b1b8e46094ff9bdf2202
|
|
4
|
+
data.tar.gz: 15106c1671b53dfe115e31484434e108710aa644e6504913dfd037ca83f088cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4768a72c136692956b00052c5e9725892bb16ba8d9c1cbe0ffb28f39842990d0f86d28590c665c37c6ca4031406bf62f399431fab9b978466c66a9c286c0a990
|
|
7
|
+
data.tar.gz: 0e5f7ca30f46bc784a5ae7c3804ba47dc0bf3f75b49e5ecab1610bfbbad5a7900f99dddb761331a5781ea631d41d8b8ef8e194bc9f94741a639e36c606c7ddff
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Welcome to your new gem! In this directory, you'll find the files you need to be
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`Use in class: require 'google_font_url/generator'` .
|
|
10
10
|
|
|
11
11
|
Install the gem and add to the application's Gemfile by executing:
|
|
12
12
|
|
|
@@ -17,7 +17,22 @@ gem 'google_font_url'
|
|
|
17
17
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
20
|
+
GoogleFontUrl::Generator.generate
|
|
21
|
+
[["ABeeZee", "https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap"],
|
|
22
|
+
["ADLaM Display", "https://fonts.googleapis.com/css2?family=ADLaM+Display:wght@400&display=swap"],.....
|
|
23
|
+
```
|
|
24
|
+
```bash
|
|
25
|
+
GoogleFontUrl::Generator.all
|
|
26
|
+
[{"family"=>"ABeeZee",
|
|
27
|
+
"variants"=>["regular", "italic"],
|
|
28
|
+
"subsets"=>["latin", "latin-ext"],
|
|
29
|
+
"version"=>"v22",
|
|
30
|
+
"lastModified"=>"2024-09-04",
|
|
31
|
+
"files"=>{"regular"=>"https://fonts.gstatic.com/s/abeezee/v22/esDR31xSG-6AGleN6tKukbcHCpE.ttf", "italic"=>"https://fonts.gstatic.com/s/abeezee/v22/esDT31xSG-6AGleN2tCklZUCGpG-GQ.ttf"},
|
|
32
|
+
"category"=>"sans-serif",
|
|
33
|
+
"kind"=>"webfonts#webfont",
|
|
34
|
+
"menu"=>"https://fonts.gstatic.com/s/abeezee/v22/esDR31xSG-6AGleN2tOklQ.ttf",
|
|
35
|
+
"css_style_link"=>"https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap"},.....
|
|
21
36
|
```
|
|
22
37
|
|
|
23
38
|
## Usage
|