jekyll_picture_tag 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +11 -0
- data/Gemfile +2 -2
- data/Rakefile +28 -0
- data/contributing.md +67 -0
- data/docs/examples/_config.yml +10 -0
- data/{examples → docs/examples}/_data/picture.yml +39 -19
- data/docs/examples/post.md +46 -0
- data/docs/global_configuration.md +115 -0
- data/docs/installation.md +30 -0
- data/docs/migration.md +178 -0
- data/docs/notes.md +85 -0
- data/docs/presets.md +407 -0
- data/docs/readme.md +23 -0
- data/docs/usage.md +131 -0
- data/jekyll-picture-tag.gemspec +3 -12
- data/jekyll_picture_tag.gemspec +8 -3
- data/lib/jekyll-picture-tag.rb +5 -3
- data/lib/jekyll_picture_tag.rb +45 -42
- data/lib/jekyll_picture_tag/defaults/global.yml +0 -3
- data/lib/jekyll_picture_tag/defaults/presets.yml +1 -0
- data/lib/jekyll_picture_tag/generated_image.rb +60 -39
- data/lib/jekyll_picture_tag/img_uri.rb +55 -0
- data/lib/jekyll_picture_tag/instructions.rb +1 -102
- data/lib/jekyll_picture_tag/instructions/configuration.rb +30 -74
- data/lib/jekyll_picture_tag/instructions/html_attributes.rb +18 -27
- data/lib/jekyll_picture_tag/instructions/preset.rb +14 -3
- data/lib/jekyll_picture_tag/instructions/set.rb +61 -0
- data/lib/jekyll_picture_tag/instructions/tag_parser.rb +80 -23
- data/lib/jekyll_picture_tag/output_formats.rb +1 -1
- data/lib/jekyll_picture_tag/output_formats/{basics.rb → basic.rb} +24 -19
- data/lib/jekyll_picture_tag/output_formats/data_attributes.rb +2 -2
- data/lib/jekyll_picture_tag/output_formats/direct_url.rb +1 -3
- data/lib/jekyll_picture_tag/output_formats/img.rb +4 -4
- data/lib/jekyll_picture_tag/output_formats/naked_srcset.rb +5 -4
- data/lib/jekyll_picture_tag/output_formats/picture.rb +6 -16
- data/lib/jekyll_picture_tag/output_formats/readme.md +8 -15
- data/lib/jekyll_picture_tag/router.rb +98 -0
- data/lib/jekyll_picture_tag/source_image.rb +15 -23
- data/lib/jekyll_picture_tag/srcsets.rb +1 -1
- data/lib/jekyll_picture_tag/srcsets/{basics.rb → basic.rb} +22 -13
- data/lib/jekyll_picture_tag/srcsets/pixel_ratio.rb +6 -11
- data/lib/jekyll_picture_tag/srcsets/width.rb +3 -11
- data/lib/jekyll_picture_tag/utils.rb +32 -49
- data/lib/jekyll_picture_tag/version.rb +1 -1
- data/readme.md +70 -70
- metadata +97 -16
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/examples/_config.yml +0 -4
- data/examples/post.md +0 -18
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_picture_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Wierzbowski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -18,14 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '2.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '2.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: minitest
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '5.11'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '5.11'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: mocha
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.9'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '1.9'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: nokogiri
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1.10'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.10'
|
29
71
|
- !ruby/object:Gem::Dependency
|
30
72
|
name: pry
|
31
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -55,19 +97,47 @@ dependencies:
|
|
55
97
|
- !ruby/object:Gem::Version
|
56
98
|
version: '12.3'
|
57
99
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
100
|
+
name: rubocop
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: simplecov
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: addressable
|
59
129
|
requirement: !ruby/object:Gem::Requirement
|
60
130
|
requirements:
|
61
131
|
- - "~>"
|
62
132
|
- !ruby/object:Gem::Version
|
63
|
-
version: '2'
|
133
|
+
version: '2.6'
|
64
134
|
type: :runtime
|
65
135
|
prerelease: false
|
66
136
|
version_requirements: !ruby/object:Gem::Requirement
|
67
137
|
requirements:
|
68
138
|
- - "~>"
|
69
139
|
- !ruby/object:Gem::Version
|
70
|
-
version: '2'
|
140
|
+
version: '2.6'
|
71
141
|
- !ruby/object:Gem::Dependency
|
72
142
|
name: mime-types
|
73
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,15 +207,23 @@ extensions: []
|
|
137
207
|
extra_rdoc_files: []
|
138
208
|
files:
|
139
209
|
- ".gitignore"
|
210
|
+
- ".rubocop.yml"
|
140
211
|
- ".ruby-version"
|
212
|
+
- ".travis.yml"
|
141
213
|
- Gemfile
|
142
214
|
- LICENSE.txt
|
143
215
|
- Rakefile
|
144
|
-
-
|
145
|
-
-
|
146
|
-
- examples/
|
147
|
-
- examples/
|
148
|
-
-
|
216
|
+
- contributing.md
|
217
|
+
- docs/examples/_config.yml
|
218
|
+
- docs/examples/_data/picture.yml
|
219
|
+
- docs/examples/post.md
|
220
|
+
- docs/global_configuration.md
|
221
|
+
- docs/installation.md
|
222
|
+
- docs/migration.md
|
223
|
+
- docs/notes.md
|
224
|
+
- docs/presets.md
|
225
|
+
- docs/readme.md
|
226
|
+
- docs/usage.md
|
149
227
|
- jekyll-picture-tag.gemspec
|
150
228
|
- jekyll_picture_tag.gemspec
|
151
229
|
- lib/jekyll-picture-tag.rb
|
@@ -153,14 +231,16 @@ files:
|
|
153
231
|
- lib/jekyll_picture_tag/defaults/global.yml
|
154
232
|
- lib/jekyll_picture_tag/defaults/presets.yml
|
155
233
|
- lib/jekyll_picture_tag/generated_image.rb
|
234
|
+
- lib/jekyll_picture_tag/img_uri.rb
|
156
235
|
- lib/jekyll_picture_tag/instructions.rb
|
157
236
|
- lib/jekyll_picture_tag/instructions/configuration.rb
|
158
237
|
- lib/jekyll_picture_tag/instructions/html_attributes.rb
|
159
238
|
- lib/jekyll_picture_tag/instructions/preset.rb
|
239
|
+
- lib/jekyll_picture_tag/instructions/set.rb
|
160
240
|
- lib/jekyll_picture_tag/instructions/tag_parser.rb
|
161
241
|
- lib/jekyll_picture_tag/output_formats.rb
|
162
242
|
- lib/jekyll_picture_tag/output_formats/auto.rb
|
163
|
-
- lib/jekyll_picture_tag/output_formats/
|
243
|
+
- lib/jekyll_picture_tag/output_formats/basic.rb
|
164
244
|
- lib/jekyll_picture_tag/output_formats/data_attributes.rb
|
165
245
|
- lib/jekyll_picture_tag/output_formats/data_auto.rb
|
166
246
|
- lib/jekyll_picture_tag/output_formats/data_img.rb
|
@@ -170,15 +250,16 @@ files:
|
|
170
250
|
- lib/jekyll_picture_tag/output_formats/naked_srcset.rb
|
171
251
|
- lib/jekyll_picture_tag/output_formats/picture.rb
|
172
252
|
- lib/jekyll_picture_tag/output_formats/readme.md
|
253
|
+
- lib/jekyll_picture_tag/router.rb
|
173
254
|
- lib/jekyll_picture_tag/source_image.rb
|
174
255
|
- lib/jekyll_picture_tag/srcsets.rb
|
175
|
-
- lib/jekyll_picture_tag/srcsets/
|
256
|
+
- lib/jekyll_picture_tag/srcsets/basic.rb
|
176
257
|
- lib/jekyll_picture_tag/srcsets/pixel_ratio.rb
|
177
258
|
- lib/jekyll_picture_tag/srcsets/width.rb
|
178
259
|
- lib/jekyll_picture_tag/utils.rb
|
179
260
|
- lib/jekyll_picture_tag/version.rb
|
180
261
|
- readme.md
|
181
|
-
homepage: https://github.com/rbuchberger/
|
262
|
+
homepage: https://github.com/rbuchberger/jekyll_picture_tag
|
182
263
|
licenses:
|
183
264
|
- BSD-3-Clause
|
184
265
|
metadata: {}
|
@@ -200,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
281
|
- !ruby/object:Gem::Version
|
201
282
|
version: '0'
|
202
283
|
requirements: []
|
203
|
-
rubygems_version: 3.0.
|
284
|
+
rubygems_version: 3.0.4
|
204
285
|
signing_key:
|
205
286
|
specification_version: 4
|
206
287
|
summary: Easy responsive images for Jekyll.
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'jekyll-picture-tag'
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/examples/_config.yml
DELETED
data/examples/post.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: post
|
3
|
-
title: Tag examples
|
4
|
-
---
|
5
|
-
|
6
|
-
{% picture portrait.jpg --alt An unsual picture %}
|
7
|
-
|
8
|
-
What was the narrative that this representation was meant to embellish and complete? As I regarded
|
9
|
-
the work, I slowly sensed that the underlying tale was the picture itself. The painting wasn’t the
|
10
|
-
extension of a story at all, it was something in its own right.
|
11
|
-
|
12
|
-
### Variations
|
13
|
-
|
14
|
-
With a preset specified:
|
15
|
-
{% picture gallery portrait.jpg --alt An unsual picture --picture data-downloadable="true" %}
|
16
|
-
|
17
|
-
With an alternate source images:
|
18
|
-
{% picture half portrait.jpg tablet: dream-midrange.jpg desktop: dream-fullpage.jpg --alt An unsual picture --picture data-downloadable="true" %}
|