middleman-core 4.3.6 → 4.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/default_alt_tag.feature +11 -0
- data/features/relative_assets.feature +1 -1
- data/features/relative_assets_helpers_only.feature +1 -1
- data/fixtures/default-alt-tags-app/config.rb +0 -0
- data/fixtures/default-alt-tags-app/source/empty-alt-tag.html.erb +1 -0
- data/fixtures/default-alt-tags-app/source/images/blank.gif +0 -0
- data/fixtures/default-alt-tags-app/source/meaningful-alt-tag.html.erb +1 -0
- data/lib/middleman-core/core_extensions/default_helpers.rb +2 -0
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +1 -1
- metadata +14 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a62bb451348c77bfb582a6fd7a97f8913c30e1602e256bb307672e022bfcc314
|
4
|
+
data.tar.gz: 83fe52a59f84380ad4eb754d00c79754eeb546ed3f15fa15f47603d0740e72b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33de280861e5d60ef103a6abb8fd1602dc7c36899dc08731a63975049c96961c5e0e8bda083b14a40d1638f08c614dcd903799d15ffa550a39d3e276287f74ae
|
7
|
+
data.tar.gz: 5e42f113d14f5dcd70276bfb548ed6c2f8d38ce889e1fbd4f35f6407d906827b46132e156c152f80c77de4b93afc8df65f6f381c4292fd569d0922145cc50c8e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Feature: Add an empty alt tag for images that don't have alt tags specified
|
2
|
+
|
3
|
+
Scenario: Image does not have alt tag specified
|
4
|
+
Given the Server is running at "default-alt-tags-app"
|
5
|
+
When I go to "/empty-alt-tag.html"
|
6
|
+
Then I should see 'alt=""'
|
7
|
+
|
8
|
+
Scenario: Image has alt tag specified
|
9
|
+
Given the Server is running at "default-alt-tags-app"
|
10
|
+
When I go to "/meaningful-alt-tag.html"
|
11
|
+
Then I should see 'alt="Meaningful alt text"'
|
@@ -131,7 +131,7 @@ Feature: Relative Assets
|
|
131
131
|
"""
|
132
132
|
And the Server is running at "relative-assets-app"
|
133
133
|
When I go to "/sub/image_tag.html"
|
134
|
-
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />'
|
134
|
+
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" />'
|
135
135
|
|
136
136
|
Scenario: URLs are not rewritten for rewrite ignored paths
|
137
137
|
Given a fixture app "relative-assets-app"
|
@@ -87,7 +87,7 @@ Feature: Relative Assets (Helpers Only)
|
|
87
87
|
"""
|
88
88
|
And the Server is running at "relative-assets-app"
|
89
89
|
When I go to "/sub/image_tag.html"
|
90
|
-
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />'
|
90
|
+
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" />'
|
91
91
|
|
92
92
|
@wip
|
93
93
|
Scenario: URLs are not rewritten for rewrite ignored paths
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= image_tag "blank.gif" %>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= image_tag "blank.gif", alt: "Meaningful alt text" %>
|
data/middleman-core.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.add_dependency('dotenv')
|
30
30
|
|
31
31
|
# Helpers
|
32
|
-
s.add_dependency('activesupport', ['>= 4.2', '<
|
32
|
+
s.add_dependency('activesupport', ['>= 4.2', '< 6.0'])
|
33
33
|
s.add_dependency('padrino-helpers', ['~> 0.13.0'])
|
34
34
|
s.add_dependency("addressable", ["~> 2.3"])
|
35
35
|
s.add_dependency('memoist', ['~> 0.14'])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -139,7 +139,7 @@ dependencies:
|
|
139
139
|
version: '4.2'
|
140
140
|
- - "<"
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
142
|
+
version: '6.0'
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -149,7 +149,7 @@ dependencies:
|
|
149
149
|
version: '4.2'
|
150
150
|
- - "<"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '6.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: padrino-helpers
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -370,6 +370,7 @@ files:
|
|
370
370
|
- features/custom_layouts.feature
|
371
371
|
- features/data.feature
|
372
372
|
- features/default-layout.feature
|
373
|
+
- features/default_alt_tag.feature
|
373
374
|
- features/directory_index.feature
|
374
375
|
- features/dynamic_pages.feature
|
375
376
|
- features/encoding_option.feature
|
@@ -658,6 +659,10 @@ files:
|
|
658
659
|
- fixtures/data-app/data/pages.yml
|
659
660
|
- fixtures/data-app/source/index.html.erb
|
660
661
|
- fixtures/data-app/source/layout.erb
|
662
|
+
- fixtures/default-alt-tags-app/config.rb
|
663
|
+
- fixtures/default-alt-tags-app/source/empty-alt-tag.html.erb
|
664
|
+
- fixtures/default-alt-tags-app/source/images/blank.gif
|
665
|
+
- fixtures/default-alt-tags-app/source/meaningful-alt-tag.html.erb
|
661
666
|
- fixtures/different-engine-layout/config.rb
|
662
667
|
- fixtures/different-engine-layout/source/index.haml
|
663
668
|
- fixtures/different-engine-layout/source/index.html.str
|
@@ -1579,6 +1584,7 @@ test_files:
|
|
1579
1584
|
- features/custom_layouts.feature
|
1580
1585
|
- features/data.feature
|
1581
1586
|
- features/default-layout.feature
|
1587
|
+
- features/default_alt_tag.feature
|
1582
1588
|
- features/directory_index.feature
|
1583
1589
|
- features/dynamic_pages.feature
|
1584
1590
|
- features/encoding_option.feature
|
@@ -1867,6 +1873,10 @@ test_files:
|
|
1867
1873
|
- fixtures/data-app/data/pages.yml
|
1868
1874
|
- fixtures/data-app/source/index.html.erb
|
1869
1875
|
- fixtures/data-app/source/layout.erb
|
1876
|
+
- fixtures/default-alt-tags-app/config.rb
|
1877
|
+
- fixtures/default-alt-tags-app/source/empty-alt-tag.html.erb
|
1878
|
+
- fixtures/default-alt-tags-app/source/images/blank.gif
|
1879
|
+
- fixtures/default-alt-tags-app/source/meaningful-alt-tag.html.erb
|
1870
1880
|
- fixtures/different-engine-layout/config.rb
|
1871
1881
|
- fixtures/different-engine-layout/source/index.haml
|
1872
1882
|
- fixtures/different-engine-layout/source/index.html.str
|