google_font_url 0.1.1 → 0.1.2

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: 9cfdca896e87ea7d158136d0115b2583d3f0ed9f4b0a21b54e3b8bc6167c772e
4
- data.tar.gz: aede66a351bba9aa59292a72164bfca167858626f75706a8e8f6f1ad8ac34589
3
+ metadata.gz: 0234d5c8ab910b9da815c8669b0d87bf4130503aabbcaf4ad0b8c7217d821f25
4
+ data.tar.gz: 71a67a83d50f9a55711f5ca8a654e2de1b941d7baa1e2329929b8b0aaa402789
5
5
  SHA512:
6
- metadata.gz: ecce8bb8c3f432fe5ce2b2c89130a45f180720006cbb4ac43aa2fef2d28dc3e1c2fe17cc1e86f6aa81ad94b8288cd0afa946e310a109974432ece706d8894f89
7
- data.tar.gz: 1a96309591a51a933f38f2248c3032317289183f06dff477c0f1eeed48190f5959ce47eb04eb5896b5d4dfd88ef84dbdfa4b2b3696afcfdb84b1e335a2138aa0
6
+ metadata.gz: fbc049a83c14cf44f38d21e128918779b91f951c1c49111a9238d8e677dfe63b3ce0f107a811b5dada1c58ea6e1da00e516c07ab11c53a4d9c341c5997eff7a3
7
+ data.tar.gz: 99d83c4eaa24c9e620e9d540373c1ec8e6cd6b258f18e5fa37df67ae1b547b0f65168892e3762b96bcecfbe09154b3a64fb0aba719fbae06862e5fe1f395d02a
@@ -0,0 +1,13 @@
1
+ require "google_font_url/utils"
2
+
3
+ module GoogleFontUrl
4
+ class Generator
5
+ def self.generate
6
+ GoogleFontUrl::Utils.read_fonts.map { |font_data| [font_data["family"], font_data["css_style_link"]] }
7
+ end
8
+
9
+ def self.all
10
+ GoogleFontUrl::Utils.read_fonts
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoogleFontUrl
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrmalvi
@@ -82,7 +82,7 @@ files:
82
82
  - bin/setup
83
83
  - data/fonts_data.yml
84
84
  - google_font_url.gemspec
85
- - lib/google_font_url.rb
85
+ - lib/google_font_url/generator.rb
86
86
  - lib/google_font_url/utils.rb
87
87
  - lib/google_font_url/version.rb
88
88
  - sig/google_font_url.rbs
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "google_font_url/version"
4
- require "google_font_url"
5
-
6
- module GoogleFontUrl
7
- class Error < StandardError; end
8
-
9
- class Generator
10
- def self.generate
11
- GoogleFontUrl::Utils.read_fonts.map{ |font_data| [font_data["family"], font_data["css_style_link"]] }
12
- end
13
-
14
- def self.all
15
- GoogleFontUrl::Utils.read_fonts
16
- end
17
- end
18
- end