jekyll_img 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/jekyll_img.gemspec +2 -8
- data/lib/img_props.rb +2 -2
- data/lib/jekyll_img/version.rb +1 -1
- metadata +6 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 709fbb2e5a2e031e00ed20fcc174da7bd7e7c3aac659d0cf776332dc76afad3d
|
4
|
+
data.tar.gz: 2f4bed1c27269cfe898571b7f1f90b1147b99d6c0d083d037efcddcd0cca252a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1be4707688b9d379e2f1ef172c127fad2ff8edc01803df764325e047ceedbba7d38baf4a8a22ca03d7d9d0963da8348392f612e7b27040b3709cccdd32748a49
|
7
|
+
data.tar.gz: 0ff4b6747fe1448929c0f566858168387ef8e021642faa17740050bc382f7b6ed4f82275e93472b3507a51a207a8d1ffb5bb652bd222df430da58f41c967a2de
|
data/CHANGELOG.md
CHANGED
data/jekyll_img.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
7
7
|
spec.authors = ['Mike Slinn']
|
8
8
|
spec.email = ['mslinn@mslinn.com']
|
9
9
|
spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
|
10
|
-
spec.homepage = 'https://
|
10
|
+
spec.homepage = 'https://mslinn.com/jekyll/3000-jekyll-plugins.html#jekyll_img'
|
11
11
|
spec.license = 'MIT'
|
12
12
|
spec.metadata = {
|
13
13
|
'allowed_push_host' => 'https://rubygems.org',
|
@@ -29,14 +29,8 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
29
29
|
spec.version = JekyllImgVersion::VERSION
|
30
30
|
|
31
31
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
32
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.3.
|
32
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 0.3.1'
|
33
33
|
|
34
|
-
# spec.add_development_dependency 'debase'
|
35
34
|
spec.add_development_dependency 'rspec'
|
36
35
|
spec.add_development_dependency 'rspec-match_ignoring_whitespace'
|
37
|
-
spec.add_development_dependency 'rubocop'
|
38
|
-
# spec.add_development_dependency 'rubocop-jekyll'
|
39
|
-
spec.add_development_dependency 'rubocop-rake'
|
40
|
-
spec.add_development_dependency 'rubocop-rspec'
|
41
|
-
spec.add_development_dependency 'ruby-debug-ide'
|
42
36
|
end
|
data/lib/img_props.rb
CHANGED
@@ -26,7 +26,7 @@ class ImgProperties
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def attr_size_class
|
29
|
-
return nil if @size.nil? || size_unit_specified?
|
29
|
+
return nil if @size == false || @size.nil? || size_unit_specified?
|
30
30
|
|
31
31
|
abort "'#{@size}' is not a recognized size; must be one of #{SIZES.join(', ')}, or an explicit unit." \
|
32
32
|
unless SIZES.include?(@size)
|
@@ -86,7 +86,7 @@ class ImgProperties
|
|
86
86
|
UNITS = %w[Q ch cm em dvh dvw ex in lh lvh lvw mm pc px pt rem rlh svh svw vb vh vi vmax vmin vw %].freeze
|
87
87
|
|
88
88
|
def size_unit_specified?
|
89
|
-
return false if @size.to_s.strip.empty?
|
89
|
+
return false if @size == false || @size.to_s.strip.empty?
|
90
90
|
|
91
91
|
@size.end_with?(*UNITS)
|
92
92
|
end
|
data/lib/jekyll_img/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-14 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.3.
|
33
|
+
version: 0.3.1
|
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.3.
|
40
|
+
version: 0.3.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,62 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: ruby-debug-ide
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
69
|
description:
|
126
70
|
email:
|
127
71
|
- mslinn@mslinn.com
|
@@ -144,14 +88,14 @@ files:
|
|
144
88
|
- spec/jekyll_img_spec.rb
|
145
89
|
- spec/spec_helper.rb
|
146
90
|
- spec/status_persistence.txt
|
147
|
-
homepage: https://
|
91
|
+
homepage: https://mslinn.com/jekyll/3000-jekyll-plugins.html#jekyll_img
|
148
92
|
licenses:
|
149
93
|
- MIT
|
150
94
|
metadata:
|
151
95
|
allowed_push_host: https://rubygems.org
|
152
96
|
bug_tracker_uri: https://github.com/mslinn/jekyll_img/issues
|
153
97
|
changelog_uri: https://github.com/mslinn/jekyll_img/CHANGELOG.md
|
154
|
-
homepage_uri: https://
|
98
|
+
homepage_uri: https://mslinn.com/jekyll/3000-jekyll-plugins.html#jekyll_img
|
155
99
|
source_code_uri: https://github.com/mslinn/jekyll_img
|
156
100
|
post_install_message: |2+
|
157
101
|
|