distorted-jekyll 0.4.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -6
  3. metadata +22 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9bbc746db97aa347f0e71ee17415beafa975ae919e705ac980f3e2e4e08844a
4
- data.tar.gz: 2f2b88dc9a1cf031f86cb1cd3dd065e81020ea6ea25c8217da75c7bcef8c2113
3
+ metadata.gz: f4f831d05b3804c80ee4e2bdc7ec9feada1ac3354eff75683d360e77860e798c
4
+ data.tar.gz: 79a725800019c1ed5608d0563360e16a7f926b5767963c64070074b2049a9e6d
5
5
  SHA512:
6
- metadata.gz: 9c9bff0180149180425291ea47d6029e4d1d59c0d86ac6a52ec8373c86b00771cf2fe1f7f7c97cd8c0280d408ae5ba8b7a9d518fad8ed4fc214ded2299beaff6
7
- data.tar.gz: cd89b101f471eaf614e0fa01bafc79c6642fc1f8b3934ceb0ccecce361c94ce6a74035e6e466d5ab7039f6884fdbb259cdea440013b9c0354e7825e8b6e4e361
6
+ metadata.gz: 2946e536bb73304f00ec5b021fa2f36b7b3dcecd9ecaac2f2076ab1fb8532bcd890873bdef87de5b040af295a6ca2b69610e8a559fd0b1910c35410fe51600b7
7
+ data.tar.gz: e9cb8fc2cfbd5ce222db23c478288beb22f23582ca1658e4d1742c625186a7066e68a11957a2d8d6c52c0c3922a5a08657312f8dbe96375379ec370411b5a5af
data/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  `DistorteD` is a multimedia framework for Jekyll websites.
4
4
 
5
5
  Right now this repo contains two Gems:
6
- - `DistorteD-Jekyll` contains anything and everything that depends on Jekyll.
7
- - `DistorteD-Ruby` contains just the abstract media file format handling code. It's separate so I can use those functions in other contexts and/or easily replace the Ruby core if necessary.
6
+ - [`DistorteD-Jekyll`](https://rubygems.org/gems/distorted-jekyll) contains anything and everything that depends on Jekyll.
7
+ - [`DistorteD-Ruby`](https://rubygems.org/gems/distorted) contains just the abstract media file format handling code. It's separate so I can use those functions in other contexts and/or easily replace the Ruby core if necessary.
8
8
 
9
9
  ## Motivation
10
10
 
@@ -27,7 +27,7 @@ I wanted a solution that fit all of my preferences:
27
27
  - I try to [avoid shelling out](https://julialang.org/blog/2012/03/shelling-out-sucks/) if possible, mostly for the sake of efficiency with very large Jekyll sites so we aren't forking and spawning an entire shell just to call `convert` or `ffmpeg` for every single image in every single page. That means avoiding some popular libraries like [mini_magick](https://github.com/minimagick/minimagick/blob/master/lib/mini_magick/shell.rb) and [streamio-ffmpeg](https://github.com/streamio/streamio-ffmpeg/blob/master/lib/streamio-ffmpeg.rb).
28
28
  - I want to support many media types (images, videos, PDF, SVG, etc) with the same syntax and workflow on the source side, and with consistent look-and-feel on the output side.
29
29
  - I want my media files to be able to live in the same directory as their corresponding post/page Markdown. This is something I think Hugo gets right with its concept of [Page Bundles](https://gohugo.io/content-management/page-bundles/). You can get similar functionality with [jekyll-postfiles](https://nhoizey.github.io/jekyll-postfiles/), but it won't generate thumbnails or `<img>`/`<picture>` tags for you. Most Jekyll asset plugins want me to have a single images folder for my entire site.
30
- - I don't want to depend on any APIs, so plugins like [jekyll-cloudinary](https://nhoizey.github.io/jekyll-cloudinary/) and [S3_Video](https://gist.github.com/TimShi/a48fa83abbc8a0242557) are out.
30
+ - I don't want to depend on any APIs, so plugins like [jekyll-cloudinary](https://nhoizey.github.io/jekyll-cloudinary/), [S3_Video](https://gist.github.com/TimShi/a48fa83abbc8a0242557), and [jekyll-imgix](https://docs.imgix.com/libraries/jekyll-imgix) are out.
31
31
  - I want automatic format conversion to maximize compatibility and efficiency, e.g. JPEGs and PNGs should also generate a WebP, native WebPs should generate JPEG or PNG for older browsers, single-frame GIFs should generate a PNG/WebP, animated GIFs should generate an MPEG-4 (or other format) video, all videos should generate HLS and DASH segments/playlists, etc.
32
32
  - I want to good defaults handling of things like EXIF tag sanitization, auto-rotation, smart cropping, and chosen formats. Any of these options should be configurable per-instance with a Maruku/Kramdown-style [attribute list](https://golem.ph.utexas.edu/~distler/maruku/proposal.html).
33
33
 
@@ -37,10 +37,13 @@ Images are fairly well supported and are enabled by default. Video support is ve
37
37
 
38
38
  ## Installation
39
39
 
40
- Add this line to your site's Gemfile:
40
+ Add to your site's Gemfile:
41
41
 
42
42
  ```ruby
43
- gem 'distorted-jekyll'
43
+ group :jekyll_plugins do
44
+ gem 'distorted-jekyll'
45
+ gem 'distorted'
46
+ end
44
47
  ```
45
48
 
46
49
  And then execute:
@@ -107,6 +110,12 @@ Or, for a DD grid:
107
110
 
108
111
  Here's an example of embedding an example image in a Jekyll demo site's first post. No site configuration was changed aside from installing the Gem.
109
112
 
113
+ The Markdown:
114
+
115
+ ```
116
+ ![DistorteD logo](DistorteD.png 'This is so cool')
117
+ ```
118
+
110
119
  The log output:
111
120
 
112
121
  ```
@@ -135,7 +144,7 @@ And the actual template output that ends up in the final page:
135
144
  <source srcset="/jekyll/update/2020/06/17/DistorteD-small.webp" media="(max-width: 400px)" />
136
145
  <source srcset="/jekyll/update/2020/06/17/DistorteD-medium.webp" media="(min-width: 800px)" />
137
146
  <source srcset="/jekyll/update/2020/06/17/DistorteD-large.webp" media="(min-width: 1500px)" />
138
- <img src="/jekyll/update/2020/06/17/DistorteD.png" alt="DistorteD logo" title="DistorteD Demo!" loading="eager" />
147
+ <img src="/jekyll/update/2020/06/17/DistorteD.png" alt="DistorteD logo" title="This is so cool" loading="eager" />
139
148
  </picture>
140
149
  </a>
141
150
  <span style="clear: left;"></span>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distorted-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Reid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.9'
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.9'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: distorted
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.4'
89
+ version: 0.5.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.4'
96
+ version: 0.5.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mime-types
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: ruby-filemagic
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.7'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.7'
125
139
  description: Jekyll::DistorteD is a Liquid tag for embedding media in a Jekyll site
126
140
  with automatic thumbnailing, cropping, and format conversion.
127
141
  email:
@@ -143,14 +157,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
157
  requirements:
144
158
  - - ">="
145
159
  - !ruby/object:Gem::Version
146
- version: '0'
160
+ version: 2.7.0
147
161
  required_rubygems_version: !ruby/object:Gem::Requirement
148
162
  requirements:
149
163
  - - ">="
150
164
  - !ruby/object:Gem::Version
151
165
  version: '0'
152
166
  requirements: []
153
- rubygems_version: 3.1.2
167
+ rubygems_version: 3.1.4
154
168
  signing_key:
155
169
  specification_version: 4
156
170
  summary: Media transformation and embedding framework for Jekyll.