google_font_url 0.1.4 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ae0f6648c06684a827780ccec30c01a396c3cb8c9f5b1b8e46094ff9bdf2202
4
- data.tar.gz: 15106c1671b53dfe115e31484434e108710aa644e6504913dfd037ca83f088cd
3
+ metadata.gz: 2360e5f172eb1f8c4bceab598e68a5423fe5b5f61aa6c7aa217e5c3ea74c32bc
4
+ data.tar.gz: 894820aef45224431dfbab2caa47889d9df83496210fe3e60777291f99accad8
5
5
  SHA512:
6
- metadata.gz: 4768a72c136692956b00052c5e9725892bb16ba8d9c1cbe0ffb28f39842990d0f86d28590c665c37c6ca4031406bf62f399431fab9b978466c66a9c286c0a990
7
- data.tar.gz: 0e5f7ca30f46bc784a5ae7c3804ba47dc0bf3f75b49e5ecab1610bfbbad5a7900f99dddb761331a5781ea631d41d8b8ef8e194bc9f94741a639e36c606c7ddff
6
+ metadata.gz: 837efbc84f0510931000852e411833d57f409120397a152ed38a8131cd5a0fb18e53e1f24606d3cb2eef3defec631af231cd83a00233a6db4e408a48b6e97275
7
+ data.tar.gz: 83bb60143be90f3c3b67941bde55ba4671e8222d75653dc5e8d96371e345436f75b0b2176efb74c3295a473f912d7962eccfc89cf95021a32b98b5775bbf1cd6
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # GoogleFontUrl
1
+ # Google Font Url Extractor
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ To make all available Google Fonts selectable in a Rails application and save their corresponding CSS links, follow these steps:
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/google_font_url`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `require 'google_font_url/generator'`. To experiment with that code, run `bin/console` for an interactive prompt.
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "lib/google_font_url/version"
4
+ require_relative "lib/google_font_url/generator"
4
5
 
5
6
  Gem::Specification.new do |spec|
6
7
  spec.name = "google_font_url"
@@ -9,7 +10,7 @@ Gem::Specification.new do |spec|
9
10
  spec.authors = ["mrmalvi"]
10
11
  spec.email = ["malviyak00@gmail.com"]
11
12
  spec.summary = "A gem to generate Google Fonts URLs dynamically." # Short summary
12
- spec.description = "This gem provides a simple way to generate Google Fonts URLs with custom font names and weights for embedding fonts into your web projects." # Long description
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."
13
14
  spec.homepage = "https://github.com/mrmalvi/google_font_url"
14
15
  spec.required_ruby_version = ">= 3.0.0"
15
16
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "google_font_url/generator"
3
2
 
4
3
  module GoogleFontUrl
5
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
6
5
  end
@@ -0,0 +1,3 @@
1
+ module GoogleFontUrl
2
+ class Error < StandardError; end
3
+ 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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrmalvi
@@ -67,7 +67,9 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.18'
69
69
  description: This gem provides a simple way to generate Google Fonts URLs with custom
70
- font names and weights for embedding fonts into your web projects.
70
+ font names, weights, and variants. It supports embedding fonts into your web projects
71
+ effortlessly by generating URLs or complete CSS links, ensuring compatibility with
72
+ all font styles and weights available in the Google Fonts library.
71
73
  email:
72
74
  - malviyak00@gmail.com
73
75
  executables: []
@@ -82,6 +84,7 @@ files:
82
84
  - bin/setup
83
85
  - data/fonts_data.yml
84
86
  - google_font_url.gemspec
87
+ - lib/google_font_url.rb
85
88
  - lib/google_font_url/generator.rb
86
89
  - lib/google_font_url/utils.rb
87
90
  - lib/google_font_url/version.rb