google_font_url 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9cfdca896e87ea7d158136d0115b2583d3f0ed9f4b0a21b54e3b8bc6167c772e
4
+ data.tar.gz: aede66a351bba9aa59292a72164bfca167858626f75706a8e8f6f1ad8ac34589
5
+ SHA512:
6
+ metadata.gz: ecce8bb8c3f432fe5ce2b2c89130a45f180720006cbb4ac43aa2fef2d28dc3e1c2fe17cc1e86f6aa81ad94b8288cd0afa946e310a109974432ece706d8894f89
7
+ data.tar.gz: 1a96309591a51a933f38f2248c3032317289183f06dff477c0f1eeed48190f5959ce47eb04eb5896b5d4dfd88ef84dbdfa4b2b3696afcfdb84b1e335a2138aa0
data/.byebug_history ADDED
@@ -0,0 +1,79 @@
1
+ c
2
+ expect(font[0]).to eq("ABeeZee")
3
+ expect(font).to eq(["ABeeZee", "https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap"])
4
+ font
5
+ font["family"]
6
+ c
7
+ expect(font["variants"]).to eq(["regular", "italic"])
8
+ font["variants"]expect(font["variants"]).to eq(["regular", "italic"])
9
+ font["variants"]
10
+ font
11
+ 'https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap'
12
+ font
13
+ expect(font["css_style_link"]).to eq("https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap")
14
+ font["css_style_link"]
15
+ font
16
+ "https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap"
17
+ "https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap".to_s
18
+ "https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap"
19
+ expect(font["css_style_link"]).to eq("https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap")
20
+ expect(font["css_style_link"]).to eq("https://fonts.googleapis.com/css2?family=ABeeZee:ital,wght@0,400;1,400&display=swap")
21
+ expect(font["family"]).to eq("ABeeZee")
22
+ c
23
+ font["family"]c
24
+ font["family"]
25
+ font
26
+ c
27
+ font
28
+ c
29
+ font
30
+ c
31
+ font["css_style_link"]c
32
+ font["css_style_link"]
33
+ font
34
+ expect(font["family"]).to eq("ABeeZee")
35
+ expect
36
+ c
37
+ expect(font["family"]).to eq("ABeeZee")
38
+ font["family"]
39
+ font = GoogleFontUrl::Utils.read_fonts.first
40
+ expect(font["Roboto"]["weights"]).to eq([400, 700])
41
+ expect(font).to include("Roboto")
42
+ font["family"]
43
+ font
44
+ font = GoogleFontUrl::Utils.read_fonts.first
45
+ fonts.first
46
+ fonts
47
+ c
48
+ fonts
49
+ c
50
+ File.exist?(DATA_PATH)
51
+ c
52
+ File.exist?(DATA_PATH)
53
+ DATA_PATH = File.expand_path("/data/fonts_data.yml", __FILE__)
54
+ File.exist?(DATA_PATH)
55
+ DATA_PATH = File.expand_path("data/fonts_data.yml", __FILE__)
56
+ File.expand_path("data/fonts_data.yml", __FILE__)
57
+ File.expand_path("../../../data/fonts_data.yml", __FILE__)
58
+ c
59
+ File.expand_path("../../../data/fonts_data.yml", __FILE__)
60
+ File.exist?(DATA_PATH)
61
+ DATA_PATH = File.expand_path("../../../data/fonts_data.yml", __FILE__)
62
+ c
63
+ File.exist?(DATA_PATH)
64
+ DATA_PATH = File.expand_path("../../data/fonts_data.yml", __FILE__)
65
+ File.exist?(DATA_PATH)
66
+ DATA_PATH = File.expand_path("/../../data/fonts_data.yml", __FILE__)
67
+ File.exist?(DATA_PATH)
68
+ DATA_PATH
69
+ File.exist?(DATA_PATH)
70
+ DATA_PATH
71
+ c
72
+ GoogleFontUrl::Utils.read_fonts
73
+ GoogleFontUrl::Utils
74
+ c
75
+ GoogleFontUrl::Utils
76
+ GoogleFontUrl
77
+ GoogleFontUrl.classes
78
+ GoogleFontUrl
79
+ GoogleFontUrl::Utils
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # GoogleFontUrl
2
+
3
+ TODO: Delete this and the text below, and describe your gem
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.
6
+
7
+ ## Installation
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.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ gem 'google_font_url'
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/google_font_url.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "google_font_url"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require "irb"
11
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here