jekyll_picture_tag 1.7.0 → 1.10.1

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/.solargraph.yml +15 -0
  4. data/.travis.yml +4 -7
  5. data/Dockerfile +9 -0
  6. data/docs/Gemfile +4 -0
  7. data/docs/Gemfile.lock +249 -0
  8. data/docs/_config.yml +13 -0
  9. data/docs/_layouts/directory.html +32 -0
  10. data/docs/assets/style.css +31 -0
  11. data/{contributing.md → docs/contributing.md} +57 -15
  12. data/docs/{examples/_data/picture.yml → example_presets.md} +36 -25
  13. data/docs/global_configuration.md +61 -3
  14. data/docs/index.md +114 -0
  15. data/docs/installation.md +36 -21
  16. data/docs/migration.md +4 -0
  17. data/docs/notes.md +64 -58
  18. data/docs/output.md +63 -0
  19. data/docs/presets.md +175 -221
  20. data/docs/releases.md +64 -0
  21. data/docs/usage.md +91 -79
  22. data/jekyll_picture_tag.gemspec +3 -1
  23. data/lib/jekyll_picture_tag.rb +27 -10
  24. data/lib/jekyll_picture_tag/defaults/global.yml +2 -0
  25. data/lib/jekyll_picture_tag/defaults/presets.yml +2 -0
  26. data/lib/jekyll_picture_tag/generated_image.rb +105 -19
  27. data/lib/jekyll_picture_tag/instructions.rb +1 -0
  28. data/lib/jekyll_picture_tag/instructions/arg_splitter.rb +68 -0
  29. data/lib/jekyll_picture_tag/instructions/configuration.rb +47 -11
  30. data/lib/jekyll_picture_tag/instructions/html_attributes.rb +14 -8
  31. data/lib/jekyll_picture_tag/instructions/preset.rb +34 -14
  32. data/lib/jekyll_picture_tag/instructions/set.rb +18 -8
  33. data/lib/jekyll_picture_tag/instructions/tag_parser.rb +59 -69
  34. data/lib/jekyll_picture_tag/output_formats/basic.rb +35 -6
  35. data/lib/jekyll_picture_tag/output_formats/data_attributes.rb +4 -1
  36. data/lib/jekyll_picture_tag/router.rb +16 -0
  37. data/lib/jekyll_picture_tag/source_image.rb +6 -1
  38. data/lib/jekyll_picture_tag/srcsets/basic.rb +45 -19
  39. data/lib/jekyll_picture_tag/srcsets/pixel_ratio.rb +1 -3
  40. data/lib/jekyll_picture_tag/srcsets/width.rb +1 -1
  41. data/lib/jekyll_picture_tag/utils.rb +18 -0
  42. data/lib/jekyll_picture_tag/version.rb +1 -1
  43. data/readme.md +43 -200
  44. metadata +49 -13
  45. data/docs/examples/_config.yml +0 -10
  46. data/docs/examples/post.md +0 -46
  47. data/docs/readme.md +0 -23
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_picture_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Wierzbowski
8
8
  - Brendan Tobolaski
9
9
  - Robert Buchberger
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-08-12 00:00:00.000000000 Z
13
+ date: 2020-07-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -124,6 +124,20 @@ dependencies:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: solargraph
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
142
  name: addressable
129
143
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +152,20 @@ dependencies:
138
152
  - - "~>"
139
153
  - !ruby/object:Gem::Version
140
154
  version: '2.6'
155
+ - !ruby/object:Gem::Dependency
156
+ name: base32
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '0.3'
162
+ type: :runtime
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "~>"
167
+ - !ruby/object:Gem::Version
168
+ version: '0.3'
141
169
  - !ruby/object:Gem::Dependency
142
170
  name: mime-types
143
171
  requirement: !ruby/object:Gem::Requirement
@@ -172,14 +200,14 @@ dependencies:
172
200
  requirements:
173
201
  - - "~>"
174
202
  - !ruby/object:Gem::Version
175
- version: '1.1'
203
+ version: 1.1.2
176
204
  type: :runtime
177
205
  prerelease: false
178
206
  version_requirements: !ruby/object:Gem::Requirement
179
207
  requirements:
180
208
  - - "~>"
181
209
  - !ruby/object:Gem::Version
182
- version: '1.1'
210
+ version: 1.1.2
183
211
  - !ruby/object:Gem::Dependency
184
212
  name: jekyll
185
213
  requirement: !ruby/object:Gem::Requirement
@@ -209,20 +237,27 @@ files:
209
237
  - ".gitignore"
210
238
  - ".rubocop.yml"
211
239
  - ".ruby-version"
240
+ - ".solargraph.yml"
212
241
  - ".travis.yml"
242
+ - Dockerfile
213
243
  - Gemfile
214
244
  - LICENSE.txt
215
245
  - Rakefile
216
- - contributing.md
217
- - docs/examples/_config.yml
218
- - docs/examples/_data/picture.yml
219
- - docs/examples/post.md
246
+ - docs/Gemfile
247
+ - docs/Gemfile.lock
248
+ - docs/_config.yml
249
+ - docs/_layouts/directory.html
250
+ - docs/assets/style.css
251
+ - docs/contributing.md
252
+ - docs/example_presets.md
220
253
  - docs/global_configuration.md
254
+ - docs/index.md
221
255
  - docs/installation.md
222
256
  - docs/migration.md
223
257
  - docs/notes.md
258
+ - docs/output.md
224
259
  - docs/presets.md
225
- - docs/readme.md
260
+ - docs/releases.md
226
261
  - docs/usage.md
227
262
  - jekyll-picture-tag.gemspec
228
263
  - jekyll_picture_tag.gemspec
@@ -233,6 +268,7 @@ files:
233
268
  - lib/jekyll_picture_tag/generated_image.rb
234
269
  - lib/jekyll_picture_tag/img_uri.rb
235
270
  - lib/jekyll_picture_tag/instructions.rb
271
+ - lib/jekyll_picture_tag/instructions/arg_splitter.rb
236
272
  - lib/jekyll_picture_tag/instructions/configuration.rb
237
273
  - lib/jekyll_picture_tag/instructions/html_attributes.rb
238
274
  - lib/jekyll_picture_tag/instructions/preset.rb
@@ -263,7 +299,7 @@ homepage: https://github.com/rbuchberger/jekyll_picture_tag
263
299
  licenses:
264
300
  - BSD-3-Clause
265
301
  metadata: {}
266
- post_install_message:
302
+ post_install_message:
267
303
  rdoc_options: []
268
304
  require_paths:
269
305
  - lib
@@ -281,8 +317,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
317
  - !ruby/object:Gem::Version
282
318
  version: '0'
283
319
  requirements: []
284
- rubygems_version: 3.0.4
285
- signing_key:
320
+ rubygems_version: 3.1.4
321
+ signing_key:
286
322
  specification_version: 4
287
323
  summary: Easy responsive images for Jekyll.
288
324
  test_files: []
@@ -1,10 +0,0 @@
1
- # Sample Jekyll Picture Tag settings
2
- # Note that all of these settings have sensible defaults. Don't just copy-paste
3
- # this into your _config.yml!
4
- picture:
5
- source: assets/images/_fullsize
6
- output: generated
7
- suppress_warnings: false
8
- ignore_missing_images: [development, test]
9
- cdn_url: cdn.example.com
10
- cdn_environments: production
@@ -1,46 +0,0 @@
1
- ```
2
- ---
3
- layout: post
4
- title: Tag examples
5
- image: img.jpg
6
- ---
7
- ```
8
-
9
- - Standard image, default preset, with alt text:
10
-
11
- `{% picture portrait.jpg --alt An unsual picture %}`
12
-
13
- - Select the `gallery` `markup_preset` (which you must define!):
14
-
15
- `{% picture gallery portrait.jpg %} `
16
-
17
- - Specify html attributes:
18
-
19
- `{% picture portrait.jpg --picture class="some classes" data-downloadable="true" %}`
20
-
21
- - Provide multiple source images for different screen sizes: (note that you must
22
- define the mobile `media_preset`):
23
-
24
- `{% picture portrait.jpg mobile: portrait-cropped.jpg %}`
25
-
26
- - Wrap picture in a link to something:
27
-
28
- `{% picture portrait.jpg --link /profile.html %}`
29
-
30
- - Use liquid variables:
31
-
32
- `{% picture {{ post.image }} %}`
33
-
34
- - Line breaks and indentation are fine:
35
-
36
- ```
37
- {%
38
- picture
39
- gallery
40
- portrait.jpg
41
- mobile: portrait-cropped.jpg
42
- --picture class="portrait" data-downloadable="true"
43
- --img data-awesomeness="11"
44
- --alt Ugly Mug
45
- %}
46
- ```
@@ -1,23 +0,0 @@
1
- # Table of Contents
2
-
3
- * [Installation](installation.md)
4
- - Get up and running
5
-
6
- * [Usage](usage.md)
7
- - How to write liquid tags and actually put pictures on your site
8
-
9
- * [Global settings](global_configuration.md)
10
- - Settings which apply to all presets
11
-
12
- * [Presets](presets.md)
13
- - How to customize what images are generated and which markup is generated.
14
-
15
- * [Other notes](notes.md)
16
- - Caveats and gotchas
17
-
18
- * [Contribute](/contributing.md)
19
- - Appreciate the help!
20
-
21
- * [License](/LICENSE.txt)
22
-
23
- * [Release History](/readme.md#release-history)