google_font_url 0.1.4 → 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.
@@ -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"
@@ -8,8 +9,8 @@ Gem::Specification.new do |spec|
8
9
  spec.license = "MIT"
9
10
  spec.authors = ["mrmalvi"]
10
11
  spec.email = ["malviyak00@gmail.com"]
11
- 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
12
+ spec.summary = "A gem to generate Google Fonts CSS stylelink URLs dynamically and font-face urls." # Short summary
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
 
@@ -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["css_style_link"]] }
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
@@ -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.6"
6
5
  end
@@ -0,0 +1,3 @@
1
+ module GoogleFontUrl
2
+ class Error < StandardError; end
3
+ end
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
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: 2024-12-10 00:00:00.000000000 Z
11
+ date: 2025-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -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
@@ -112,5 +115,6 @@ requirements: []
112
115
  rubygems_version: 3.5.11
113
116
  signing_key:
114
117
  specification_version: 4
115
- 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.
116
120
  test_files: []