google_font_url 0.1.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2aa451b5309ea7c1c1d9f418ff16343110984e3e15d5457194e271989c8980b9
4
- data.tar.gz: da9982668ef5eca95c6c8c64646c4d18daada31ef4a06b4ca037a63f2c4b47da
3
+ metadata.gz: 1ae0f6648c06684a827780ccec30c01a396c3cb8c9f5b1b8e46094ff9bdf2202
4
+ data.tar.gz: 15106c1671b53dfe115e31484434e108710aa644e6504913dfd037ca83f088cd
5
5
  SHA512:
6
- metadata.gz: 20f2616a44743e3d38b7ee0c43bc27a75c2219ffbef7d9aca74ed3ffc3196bc7888d39e73229436beb85e2ae9006f101b8f228c03f1a6f52615d1a547657b61c
7
- data.tar.gz: f4b397a7ef6d8494aa713b883b965f596d2d6bd2253a2ab35c2bb406e7f79f0c8c8b5d91b4578c1b762fbbfba2ce1987f79c6e586acf75fc4a1156bd20db3c9b
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
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
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
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
+ require "google_font_url/generator"
2
3
 
3
4
  module GoogleFontUrl
4
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
5
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_font_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrmalvi