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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a10a11e6cb03e677c6d6098d8a279435f15b2dc03cd81814526a5ebb3f7af367
4
- data.tar.gz: 2bf8aa36d93a53b7f9b39545cf76429eb84ba27484075f33b4589d0c604e59f1
3
+ metadata.gz: 8c2e88e7ebb6182b1e60c4f4ac59eaf46c28e21434706b4887c63cb9a8f84b25
4
+ data.tar.gz: 33e4bba4d05ea7bd18dd7ee6941f3b81c3723a3a4f5a32e948e4a60cfe991df5
5
5
  SHA512:
6
- metadata.gz: 9dd14b201c72f52997f8dac7bb55900fc0ae41754fb00a0dd75578f5d4dab2db8cdb5e106c495a02619c1e33ca5b14833f9ced60fbe30964b5ba39a44f0de81f
7
- data.tar.gz: 3f8ed134b38ddb608a1332eaed49eed3bf1fd97378c3f19c39bd0ab9c75b2497da8f32c14ab09b1092ffe26e4669f85120ff0251786b89b399b32d08be2dfd4e
6
+ metadata.gz: 676baaea8845b9c9bb3c66ca103355e949105e70effa250ded10373de3bcd0ef366e6843bee407d53f4b13440c7899760648c2bd3bd2936b6e83fdcfe0d5f0c0
7
+ data.tar.gz: aa6d2cbd168bdd77190e6e1d549bc729bae606d1cf06f5e6ebc5ffef03940557445f9fdd34dd1736b0316d519bda3475e2f883d8ff8e5919a9c84c1dc2984d26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.2.4 / 2024-07-23
4
+
5
+ * Depends on jekyll_plugin_support v1.0.0
6
+
7
+
8
+ ## 0.2.3 / 2024-04-27
9
+
10
+ * Depends on jekyll_plugin_support v0.8.5
11
+
12
+
3
13
  ## 0.2.2 / 2024-01-08
4
14
 
5
15
  * Added support for all image types except `avif`.
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, and an optional URL.
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.8.0'
31
+ spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
33
32
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllImgVersion
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
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.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-28 00:00:00.000000000 Z
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.8.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.8.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.4.22
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.