jekyll_img 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +3 -1
- data/jekyll_img.gemspec +1 -2
- data/lib/jekyll_img/version.rb +1 -1
- data/lib/jekyll_img.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c2e88e7ebb6182b1e60c4f4ac59eaf46c28e21434706b4887c63cb9a8f84b25
|
4
|
+
data.tar.gz: 33e4bba4d05ea7bd18dd7ee6941f3b81c3723a3a4f5a32e948e4a60cfe991df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676baaea8845b9c9bb3c66ca103355e949105e70effa250ded10373de3bcd0ef366e6843bee407d53f4b13440c7899760648c2bd3bd2936b6e83fdcfe0d5f0c0
|
7
|
+
data.tar.gz: aa6d2cbd168bdd77190e6e1d549bc729bae606d1cf06f5e6ebc5ffef03940557445f9fdd34dd1736b0316d519bda3475e2f883d8ff8e5919a9c84c1dc2984d26
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
`Jekyll_img` is a Jekyll plugin that embeds images in HTML documents, with alignment options,
|
5
|
-
flexible resizing, default styling, overridable styling, an optional caption,
|
5
|
+
flexible resizing, default styling, overridable styling, an optional caption, an optional URL,
|
6
|
+
and optional fullscreen zoom on mouseover.
|
6
7
|
|
7
8
|
Muliple image formats are supported for each image.
|
8
9
|
The user’s web browser determines the formats which it will accept.
|
@@ -131,6 +132,7 @@ $ demo/_bin/debug -r
|
|
131
132
|
- `url='https://domain.com'` No default value
|
132
133
|
- `wrapper_class='class1 class2 classN'` Extra CSS classes for wrapper <div>; no default value
|
133
134
|
- `wrapper_style='background-color: black;'` CSS style for wrapper <div>; no default value
|
135
|
+
- `zoom` Fullscreen zoom on mouseover; presse escape or click outside image to dismiss
|
134
136
|
|
135
137
|
[`unit`](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#numbers_lengths_and_percentages)
|
136
138
|
is one of: `Q`, `ch`, `cm`, `em`, `dvh`, `dvw`, `ex`, `in`, `lh`,
|
data/jekyll_img.gemspec
CHANGED
@@ -3,7 +3,6 @@ require_relative 'lib/jekyll_img/version'
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
github = 'https://github.com/mslinn/jekyll_img'
|
5
5
|
|
6
|
-
spec.bindir = 'exe'
|
7
6
|
spec.authors = ['Mike Slinn']
|
8
7
|
spec.email = ['mslinn@mslinn.com']
|
9
8
|
spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
|
@@ -29,5 +28,5 @@ Gem::Specification.new do |spec|
|
|
29
28
|
spec.version = JekyllImgVersion::VERSION
|
30
29
|
|
31
30
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
32
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.
|
31
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
33
32
|
end
|
data/lib/jekyll_img/version.rb
CHANGED
data/lib/jekyll_img.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'jekyll_plugin_support'
|
2
|
-
require 'jekyll_plugin_helper'
|
2
|
+
require 'helper/jekyll_plugin_helper'
|
3
3
|
require 'pry'
|
4
4
|
require_relative 'img_builder'
|
5
5
|
require_relative 'img_props'
|
@@ -13,10 +13,10 @@ module ImgModule
|
|
13
13
|
end
|
14
14
|
|
15
15
|
module Jekyll
|
16
|
-
ImgError = JekyllSupport.define_error
|
16
|
+
ImgError = ::JekyllSupport.define_error
|
17
17
|
|
18
18
|
# Plugin implementation
|
19
|
-
class Img < JekyllSupport::JekyllTag
|
19
|
+
class Img < ::JekyllSupport::JekyllTag
|
20
20
|
include JekyllImgVersion
|
21
21
|
|
22
22
|
def render_impl
|
@@ -56,6 +56,6 @@ module Jekyll
|
|
56
56
|
"<div class='jekyll_img_error'>#{e.class} raised in #{@tag_name} tag\n#{msg}</div>"
|
57
57
|
end
|
58
58
|
|
59
|
-
JekyllPluginHelper.register(self, ImgModule::PLUGIN_NAME)
|
59
|
+
::JekyllSupport::JekyllPluginHelper.register(self, ImgModule::PLUGIN_NAME)
|
60
60
|
end
|
61
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_img
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.0
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- mslinn@mslinn.com
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.5.16
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Provides a Jekyll tag that generates images.
|