middleman-targets 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a9dac61ef46f8718f9048a416f5b2b2f94c1a609
4
- data.tar.gz: 6c54d519c2966b012339ab7164cd8d63d49457a5
2
+ SHA256:
3
+ metadata.gz: cb02e92d39a13a889f07140a0c5d533e9121cd05b9bc926834a85fe48b3ee20b
4
+ data.tar.gz: 1835a89bda0a07970cb16a056a78abd4b29372011f053450c7c65693c3a31c1e
5
5
  SHA512:
6
- metadata.gz: 57d35e792099d180d7103b55fa27060dfcb9e197370fe4b18cacd003cbba691c57a1743807d97e7f8f010d4b974082210c511fbf16f5353259877903ccc0a781
7
- data.tar.gz: c597317043df3192021c94ad65edeb6e5f4e97ad954ad41c4c66fdae8e48faa802c92a82fd45ed7b3f324d9a3ad1dc1f5518002bef2f5f1e96ce8abca76458b5
6
+ metadata.gz: 8c65bf427c09d109820c9629056d5c3f70835f49a3ee8361180a4abad88694e661c6c18bed9934260aa9993f018fc18e71cec10bf9e694cd8791b27939d7f123
7
+ data.tar.gz: 35860a43cf487b9cb3aa87816104df8f5d08f27acd0d6aa7d65ccb6ab914b2fc6cbc89fa3ee802ac01bcbcc3e9ae60995a6623b41ac4b495bb8b0b324592b83f
data/.gitattributes ADDED
@@ -0,0 +1,4 @@
1
+ *.html linguist-documentation
2
+ *.css linguist-documentation
3
+ *.erb linguist-documentation
4
+ *.js linguist-documentation
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(:testq, 'Features that must pass') do |task|
24
- task.cucumber_opts = '--require features --color --tags "not @wip" --strict --format pretty 2>/dev/null'
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
 
@@ -103,7 +103,7 @@ helpers do
103
103
  end
104
104
 
105
105
  def product_version
106
- '1.0.13'
106
+ '1.0.14'
107
107
  end
108
108
 
109
109
  end
@@ -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) &#x21d2; <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
+ &mdash;
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> and <code>features</code> keys in a target have special meanings;
239
- other keys can be added arbitrarily and helpers can fetch these for you.
240
- A best practice is to assign the same features to <em>all</em> of your targets and
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'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>People who use free versions don\&#39;t drive profits.</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
259
311
  <span class='symbol'>:build_dir</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>build (%s)</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
312
+ <span class='symbol'>:http_prefix</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/free</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
260
313
  <span class='symbol'>:features</span> <span class='op'>=&gt;</span>
261
314
  <span class='lbrace'>{</span>
262
315
  <span class='symbol'>:feature_advertise_pro</span> <span class='op'>=&gt;</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'>=&gt;</span>
269
322
  <span class='lbrace'>{</span>
270
323
  <span class='symbol'>:sample_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>You are a valued contributor to our balance sheet!</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
324
+ <span class='symbol'>:http_prefix</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/pro</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
271
325
  <span class='symbol'>:features</span> <span class='op'>=&gt;</span>
272
326
  <span class='lbrace'>{</span>
273
327
  <span class='symbol'>:feature_advertise_pro</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span>
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.13'
3
+ VERSION = '1.0.14'
4
4
  end
5
5
  end
@@ -2,23 +2,40 @@
2
2
  $:.push File.expand_path('../lib', __FILE__)
3
3
  require 'middleman-targets/version'
4
4
 
5
- mm_needed = ['~> 4.1', '>= 4.1.7']
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
- s.name = 'middleman-targets'
9
- s.version = Middleman::MiddlemanTargets::VERSION
10
- s.platform = Gem::Platform::RUBY
11
- s.authors = ['Jim Derry']
12
- s.email = ['balthisar@gmail.com']
13
- s.homepage = 'https://github.com/middlemac/middleman-targets'
14
- s.summary = 'Provides multiple build targets and tools for Middleman.'
15
- s.description = 'Provides multiple build targets and tools for Middleman.'
16
- s.license = 'MIT'
17
-
18
- s.files = `git ls-files`.split("\n")
19
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
- s.require_paths = ['lib']
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.13
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: 2018-12-09 00:00:00.000000000 Z
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: '4.1'
19
+ version: 4.3.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 4.1.7
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: '4.1'
29
+ version: 4.3.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 4.1.7
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: '4.1'
39
+ version: 4.3.0
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 4.1.7
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: '4.1'
49
+ version: 4.3.0
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 4.1.7
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: '4.1'
59
+ version: 4.3.0
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 4.1.7
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: '4.1'
69
+ version: 4.3.0
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 4.1.7
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: '0'
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
- rubyforge_project:
231
- rubygems_version: 2.6.14
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: