shi-jekyll-images 0.1.0.9 → 0.1.0.10
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 +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +122 -30
- data/lib/shi/jekyll/images/config.rb +14 -1
- data/lib/shi/jekyll/images/files.rb +1 -1
- data/lib/shi/jekyll/images/image.rb +5 -0
- data/lib/shi/jekyll/images/version.rb +7 -7
- metadata +17 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c77523027f7e9294ce8bc1fc00d49d0f6755c187b11ff1246c437733862c89c
|
4
|
+
data.tar.gz: ff6c2ea236e24512af52445686fbabae4c97a29b88a312b35c09f4f7c76b4e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7154cca878a8f39286d49ee5ae258792ce11dae99fdf89f8f17a23498226d0898147389a9bba4d9811fdeba54c2d8e4c9432be6fd4234b2a5faa919a6e2f67b5
|
7
|
+
data.tar.gz: e99623acc24dfe627f10c4b199ed750d4668bc1c4ca5567bb293df2c3e54b8438c45be03a4a7c9a97478813d0f14791a7f4b469c944c27aadf878adc53a775fc
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,84 +1,176 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shi-jekyll-images (0.1.0)
|
4
|
+
shi-jekyll-images (0.1.0.9)
|
5
5
|
jekyll (>= 4.0, < 5.0)
|
6
6
|
liquid (~> 4.0)
|
7
|
-
shi-args (~> 0.3.
|
8
|
-
shi-tools (~> 0.
|
7
|
+
shi-args (~> 0.3.4.2)
|
8
|
+
shi-tools (~> 0.2.0)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.8.
|
14
|
-
public_suffix (>= 2.0.2, <
|
13
|
+
addressable (2.8.7)
|
14
|
+
public_suffix (>= 2.0.2, < 7.0)
|
15
|
+
base64 (0.3.0)
|
16
|
+
bigdecimal (3.2.3)
|
15
17
|
colorator (1.1.0)
|
16
|
-
concurrent-ruby (1.
|
18
|
+
concurrent-ruby (1.3.5)
|
19
|
+
csv (3.3.5)
|
17
20
|
em-websocket (0.5.3)
|
18
21
|
eventmachine (>= 0.12.9)
|
19
22
|
http_parser.rb (~> 0)
|
20
23
|
eventmachine (1.2.7)
|
21
|
-
ffi (1.
|
24
|
+
ffi (1.17.2)
|
25
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
26
|
+
ffi (1.17.2-aarch64-linux-musl)
|
27
|
+
ffi (1.17.2-arm-linux-gnu)
|
28
|
+
ffi (1.17.2-arm-linux-musl)
|
29
|
+
ffi (1.17.2-arm64-darwin)
|
30
|
+
ffi (1.17.2-x86-linux-gnu)
|
31
|
+
ffi (1.17.2-x86-linux-musl)
|
32
|
+
ffi (1.17.2-x86_64-darwin)
|
33
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
34
|
+
ffi (1.17.2-x86_64-linux-musl)
|
22
35
|
forwardable-extended (2.6.0)
|
23
|
-
google-protobuf (
|
36
|
+
google-protobuf (4.32.0)
|
37
|
+
bigdecimal
|
38
|
+
rake (>= 13)
|
39
|
+
google-protobuf (4.32.0-aarch64-linux-gnu)
|
40
|
+
bigdecimal
|
41
|
+
rake (>= 13)
|
42
|
+
google-protobuf (4.32.0-aarch64-linux-musl)
|
43
|
+
bigdecimal
|
44
|
+
rake (>= 13)
|
45
|
+
google-protobuf (4.32.0-arm64-darwin)
|
46
|
+
bigdecimal
|
47
|
+
rake (>= 13)
|
48
|
+
google-protobuf (4.32.0-x86-linux-gnu)
|
49
|
+
bigdecimal
|
50
|
+
rake (>= 13)
|
51
|
+
google-protobuf (4.32.0-x86-linux-musl)
|
52
|
+
bigdecimal
|
53
|
+
rake (>= 13)
|
54
|
+
google-protobuf (4.32.0-x86_64-darwin)
|
55
|
+
bigdecimal
|
56
|
+
rake (>= 13)
|
57
|
+
google-protobuf (4.32.0-x86_64-linux-gnu)
|
58
|
+
bigdecimal
|
59
|
+
rake (>= 13)
|
60
|
+
google-protobuf (4.32.0-x86_64-linux-musl)
|
61
|
+
bigdecimal
|
62
|
+
rake (>= 13)
|
24
63
|
http_parser.rb (0.8.0)
|
25
|
-
i18n (1.
|
64
|
+
i18n (1.14.7)
|
26
65
|
concurrent-ruby (~> 1.0)
|
27
|
-
jekyll (4.
|
66
|
+
jekyll (4.4.1)
|
28
67
|
addressable (~> 2.4)
|
68
|
+
base64 (~> 0.2)
|
29
69
|
colorator (~> 1.0)
|
70
|
+
csv (~> 3.0)
|
30
71
|
em-websocket (~> 0.5)
|
31
72
|
i18n (~> 1.0)
|
32
73
|
jekyll-sass-converter (>= 2.0, < 4.0)
|
33
74
|
jekyll-watch (~> 2.0)
|
75
|
+
json (~> 2.6)
|
34
76
|
kramdown (~> 2.3, >= 2.3.1)
|
35
77
|
kramdown-parser-gfm (~> 1.0)
|
36
78
|
liquid (~> 4.0)
|
37
|
-
mercenary (
|
79
|
+
mercenary (~> 0.3, >= 0.3.6)
|
38
80
|
pathutil (~> 0.9)
|
39
81
|
rouge (>= 3.0, < 5.0)
|
40
82
|
safe_yaml (~> 1.0)
|
41
83
|
terminal-table (>= 1.8, < 4.0)
|
42
84
|
webrick (~> 1.7)
|
43
|
-
jekyll-sass-converter (3.
|
44
|
-
sass-embedded (~> 1.
|
85
|
+
jekyll-sass-converter (3.1.0)
|
86
|
+
sass-embedded (~> 1.75)
|
45
87
|
jekyll-watch (2.2.1)
|
46
88
|
listen (~> 3.0)
|
47
|
-
|
48
|
-
|
89
|
+
json (2.13.2)
|
90
|
+
kramdown (2.5.1)
|
91
|
+
rexml (>= 3.3.9)
|
49
92
|
kramdown-parser-gfm (1.1.0)
|
50
93
|
kramdown (~> 2.0)
|
51
|
-
liquid (4.0.
|
52
|
-
listen (3.
|
94
|
+
liquid (4.0.4)
|
95
|
+
listen (3.9.0)
|
53
96
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
54
97
|
rb-inotify (~> 0.9, >= 0.9.10)
|
55
98
|
mercenary (0.4.0)
|
56
99
|
pathutil (0.16.2)
|
57
100
|
forwardable-extended (~> 2.6)
|
58
|
-
public_suffix (
|
101
|
+
public_suffix (6.0.2)
|
102
|
+
rake (13.3.0)
|
59
103
|
rb-fsevent (0.11.2)
|
60
|
-
rb-inotify (0.
|
104
|
+
rb-inotify (0.11.1)
|
61
105
|
ffi (~> 1.0)
|
62
|
-
rexml (3.
|
63
|
-
rouge (4.0
|
106
|
+
rexml (3.4.4)
|
107
|
+
rouge (4.6.0)
|
64
108
|
safe_yaml (1.0.5)
|
65
|
-
sass-embedded (1.
|
66
|
-
google-protobuf (~>
|
67
|
-
|
109
|
+
sass-embedded (1.92.1)
|
110
|
+
google-protobuf (~> 4.31)
|
111
|
+
rake (>= 13)
|
112
|
+
sass-embedded (1.92.1-aarch64-linux-android)
|
113
|
+
google-protobuf (~> 4.31)
|
114
|
+
sass-embedded (1.92.1-aarch64-linux-gnu)
|
115
|
+
google-protobuf (~> 4.31)
|
116
|
+
sass-embedded (1.92.1-aarch64-linux-musl)
|
117
|
+
google-protobuf (~> 4.31)
|
118
|
+
sass-embedded (1.92.1-arm-linux-androideabi)
|
119
|
+
google-protobuf (~> 4.31)
|
120
|
+
sass-embedded (1.92.1-arm-linux-gnueabihf)
|
121
|
+
google-protobuf (~> 4.31)
|
122
|
+
sass-embedded (1.92.1-arm-linux-musleabihf)
|
123
|
+
google-protobuf (~> 4.31)
|
124
|
+
sass-embedded (1.92.1-arm64-darwin)
|
125
|
+
google-protobuf (~> 4.31)
|
126
|
+
sass-embedded (1.92.1-riscv64-linux-android)
|
127
|
+
google-protobuf (~> 4.31)
|
128
|
+
sass-embedded (1.92.1-riscv64-linux-gnu)
|
129
|
+
google-protobuf (~> 4.31)
|
130
|
+
sass-embedded (1.92.1-riscv64-linux-musl)
|
131
|
+
google-protobuf (~> 4.31)
|
132
|
+
sass-embedded (1.92.1-x86_64-darwin)
|
133
|
+
google-protobuf (~> 4.31)
|
134
|
+
sass-embedded (1.92.1-x86_64-linux-android)
|
135
|
+
google-protobuf (~> 4.31)
|
136
|
+
sass-embedded (1.92.1-x86_64-linux-gnu)
|
137
|
+
google-protobuf (~> 4.31)
|
138
|
+
sass-embedded (1.92.1-x86_64-linux-musl)
|
139
|
+
google-protobuf (~> 4.31)
|
140
|
+
shi-args (0.3.4.2)
|
68
141
|
jekyll (>= 4.0, < 5.0)
|
69
142
|
liquid (~> 4.0)
|
70
|
-
shi-tools (~> 0.
|
71
|
-
shi-tools (0.
|
143
|
+
shi-tools (~> 0.2.0)
|
144
|
+
shi-tools (0.2.0)
|
72
145
|
terminal-table (3.0.2)
|
73
146
|
unicode-display_width (>= 1.1.1, < 3)
|
74
|
-
unicode-display_width (2.
|
75
|
-
webrick (1.
|
147
|
+
unicode-display_width (2.6.0)
|
148
|
+
webrick (1.9.1)
|
76
149
|
|
77
150
|
PLATFORMS
|
78
|
-
|
151
|
+
aarch64-linux-android
|
152
|
+
aarch64-linux-gnu
|
153
|
+
aarch64-linux-musl
|
154
|
+
arm-linux-androideabi
|
155
|
+
arm-linux-gnu
|
156
|
+
arm-linux-gnueabihf
|
157
|
+
arm-linux-musl
|
158
|
+
arm-linux-musleabihf
|
159
|
+
arm64-darwin
|
160
|
+
riscv64-linux-android
|
161
|
+
riscv64-linux-gnu
|
162
|
+
riscv64-linux-musl
|
163
|
+
ruby
|
164
|
+
x86-linux-gnu
|
165
|
+
x86-linux-musl
|
166
|
+
x86_64-darwin
|
167
|
+
x86_64-linux-android
|
168
|
+
x86_64-linux-gnu
|
169
|
+
x86_64-linux-musl
|
79
170
|
|
80
171
|
DEPENDENCIES
|
172
|
+
liquid (~> 4.0)
|
81
173
|
shi-jekyll-images!
|
82
174
|
|
83
175
|
BUNDLED WITH
|
84
|
-
2.
|
176
|
+
2.7.1
|
@@ -1,5 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'warning'
|
4
|
+
|
5
|
+
gem_paths = Gem.path.flat_map do |path|
|
6
|
+
Dir.glob("#{path}/gems/*").select do |gem_path|
|
7
|
+
!gem_path.include?("shi-")
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
gem_paths.each do |path|
|
12
|
+
Warning.ignore(//, path)
|
13
|
+
end
|
14
|
+
|
15
|
+
|
3
16
|
module Shi::Jekyll::Images::Config
|
4
17
|
def site_config
|
5
18
|
@@site_config ||= Jekyll::configuration || {}
|
@@ -26,7 +39,7 @@ module Shi::Jekyll::Images::Config
|
|
26
39
|
result = config[name]
|
27
40
|
end
|
28
41
|
result
|
29
|
-
end
|
42
|
+
end
|
30
43
|
|
31
44
|
def site
|
32
45
|
Jekyll::sites.first
|
@@ -125,7 +125,7 @@ class Shi::Jekyll::Images::WebPFile < Jekyll::StaticFile
|
|
125
125
|
FileUtils::mkdir_p(File.dirname(tgt_path))
|
126
126
|
FileUtils::rm(tgt_path) if File.exist?(tgt_path)
|
127
127
|
cmd = "convert '#{src_path}' #{cropping(@wp_crop)} #{resizing(@wp_bounds)} #{qualiting} '#{tgt_path}'"
|
128
|
-
system(cmd, exception: true)
|
128
|
+
system(cmd, exception: true, err: '/dev/null')
|
129
129
|
|
130
130
|
true
|
131
131
|
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'pp' # TODO: remove for release
|
3
|
+
# require 'pp' # TODO: remove for release
|
4
4
|
|
5
|
-
require 'fileutils'
|
6
|
-
require 'liquid'
|
7
|
-
require 'jekyll'
|
8
|
-
require 'shi/tools'
|
9
|
-
require 'shi/args'
|
5
|
+
# require 'fileutils'
|
6
|
+
# require 'liquid'
|
7
|
+
# require 'jekyll'
|
8
|
+
# require 'shi/tools'
|
9
|
+
# require 'shi/args'
|
10
10
|
|
11
11
|
module Shi
|
12
12
|
module Jekyll
|
13
13
|
module Images
|
14
|
-
VERSION = '0.1.0.
|
14
|
+
VERSION = '0.1.0.10'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shi-jekyll-images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Shikhalev
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: warning
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
13
26
|
- !ruby/object:Gem::Dependency
|
14
27
|
name: jekyll
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,7 +85,6 @@ dependencies:
|
|
72
85
|
- - "~>"
|
73
86
|
- !ruby/object:Gem::Version
|
74
87
|
version: 0.3.4.2
|
75
|
-
description:
|
76
88
|
email:
|
77
89
|
- shikhalev@gmail.com
|
78
90
|
executables: []
|
@@ -99,7 +111,6 @@ licenses:
|
|
99
111
|
metadata:
|
100
112
|
homepage_uri: https://github.com/shikhalev/shi-jekyll-images
|
101
113
|
source_code_uri: https://github.com/shikhalev/shi-jekyll-images
|
102
|
-
post_install_message:
|
103
114
|
rdoc_options: []
|
104
115
|
require_paths:
|
105
116
|
- lib
|
@@ -114,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
125
|
- !ruby/object:Gem::Version
|
115
126
|
version: '0'
|
116
127
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
118
|
-
signing_key:
|
128
|
+
rubygems_version: 3.7.1
|
119
129
|
specification_version: 4
|
120
130
|
summary: Jekyll plugin for image manipulation
|
121
131
|
test_files: []
|