middlemac-extras 1.0.10 → 1.0.11
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 +5 -5
- data/.gitattributes +4 -0
- data/CHANGELOG.md +15 -0
- data/Rakefile +5 -1
- data/documentation_project/Gemfile +2 -2
- data/documentation_project/config.rb +2 -2
- data/features/helpers.feature +2 -2
- data/lib/middlemac-extras/extension.rb +0 -16
- data/lib/middlemac-extras/version.rb +1 -1
- data/middlemac-extras.gemspec +33 -15
- metadata +23 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62c558839c6210edb90fc9af6769a000b2a5192de0a047e796ee67796d759ae1
|
4
|
+
data.tar.gz: 862e1a8f7d748db8d981d55c492a1ffb309f4b4944047d88e5a55e3706cc1811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3333535b3f47c533f8faac58372a6a142d0d1a0dfc3c6a7fa81cc85be1702bf224628283966b02ea7eca25c04b1fc7f81d89ad6fe2619d0df718a1f6e69719c
|
7
|
+
data.tar.gz: c0132e7a7791a8010673d0f28211d9f41dfa951d3f5db6127ede91792ae27b0381d18a31cf650d5a12b0ada230f03e73db17002e5cbe21857e70edc8a28f50b2
|
data/.gitattributes
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
middlemac-extras change log
|
2
2
|
===========================
|
3
3
|
|
4
|
+
- Version 1.0.11 / 2021-April-12
|
5
|
+
|
6
|
+
- Updated Ruby version requirements to make it clear that Ruby 3.0+ is not yet
|
7
|
+
supported.
|
8
|
+
Updated test task so that default task doesn't use the noisy version with deprecation
|
9
|
+
warnings, and to remove the advertisement at the end of output.
|
10
|
+
Removed support for automatic_image_tags, which was removed due to middleman
|
11
|
+
issue #2319.
|
12
|
+
- Added .gitattributes for proper language reporting in GitHub.
|
13
|
+
No version bump.
|
14
|
+
No new gem.
|
15
|
+
|
4
16
|
- Version 1.0.10 / 2018-April-28
|
5
17
|
|
6
18
|
- Update to 1.0.10 for use with newer middlemac.
|
19
|
+
|
20
|
+
- Version 1.0.9 / 2018-April-28
|
21
|
+
|
7
22
|
- Updated to 1.0.9. md_links no longer outputs empty quotes if no description.
|
8
23
|
|
9
24
|
- Version 1.0.8 / 2016-May-15
|
data/Rakefile
CHANGED
@@ -17,7 +17,11 @@ task :default => :test
|
|
17
17
|
# Perform Cucumber testing.
|
18
18
|
###############################################################################
|
19
19
|
Cucumber::Rake::Task.new(:test, 'Features that must pass') do |task|
|
20
|
-
task.cucumber_opts = '--require features --color --tags
|
20
|
+
task.cucumber_opts = '--publish-quiet --require features --color --tags "not @wip" --strict --format pretty 2>/dev/null'
|
21
|
+
end
|
22
|
+
|
23
|
+
Cucumber::Rake::Task.new(:testnoisy, 'Features that must pass') do |task|
|
24
|
+
task.cucumber_opts = '--publish-quiet --require features --color --tags "not @wip" --strict --format pretty'
|
21
25
|
end
|
22
26
|
|
23
27
|
|
@@ -9,8 +9,8 @@ gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
|
|
9
9
|
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
|
10
10
|
|
11
11
|
# Middleman Gems
|
12
|
-
gem 'middlemac-extras', '~> 1.0.
|
13
|
-
gem 'middleman', '~> 4.
|
12
|
+
gem 'middlemac-extras', '~> 1.0.11'
|
13
|
+
gem 'middleman', '~> 4.3.7'
|
14
14
|
gem 'middleman-syntax'
|
15
15
|
|
16
16
|
# Other required gems
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# so it's best to make sure they're activated first.
|
14
14
|
#==========================================================================
|
15
15
|
# activate :MiddlemanPageGroups
|
16
|
-
|
16
|
+
|
17
17
|
|
18
18
|
#==========================================================================
|
19
19
|
# Extension Setup
|
@@ -58,7 +58,7 @@ helpers do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def product_version
|
61
|
-
'1.0.
|
61
|
+
'1.0.11'
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
data/features/helpers.feature
CHANGED
@@ -35,5 +35,5 @@ Feature: Provide helpers and resource items to make multiple targets easy to man
|
|
35
35
|
The extended image tag should include srcset automatically if @2x images are
|
36
36
|
present, and not include a srcset if not.
|
37
37
|
When I cd to "build"
|
38
|
-
And the file "index.html" should contain 'img src="/images/middlemac-extras-small.png" srcset="/images/middlemac-extras-small@2x.png 2x" alt="
|
39
|
-
And the file "index.html" should contain 'img src="/images/middlemac-extras-smaller.png" alt="
|
38
|
+
And the file "index.html" should contain 'img src="/images/middlemac-extras-small.png" srcset="/images/middlemac-extras-small@2x.png 2x" alt=""'
|
39
|
+
And the file "index.html" should contain 'img src="/images/middlemac-extras-smaller.png" alt=""'
|
@@ -182,9 +182,6 @@ class MiddlemacExtras < ::Middleman::Extension
|
|
182
182
|
retina_srcset = ext_options[:retina_srcset]
|
183
183
|
retina_srcset = params.delete(:retina_srcset) if params[:retina_srcset]
|
184
184
|
|
185
|
-
automatic_alt_tags = @app.extensions[:automatic_alt_tags]
|
186
|
-
automatic_alt_tags = params.delete(:automatic_alt_tags) if params[:automatic_alt_tags]
|
187
|
-
|
188
185
|
|
189
186
|
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
190
187
|
# Support images without extensions. If an image with the
|
@@ -236,19 +233,6 @@ class MiddlemacExtras < ::Middleman::Extension
|
|
236
233
|
end
|
237
234
|
end
|
238
235
|
|
239
|
-
|
240
|
-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
241
|
-
# Support automatic alt tags for absolute locations, too.
|
242
|
-
# Only do this for absolute paths; let the extension do its
|
243
|
-
# own thing otherwise.
|
244
|
-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
245
|
-
if automatic_alt_tags && path.start_with?('/')
|
246
|
-
alt_text = File.basename(path, '.*')
|
247
|
-
alt_text.capitalize!
|
248
|
-
params[:alt] ||= alt_text
|
249
|
-
end
|
250
|
-
|
251
|
-
|
252
236
|
super(path, params)
|
253
237
|
end
|
254
238
|
|
data/middlemac-extras.gemspec
CHANGED
@@ -2,23 +2,40 @@
|
|
2
2
|
$:.push File.expand_path('../lib', __FILE__)
|
3
3
|
require 'middlemac-extras/version'
|
4
4
|
|
5
|
-
|
5
|
+
# We should work with any 4.3.x version of Middleman, but due to #2319,
|
6
|
+
# automatic image alt attributes have been removed from Middleman, so
|
7
|
+
# I'm adjusting the minimum requirement to the first release incorporating
|
8
|
+
# that change.
|
9
|
+
|
10
|
+
mm_needed = ['~> 4.3.0', '>= 4.3.7']
|
11
|
+
|
12
|
+
# We should work with any 2.0 version of Ruby, but I'm no longer testing them
|
13
|
+
# for regressions. Version 2.6.0 goes back to December 2018, and is a suitable
|
14
|
+
# minimum version.
|
15
|
+
#
|
16
|
+
# Currently no released version of Middleman works with Ruby 3, so until that is
|
17
|
+
# resolved, We will only support 2.6 up to and not including Ruby 3.0.
|
18
|
+
|
19
|
+
rb_needed = ['~> 2.0', '>= 2.6']
|
20
|
+
|
6
21
|
|
7
22
|
Gem::Specification.new do |s|
|
8
|
-
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
s.
|
17
|
-
|
18
|
-
s.
|
19
|
-
|
20
|
-
s.
|
21
|
-
s.
|
23
|
+
|
24
|
+
s.required_ruby_version = rb_needed
|
25
|
+
s.name = 'middlemac-extras'
|
26
|
+
s.version = Middleman::MiddlemacExtras::VERSION
|
27
|
+
s.platform = Gem::Platform::RUBY
|
28
|
+
s.authors = ['Jim Derry']
|
29
|
+
s.email = ['balthisar@gmail.com']
|
30
|
+
s.homepage = 'https://github.com/middlemac/middlemac-extras'
|
31
|
+
s.summary = 'Implements several useful developer conveniences for Middleman projects.'
|
32
|
+
s.description = 'Implements several useful developer conveniences for Middleman projects.'
|
33
|
+
s.license = 'MIT'
|
34
|
+
|
35
|
+
s.files = `git ls-files`.split("\n")
|
36
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
37
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
38
|
+
s.require_paths = ['lib']
|
22
39
|
|
23
40
|
# The version of middleman-core your extension depends on
|
24
41
|
s.add_runtime_dependency('middleman-core', mm_needed)
|
@@ -33,4 +50,5 @@ Gem::Specification.new do |s|
|
|
33
50
|
s.add_development_dependency 'rake', '>= 10.3'
|
34
51
|
s.add_development_dependency 'git'
|
35
52
|
s.add_development_dependency 'capybara', ['~> 2.5.0']
|
53
|
+
|
36
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middlemac-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Derry
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.3.0
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.
|
22
|
+
version: 4.3.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 4.3.0
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.
|
32
|
+
version: 4.3.7
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: middleman-cli
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 4.3.0
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 4.
|
42
|
+
version: 4.3.7
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 4.3.0
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 4.
|
52
|
+
version: 4.3.7
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: fastimage
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,20 +70,20 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
73
|
+
version: 4.3.0
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 4.
|
76
|
+
version: 4.3.7
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 4.3.0
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: 4.
|
86
|
+
version: 4.3.7
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: bundler
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,6 +148,7 @@ executables:
|
|
148
148
|
extensions: []
|
149
149
|
extra_rdoc_files: []
|
150
150
|
files:
|
151
|
+
- ".gitattributes"
|
151
152
|
- ".gitignore"
|
152
153
|
- ".yardopts"
|
153
154
|
- CHANGELOG.md
|
@@ -230,24 +231,26 @@ homepage: https://github.com/middlemac/middlemac-extras
|
|
230
231
|
licenses:
|
231
232
|
- MIT
|
232
233
|
metadata: {}
|
233
|
-
post_install_message:
|
234
|
+
post_install_message:
|
234
235
|
rdoc_options: []
|
235
236
|
require_paths:
|
236
237
|
- lib
|
237
238
|
required_ruby_version: !ruby/object:Gem::Requirement
|
238
239
|
requirements:
|
240
|
+
- - "~>"
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '2.0'
|
239
243
|
- - ">="
|
240
244
|
- !ruby/object:Gem::Version
|
241
|
-
version: '
|
245
|
+
version: '2.6'
|
242
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
247
|
requirements:
|
244
248
|
- - ">="
|
245
249
|
- !ruby/object:Gem::Version
|
246
250
|
version: '0'
|
247
251
|
requirements: []
|
248
|
-
|
249
|
-
|
250
|
-
signing_key:
|
252
|
+
rubygems_version: 3.0.9
|
253
|
+
signing_key:
|
251
254
|
specification_version: 4
|
252
255
|
summary: Implements several useful developer conveniences for Middleman projects.
|
253
256
|
test_files:
|