jekyll-og-image 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ffb0da3a32eb670fe6426efece7ad664b14c0eb08e304156ba4840d8ef421cbe
4
+ data.tar.gz: b445fe5aa7d407f0e2de346abd6272cc4b81cc7479b37cedcbb317fcdb79e956
5
+ SHA512:
6
+ metadata.gz: f318c091d96d58bfe6625ef142d186c1c3d44d7308d4bf0baade0d3094f097ca2221134b2d9355a45de8cde46c4dcf3682f483d6c2ff0c359d9de266978ecda0
7
+ data.tar.gz: bb9f734673436f67102c68039233bdc3a78eab333ff0e76f38635ed0590d41a049ef943c6ea24bde55a04562f353da061373711e87ced2e5aae514d38d2f6c8e
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rspec_status ADDED
@@ -0,0 +1,5 @@
1
+ example_id | status | run_time |
2
+ ----------------------------------- | ------ | --------------- |
3
+ ./spec/jekyll_og_image_spec.rb[1:1] | passed | 0.01883 seconds |
4
+ ./spec/jekyll_og_image_spec.rb[1:2] | passed | 0.31382 seconds |
5
+ ./spec/jekyll_og_image_spec.rb[1:3] | passed | 0.07861 seconds |
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ inherit_gem:
2
+ rubocop-rails-omakase: rubocop.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 3.2
6
+ NewCops: enable
7
+
8
+ Style/FrozenStringLiteralComment:
9
+ Enabled: true
10
+ EnforcedStyle: always
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at igor.alexandrov@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Igor Alexandrov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Jekyll OG Image
2
+
3
+ A Jekyll plugin to automatically generate open graph images for posts.
4
+
5
+ [![Lint](https://github.com/igor-alexandrov/jekyll-og-image/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/igor-alexandrov/jekyll-og-image/actions/workflows/lint.yml)
6
+ [![Specs](https://github.com/igor-alexandrov/jekyll-og-image/actions/workflows/specs.yml/badge.svg?branch=main)](https://github.com/igor-alexandrov/jekyll-og-image/actions/workflows/specs.yml)
7
+
8
+ ## Installation
9
+
10
+ Add this line to your site's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'jekyll-feed'
14
+ ```
15
+
16
+ And then add this line to your site's `_config.yml`:
17
+
18
+ ```yaml
19
+ plugins:
20
+ - jekyll-seo-tag
21
+ - jekyll-og-image
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ Jekyll OG Image works together with [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) plugin. It automatically generates open graph images for posts and inserts them into the posts metadata.
27
+
28
+ ## Examples
29
+
30
+ ### Single Color
31
+
32
+ ```yaml
33
+ og_image:
34
+ output_dir: "assets/images/og"
35
+ domain: "igor.works"
36
+ border_bottom:
37
+ width: 20
38
+ fill:
39
+ - "#4285F4"
40
+ ```
41
+
42
+ ![Example 2](examples/2.png)
43
+
44
+ ### Multiple Colors
45
+
46
+ ```yaml
47
+ og_image:
48
+ output_dir: "assets/images/og"
49
+ domain: "igor.works"
50
+ border_bottom:
51
+ width: 20
52
+ fill:
53
+ - "#820C02"
54
+ - "#A91401"
55
+ - "#D51F06"
56
+ - "#DE3F24"
57
+ - "#EDA895"
58
+ ```
59
+
60
+ ![Example 1](examples/1.png)
61
+
62
+
63
+
64
+ ## Contributing
65
+
66
+ * Fork it (https://github.com/igor-alexandrov/jekyll-og-image)
67
+ * Create your feature branch (`git checkout -b my-new-feature`)
68
+ * Commit your changes (`git commit -am 'Add some feature'`)
69
+ * Push to the branch (`git push origin my-new-feature`)
70
+ * Create a new Pull Request
71
+
72
+ ## License
73
+
74
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/examples/1.png ADDED
Binary file
data/examples/2.png ADDED
Binary file
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/jekyll_og_image/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "jekyll-og-image"
7
+ spec.version = JekyllOgImage::VERSION
8
+ spec.authors = [ "Igor Alexandrov" ]
9
+ spec.email = [ "igor.alexandrov@gmail.com" ]
10
+
11
+ spec.summary = "Jekyll plugin to generate GitHub-style open graph images"
12
+ spec.homepage = "https://github.com/igor-alexandrov/jekyll-og-image"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 3.2.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(__dir__) do
21
+ `git ls-files -z`.split("\x0").reject do |f|
22
+ (File.expand_path(f) == __FILE__) ||
23
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
24
+ end
25
+ end
26
+
27
+ spec.require_paths = [ "lib" ]
28
+
29
+ spec.add_dependency "jekyll-seo-tag", "~> 2.8"
30
+ spec.add_dependency "zeitwerk", "~> 2.6"
31
+ spec.add_dependency "anyway_config", "~> 2.6"
32
+ spec.add_dependency "ruby-vips", "~> 2.2.0"
33
+ spec.add_runtime_dependency "jekyll", ">= 3.4", "< 5.0"
34
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "jekyll_og_image"
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "anyway_config"
4
+
5
+ class JekyllOgImage::Config < Anyway::Config
6
+ attr_config output_dir: "assets/images/og"
7
+ attr_config force: false
8
+ attr_config :domain
9
+ attr_config border_bottom: {
10
+ width: 20,
11
+ fill: [ "#211F1F", "#F4CBB2", "#AD5C51", "#9CDAF1", "#7DBBE6" ]
12
+ }
13
+
14
+ coerce_types border_bottom: {
15
+ width: { type: :integer },
16
+ fill: { type: :string, array: true }
17
+ }
18
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ class JekyllOgImage::Element::Base
4
+ private
5
+
6
+ def hex_to_rgb(input)
7
+ case input
8
+ when String
9
+ input.match(/#(..)(..)(..)/)[1..3].map(&:hex)
10
+ when Array
11
+ input
12
+ else
13
+ raise ArgumentError, "Unknown input #{input.inspect}"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ class JekyllOgImage::Element::Border < JekyllOgImage::Element::Base
4
+ class Part < Data.define(:rgb, :width, :height, :offset)
5
+ end
6
+
7
+ def initialize(canvas, size, position: :bottom, fill: "#000000")
8
+ @canvas = canvas
9
+ @size = size
10
+ @position = position
11
+ @fill = fill
12
+
13
+ validate_position!
14
+
15
+ @border = Vips::Image.black(*dimensions)
16
+
17
+ parts.each.with_index do |part, index|
18
+ border = Vips::Image.black(part.width, part.height).ifthenelse([ 0, 0, 0 ], part.rgb)
19
+
20
+ if vertical?
21
+ @border = @border.composite(border, :over, x: [ 0 ], y: [ part.offset ]).flatten
22
+ else
23
+ @border = @border.composite(border, :over, x: [ part.offset ], y: [ 0 ]).flatten
24
+ end
25
+ end
26
+ end
27
+
28
+ def apply(&block)
29
+ result = block.call(@canvas, @border) if block_given?
30
+ x, y = result ? [ result.fetch(:x, 0), result.fetch(:y, 0) ] : [ 0, 0 ]
31
+
32
+ if vertical?
33
+ x = @position == :left ? x : @canvas.width - @size - x
34
+ @canvas.composite(@border, :over, x: [ x ], y: [ 0 ]).flatten
35
+ else
36
+ y = @position == :top ? y : @canvas.height - @size - y
37
+ @canvas.composite(@border, :over, x: [ 0 ], y: [ y ]).flatten
38
+ end
39
+ end
40
+
41
+ def parts
42
+ if @fill.is_a?(Array)
43
+ width, height = vertical? ? [ @size, (@canvas.height / @fill.size) ] : [ (@canvas.width / @fill.size), @size ]
44
+
45
+ @fill.map.with_index do |item, index|
46
+ Part.new(
47
+ rgb: hex_to_rgb(item),
48
+ width: width,
49
+ height: height,
50
+ offset: index * (vertical? ? height : width)
51
+ )
52
+ end
53
+ else
54
+ length = vertical? ? @canvas.height : @canvas.width
55
+
56
+ [ Part.new(rgb: hex_to_rgb(@fill), length: length, offset: 0) ]
57
+ end
58
+ end
59
+
60
+ private
61
+
62
+ def hex_to_rgb(hex)
63
+ hex.match(/#(..)(..)(..)/)[1..3].map { |x| x.hex }
64
+ end
65
+
66
+ def dimensions
67
+ if vertical?
68
+ [ @size, @canvas.height ]
69
+ else
70
+ [ @canvas.width, @size ]
71
+ end
72
+ end
73
+
74
+ def vertical?
75
+ @position == :left || @position == :right
76
+ end
77
+
78
+ def horizontal?
79
+ @position == :top || @position == :bottom
80
+ end
81
+
82
+ def validate_position!
83
+ unless %i[left right top bottom].include?(@position)
84
+ raise ArgumentError, "Invalid position: #{@position.inspect}"
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "vips"
4
+
5
+ class JekyllOgImage::Element::Image < JekyllOgImage::Element::Base
6
+ def initialize(width, height, color: "#ffffff")
7
+ @canvas = Vips::Image.black(width, height).ifthenelse([ 0, 0, 0 ], hex_to_rgb(color))
8
+ end
9
+
10
+ def text(message, **opts, &block)
11
+ text = JekyllOgImage::Element::Text.new(
12
+ @canvas, message, **opts
13
+ )
14
+
15
+ @canvas = text.apply(&block)
16
+
17
+ self
18
+ end
19
+
20
+ def border(width, position: :bottom, fill: "#000000")
21
+ @canvas = JekyllOgImage::Element::Border.new(
22
+ @canvas, width,
23
+ position: position,
24
+ fill: fill
25
+ ).apply
26
+
27
+ self
28
+ end
29
+
30
+ def save(filename)
31
+ @canvas.write_to_file(filename)
32
+ end
33
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ class JekyllOgImage::Element::Text < JekyllOgImage::Element::Base
4
+ VALID_GRAVITY = %i[nw ne sw se].freeze
5
+
6
+ def initialize(canvas, message, gravity: :nw, width: nil, dpi: nil, color: "#000000", font: nil)
7
+ @canvas = canvas
8
+ @gravity = gravity
9
+
10
+ validate_gravity!
11
+
12
+ text = Vips::Image.text(message,
13
+ font: font,
14
+ width: width,
15
+ dpi: dpi,
16
+ wrap: :word,
17
+ align: :low
18
+ )
19
+
20
+ @text = text
21
+ .new_from_image(hex_to_rgb(color))
22
+ .copy(interpretation: :srgb)
23
+ .bandjoin(text)
24
+ end
25
+
26
+ def apply(&block)
27
+ result = block.call(@canvas, @text) if block_given?
28
+ x, y = result ? [ result.fetch(:x, 0), result.fetch(:y, 0) ] : [ 0, 0 ]
29
+
30
+ if gravity_nw?
31
+ @canvas.composite(@text, :over, x: [ x ], y: [ y ]).flatten
32
+ elsif gravity_ne?
33
+ x = @canvas.width - @text.width - x
34
+ @canvas.composite(@text, :over, x: [ x ], y: [ y ]).flatten
35
+ elsif gravity_sw?
36
+ y = @canvas.height - @text.height - y
37
+ @canvas.composite(@text, :over, x: [ x ], y: [ y ]).flatten
38
+ elsif gravity_se?
39
+ x = @canvas.width - @text.width - x
40
+ y = @canvas.height - @text.height - y
41
+ @canvas.composite(@text, :over, x: [ x ], y: [ y ]).flatten
42
+ end
43
+ end
44
+
45
+ private
46
+
47
+ VALID_GRAVITY.each do |gravity|
48
+ define_method("gravity_#{gravity}?") do
49
+ @gravity == gravity
50
+ end
51
+ end
52
+
53
+ def validate_gravity!
54
+ unless VALID_GRAVITY.include?(@gravity)
55
+ raise ArgumentError, "Invalid gravity: #{@gravity.inspect}"
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ class JekyllOgImage::Generator < Jekyll::Generator
4
+ safe true
5
+
6
+ def generate(site)
7
+ base_path = File.join(
8
+ site.config["source"],
9
+ JekyllOgImage.config.output_dir,
10
+ "posts"
11
+ )
12
+
13
+ FileUtils.mkdir_p base_path
14
+
15
+ site.posts.docs.each do |post|
16
+ path = File.join(base_path, "#{post.data['slug']}.png")
17
+
18
+ if !File.exist?(path) || JekyllOgImage.config.force?
19
+ generate_image_for_post(site, post, path)
20
+ else
21
+ Jekyll.logger.info "Jekyll Og Image:", "Skipping image generation for #{post.data['title']} as it already exists."
22
+ end
23
+
24
+ post.data["image"] ||= {
25
+ "path" => path,
26
+ "width" => 1200,
27
+ "height" => 600,
28
+ "alt" => post.data["title"]
29
+ }
30
+ end
31
+ end
32
+
33
+ private
34
+
35
+ def generate_image_for_post(site, post, path)
36
+ date = post.date.strftime("%B %d, %Y")
37
+
38
+ image = JekyllOgImage::Element::Image.new(1200, 600)
39
+ .border(JekyllOgImage.config.border_bottom["width"],
40
+ position: :bottom,
41
+ fill: JekyllOgImage.config.border_bottom["fill"]
42
+ )
43
+ .text(post.data["title"], width: 1040, color: "#2f313d", dpi: 500, font: "Helvetica, Bold") do |_canvas, _text|
44
+ {
45
+ x: 80,
46
+ y: 100
47
+ }
48
+ end
49
+ .text(date, gravity: :sw, color: "#535358", dpi: 150, font: "Helvetica, Regular") do |_canvas, _text|
50
+ {
51
+ x: 80,
52
+ y: post.data["tags"].any? ? 150 : 100
53
+ }
54
+ end
55
+
56
+ if post.data["tags"].any?
57
+ tags = post.data["tags"].map { |tag| "##{tag}" }.join(" ")
58
+
59
+ image = image.text(tags, gravity: :sw, color: "#535358", dpi: 150, font: "Helvetica, Regular") do |_canvas, _text|
60
+ {
61
+ x: 80,
62
+ y: 100
63
+ }
64
+ end
65
+ end
66
+
67
+ if JekyllOgImage.config.domain
68
+ image = image.text(JekyllOgImage.config.domain, gravity: :se, color: "#535358", dpi: 150, font: "Helvetica, Regular") do |_canvas, _text|
69
+ {
70
+ x: 80,
71
+ y: post.data["tags"].any? ? 150 : 100
72
+ }
73
+ end
74
+ end
75
+
76
+ image.save(path)
77
+ end
78
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JekyllOgImage
4
+ VERSION = "1.0.1"
5
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JekyllOgImage
4
+ end
5
+
6
+ require "zeitwerk"
7
+ loader = Zeitwerk::Loader.for_gem
8
+ loader.ignore("#{__dir__}/jekyll-og-image.rb")
9
+ loader.setup
10
+ loader.eager_load
11
+
12
+ module JekyllOgImage
13
+ def self.config
14
+ @config ||= JekyllOgImage::Config.new
15
+ end
16
+
17
+ def self.config=(config)
18
+ @config = config
19
+ end
20
+
21
+ def self.configure
22
+ yield config
23
+ end
24
+ end
25
+
26
+ Jekyll::Hooks.register(:site, :after_init) do |site|
27
+ JekyllOgImage.config = JekyllOgImage::Config.new(site.config["og_image"])
28
+
29
+ site.config["exclude"] << JekyllOgImage.config.output_dir
30
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-og-image
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Igor Alexandrov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll-seo-tag
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: zeitwerk
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: anyway_config
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ruby-vips
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: jekyll
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '3.4'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '5.0'
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '3.4'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '5.0'
89
+ description:
90
+ email:
91
+ - igor.alexandrov@gmail.com
92
+ executables: []
93
+ extensions: []
94
+ extra_rdoc_files: []
95
+ files:
96
+ - ".rspec"
97
+ - ".rspec_status"
98
+ - ".rubocop.yml"
99
+ - CODE_OF_CONDUCT.md
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - examples/1.png
104
+ - examples/2.png
105
+ - jekyll-og-image.gemspec
106
+ - lib/jekyll-og-image.rb
107
+ - lib/jekyll_og_image.rb
108
+ - lib/jekyll_og_image/config.rb
109
+ - lib/jekyll_og_image/element/base.rb
110
+ - lib/jekyll_og_image/element/border.rb
111
+ - lib/jekyll_og_image/element/image.rb
112
+ - lib/jekyll_og_image/element/text.rb
113
+ - lib/jekyll_og_image/generator.rb
114
+ - lib/jekyll_og_image/version.rb
115
+ homepage: https://github.com/igor-alexandrov/jekyll-og-image
116
+ licenses:
117
+ - MIT
118
+ metadata:
119
+ homepage_uri: https://github.com/igor-alexandrov/jekyll-og-image
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 3.2.0
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubygems_version: 3.5.4
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Jekyll plugin to generate GitHub-style open graph images
139
+ test_files: []