middleman-targets 1.0.13 → 1.0.14
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 +22 -0
- data/Rakefile +3 -3
- data/documentation_project/config.rb +1 -1
- data/documentation_project/source/partials/_yard_mmtargets_config.erb +58 -4
- data/lib/middleman-targets/version.rb +1 -1
- data/middleman-targets.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: cb02e92d39a13a889f07140a0c5d533e9121cd05b9bc926834a85fe48b3ee20b
|
4
|
+
data.tar.gz: 1835a89bda0a07970cb16a056a78abd4b29372011f053450c7c65693c3a31c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c65bf427c09d109820c9629056d5c3f70835f49a3ee8361180a4abad88694e661c6c18bed9934260aa9993f018fc18e71cec10bf9e694cd8791b27939d7f123
|
7
|
+
data.tar.gz: 35860a43cf487b9cb3aa87816104df8f5d08f27acd0d6aa7d65ccb6ab914b2fc6cbc89fa3ee802ac01bcbcc3e9ae60995a6623b41ac4b495bb8b0b324592b83f
|
data/.gitattributes
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,31 @@
|
|
1
1
|
middleman-targets change log
|
2
2
|
============================
|
3
3
|
|
4
|
+
- Version 1.0.14 / 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
|
+
- Added .gitattributes for proper language reporting in GitHub.
|
11
|
+
No version bump.
|
12
|
+
No new gem.
|
13
|
+
|
14
|
+
- Version 1.0.13 / 2018-December-09
|
15
|
+
|
16
|
+
- Bump version to 1.0.13.
|
17
|
+
- Merge pull request #2 from liscio/master
|
18
|
+
Add per-target overrides for :http_prefix
|
19
|
+
- Add per-target overrides for :http_prefix
|
20
|
+
This allows us to build targets that are served at different paths on
|
21
|
+
the same web server.
|
22
|
+
|
4
23
|
- Version 1.0.12 / 2018-June-09
|
5
24
|
|
6
25
|
- Fix (again) the stupid list_all.
|
26
|
+
|
27
|
+
- Version 1.0.11 / 2018-June-08
|
28
|
+
|
7
29
|
- Changed list_all for compatibility with other gems.
|
8
30
|
|
9
31
|
- Version 1.0.10 / 2018-June-07
|
data/Rakefile
CHANGED
@@ -17,11 +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 "not @wip" --strict --format pretty'
|
20
|
+
task.cucumber_opts = '--publish-quiet --require features --color --tags "not @wip" --strict --format pretty 2>/dev/null'
|
21
21
|
end
|
22
22
|
|
23
|
-
Cucumber::Rake::Task.new(:
|
24
|
-
task.cucumber_opts = '--require features --color --tags "not @wip" --strict --format pretty
|
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'
|
25
25
|
end
|
26
26
|
|
27
27
|
|
@@ -56,6 +56,58 @@ used for build output.</p>
|
|
56
56
|
|
57
57
|
</ul>
|
58
58
|
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<span id="config[:http_prefix]=-instance_method"></span>
|
64
|
+
<div class="method_details ">
|
65
|
+
<h3 class="signature " id="config[:http_prefix]=-instance_method">
|
66
|
+
|
67
|
+
#<strong>config[:http_prefix]=</strong>(value) ⇒ <tt>String</tt>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</h3><div class="docstring">
|
74
|
+
<div class="discussion">
|
75
|
+
|
76
|
+
<div class="note notetag">
|
77
|
+
<strong>Note:</strong>
|
78
|
+
<div class='inline'><p>This is a Middleman application level config option.</p>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<p>Default prefix for building paths. Used by HTML helpers.</p>
|
83
|
+
|
84
|
+
<p>If the <code>http_prefix</code> key is present for any of the <code>config[:targets]</code>,
|
85
|
+
they will override this setting.</p>
|
86
|
+
|
87
|
+
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div class="tags">
|
91
|
+
|
92
|
+
<p class="tag_title">Returns:</p>
|
93
|
+
<ul class="return">
|
94
|
+
|
95
|
+
<li>
|
96
|
+
|
97
|
+
|
98
|
+
<span class='type'>(<tt>String</tt>)</span>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
—
|
103
|
+
<div class='inline'><p>Indicate the HTTP prefix that will be used by
|
104
|
+
HTML helpers.</p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</li>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
|
59
111
|
</div>
|
60
112
|
</div>
|
61
113
|
|
@@ -235,10 +287,10 @@ that should be substituted, such as <code>all</code>.</p>
|
|
235
287
|
</div>
|
236
288
|
|
237
289
|
<p>A hash that defines all of the characteristics of your individual targets.
|
238
|
-
The <code>build_dir</code
|
239
|
-
other keys can be added arbitrarily and helpers can fetch these
|
240
|
-
A best practice is to assign the same features to <em>all</em> of your
|
241
|
-
toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
|
290
|
+
The <code>build_dir</code>, ‘http_prefix’, and <code>features</code> keys in a target have special
|
291
|
+
meanings; other keys can be added arbitrarily and helpers can fetch these
|
292
|
+
for you. A best practice is to assign the same features to <em>all</em> of your
|
293
|
+
targets and toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
|
242
294
|
|
243
295
|
|
244
296
|
</div>
|
@@ -257,6 +309,7 @@ toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
|
|
257
309
|
<span class='lbrace'>{</span>
|
258
310
|
<span class='symbol'>:sample_key</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>People who use free versions don\'t drive profits.</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
259
311
|
<span class='symbol'>:build_dir</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>build (%s)</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
312
|
+
<span class='symbol'>:http_prefix</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/free</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
260
313
|
<span class='symbol'>:features</span> <span class='op'>=></span>
|
261
314
|
<span class='lbrace'>{</span>
|
262
315
|
<span class='symbol'>:feature_advertise_pro</span> <span class='op'>=></span> <span class='kw'>true</span><span class='comma'>,</span>
|
@@ -268,6 +321,7 @@ toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
|
|
268
321
|
<span class='symbol'>:pro</span> <span class='op'>=></span>
|
269
322
|
<span class='lbrace'>{</span>
|
270
323
|
<span class='symbol'>:sample_key</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>You are a valued contributor to our balance sheet!</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
324
|
+
<span class='symbol'>:http_prefix</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/pro</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
271
325
|
<span class='symbol'>:features</span> <span class='op'>=></span>
|
272
326
|
<span class='lbrace'>{</span>
|
273
327
|
<span class='symbol'>:feature_advertise_pro</span> <span class='op'>=></span> <span class='kw'>false</span><span class='comma'>,</span>
|
data/middleman-targets.gemspec
CHANGED
@@ -2,23 +2,40 @@
|
|
2
2
|
$:.push File.expand_path('../lib', __FILE__)
|
3
3
|
require 'middleman-targets/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 = 'middleman-targets'
|
26
|
+
s.version = Middleman::MiddlemanTargets::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/middleman-targets'
|
31
|
+
s.summary = 'Provides multiple build targets and tools for Middleman.'
|
32
|
+
s.description = 'Provides multiple build targets and tools for Middleman.'
|
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)
|
@@ -32,4 +49,5 @@ Gem::Specification.new do |s|
|
|
32
49
|
s.add_development_dependency 'rake', '>= 10.3'
|
33
50
|
s.add_development_dependency 'git'
|
34
51
|
s.add_development_dependency 'capybara', ['~> 2.5.0']
|
52
|
+
|
35
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-targets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
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,60 +16,60 @@ 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: middleman
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 4.3.0
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 4.
|
62
|
+
version: 4.3.7
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 4.3.0
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 4.
|
72
|
+
version: 4.3.7
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: bundler
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,6 +134,7 @@ executables:
|
|
134
134
|
extensions: []
|
135
135
|
extra_rdoc_files: []
|
136
136
|
files:
|
137
|
+
- ".gitattributes"
|
137
138
|
- ".gitignore"
|
138
139
|
- ".yardopts"
|
139
140
|
- CHANGELOG.md
|
@@ -212,24 +213,26 @@ homepage: https://github.com/middlemac/middleman-targets
|
|
212
213
|
licenses:
|
213
214
|
- MIT
|
214
215
|
metadata: {}
|
215
|
-
post_install_message:
|
216
|
+
post_install_message:
|
216
217
|
rdoc_options: []
|
217
218
|
require_paths:
|
218
219
|
- lib
|
219
220
|
required_ruby_version: !ruby/object:Gem::Requirement
|
220
221
|
requirements:
|
222
|
+
- - "~>"
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '2.0'
|
221
225
|
- - ">="
|
222
226
|
- !ruby/object:Gem::Version
|
223
|
-
version: '
|
227
|
+
version: '2.6'
|
224
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
229
|
requirements:
|
226
230
|
- - ">="
|
227
231
|
- !ruby/object:Gem::Version
|
228
232
|
version: '0'
|
229
233
|
requirements: []
|
230
|
-
|
231
|
-
|
232
|
-
signing_key:
|
234
|
+
rubygems_version: 3.0.9
|
235
|
+
signing_key:
|
233
236
|
specification_version: 4
|
234
237
|
summary: Provides multiple build targets and tools for Middleman.
|
235
238
|
test_files:
|