middleman-targets 1.0.8 → 1.0.9

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
2
  SHA1:
3
- metadata.gz: c6d8e060760907958e927529917362dc98c2cd66
4
- data.tar.gz: aa193acc9c5c6f5ffc6ba078755837fe6f8d20f6
3
+ metadata.gz: 975177279a3e98636919b394847a1af31f579b39
4
+ data.tar.gz: 29caf9197870aafd74382861a4a5d12de40a2acc
5
5
  SHA512:
6
- metadata.gz: dd71e4edfff8f4dee46c91ba04111b3b568b54e4c413517957e0403d2339dca1f4a3b0025e05826460b56d0e0fb7bcd8891cd1b3486830c187e979ef8bd661bd
7
- data.tar.gz: 34b54dee0da437f00cd14c28bf16ccb53340578ac4a227286a4144a0fc9ae8ba8e266e3ef60c060a65fd5a296b38ce35087e20c26cfc77a35f4f5021800c55f3
6
+ metadata.gz: 2cc7c466e91ffe211dc3cd052867f7cabc184eb2ce34d5ae80df0f9443fe2eb3435001ca09fc97db8cb298baff8cf725b0f6a60f0fa8e8ea82dca4fa9297d5e7
7
+ data.tar.gz: 8bd7698eff16fb6da34463a92285bd02e37f20f3d22a6f25a98b619601467c19fc67798b0b5ffa4d8c9a82b30c60f22c2878b82f4e8cff53aa54890f1f90ebef
data/CHANGELOG.md CHANGED
@@ -1,11 +1,15 @@
1
1
  middleman-targets change log
2
2
  ============================
3
3
 
4
- - Version 1.0.8 / 2018-May-18
4
+ - Version 1.0.9 / 2018-May-26
5
5
 
6
+ - Updated to 1.0.9.
7
+ - Update documentation.
8
+ - Fix broken template.
9
+ - Made a testq (quiet) task.
6
10
  - Added middleman_target exposed to config.rb
7
11
 
8
- - Version 1.0.7 / 2016-May-14
12
+ - Version 1.0.7 / 2016-May-15
9
13
 
10
14
  - Bump to 1.0.7 fixes:
11
15
  - Require capybara as development dependency fixes broken testing.
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 ~@wip --strict --format QuietFormatter'
20
+ task.cucumber_opts = '--require features --color --tags "not @wip" --strict --format pretty'
21
+ end
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'
21
25
  end
22
26
 
23
27
 
@@ -43,11 +47,11 @@ task :partials do
43
47
 
44
48
  # Define the @!group to output file relationships.
45
49
  sections = [
46
- { :file => '_yard_helpers.erb', :group => 'Helpers', },
47
- { :file => '_yard_helpers_extended.erb', :group => 'Extended Helpers' },
48
- { :file => '_yard_config.erb', :group => 'Middleman Configuration' },
49
- { :file => '_yard_resources.erb', :group => 'Resource Extensions', },
50
- { :file => '_yard_instance.erb', :group => 'Instance Methods', },
50
+ { :file => '_yard_mmtargets_helpers.erb', :group => 'Helpers', },
51
+ { :file => '_yard_mmtargets_helpers_extended.erb', :group => 'Extended Helpers' },
52
+ { :file => '_yard_mmtargets_config.erb', :group => 'Middleman Configuration' },
53
+ { :file => '_yard_mmtargets_resources.erb', :group => 'Resource Extensions', },
54
+ { :file => '_yard_mmtargets_instance.erb', :group => 'Instance Methods', },
51
55
  ]
52
56
 
53
57
  # Define the output directory.
@@ -9,6 +9,6 @@ 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 'middleman-targets', '~> 1.0.8'
12
+ gem 'middleman-targets', '~> 1.0.9'
13
13
  gem 'middleman', '~> 4.1.6'
14
14
  gem 'middleman-syntax'
@@ -103,7 +103,7 @@ helpers do
103
103
  end
104
104
 
105
105
  def product_version
106
- '1.0.8'
106
+ '1.0.9'
107
107
  end
108
108
 
109
109
  end
@@ -14,7 +14,7 @@ features demonstration](simple-demo.html).
14
14
  `middleman-targets` extends built-in **Middleman** helpers with optional, new
15
15
  functionality.
16
16
 
17
- <%= partial 'partials/yard_helpers_extended' %>
17
+ <%= partial 'partials/yard_mmtargets_helpers_extended' %>
18
18
 
19
19
  * * *
20
20
 
@@ -22,7 +22,7 @@ functionality.
22
22
 
23
23
  These helpers make it simple to target exactly what you intend to.
24
24
 
25
- <%= partial 'partials/yard_helpers' %>
25
+ <%= partial 'partials/yard_mmtargets_helpers' %>
26
26
 
27
27
  * * *
28
28
 
@@ -33,7 +33,7 @@ also available for your own helpers, and `middleman-targets` provides a couple
33
33
  of resource map additions than can prove useful when developing your own
34
34
  helpers.
35
35
 
36
- <%= partial 'partials/yard_resources' %>
36
+ <%= partial 'partials/yard_mmtargets_resources' %>
37
37
 
38
38
  * * *
39
39
 
@@ -5,7 +5,6 @@
5
5
  = image_tag 'all-logo-small.png', :alt => 'middleman-targets logo'
6
6
  %h1= "#{product_name}"
7
7
  %h2= "version #{product_version}"
8
- %a{:href => product_uri}= product_uri
9
8
 
10
9
  - if content_for?(:seeAlso)
11
10
  .related_topics
@@ -36,27 +36,7 @@ will override this setting.</p>
36
36
  </div>
37
37
  </div>
38
38
  <div class="tags">
39
- <p class="tag_title">Parameters:</p>
40
- <ul class="param">
41
39
 
42
- <li>
43
-
44
- <span class='name'>value</span>
45
-
46
-
47
- <span class='type'>(<tt>String</tt>)</span>
48
-
49
-
50
-
51
- &mdash;
52
- <div class='inline'><p>Indicate the build directory prefix that should be
53
- used for build output.</p>
54
- </div>
55
-
56
- </li>
57
-
58
- </ul>
59
-
60
40
  <p class="tag_title">Returns:</p>
61
41
  <ul class="return">
62
42
 
@@ -68,7 +48,8 @@ used for build output.</p>
68
48
 
69
49
 
70
50
  &mdash;
71
- <div class='inline'><p>Returns the current value of this configuration setting.</p>
51
+ <div class='inline'><p>Indicate the build directory prefix that should be
52
+ used for build output.</p>
72
53
  </div>
73
54
 
74
55
  </li>
@@ -106,27 +87,7 @@ specified on the command line.</p>
106
87
  </div>
107
88
  </div>
108
89
  <div class="tags">
109
- <p class="tag_title">Parameters:</p>
110
- <ul class="param">
111
-
112
- <li>
113
-
114
- <span class='name'>value</span>
115
-
116
-
117
- <span class='type'>(<tt>Symbol</tt>)</span>
118
-
119
-
120
-
121
- &mdash;
122
- <div class='inline'><p>The target from <code>config[:targets]</code> that should
123
- be used as the default.</p>
124
- </div>
125
-
126
- </li>
127
90
 
128
- </ul>
129
-
130
91
  <p class="tag_title">Returns:</p>
131
92
  <ul class="return">
132
93
 
@@ -138,7 +99,8 @@ be used as the default.</p>
138
99
 
139
100
 
140
101
  &mdash;
141
- <div class='inline'><p>Returns the current target.</p>
102
+ <div class='inline'><p>The target from <code>config[:targets]</code> that should
103
+ be used as the default.</p>
142
104
  </div>
143
105
 
144
106
  </li>
@@ -177,27 +139,7 @@ image begins with <code>:target_magic_word</code>.</p>
177
139
  </div>
178
140
  </div>
179
141
  <div class="tags">
180
- <p class="tag_title">Parameters:</p>
181
- <ul class="param">
182
142
 
183
- <li>
184
-
185
- <span class='name'>value</span>
186
-
187
-
188
- <span class='type'>(<tt>Boolean</tt>)</span>
189
-
190
-
191
-
192
- &mdash;
193
- <div class='inline'><p>Specify whether or not automatic target-specific
194
- image substitution should be enabled.</p>
195
- </div>
196
-
197
- </li>
198
-
199
- </ul>
200
-
201
143
  <p class="tag_title">Returns:</p>
202
144
  <ul class="return">
203
145
 
@@ -209,7 +151,8 @@ image substitution should be enabled.</p>
209
151
 
210
152
 
211
153
  &mdash;
212
- <div class='inline'><p>Returns the current state of this option.</p>
154
+ <div class='inline'><p>Specify whether or not automatic target-specific
155
+ image substitution should be enabled.</p>
213
156
  </div>
214
157
 
215
158
  </li>
@@ -248,27 +191,7 @@ latter will be used by the helper instead of the former.</p>
248
191
  </div>
249
192
  </div>
250
193
  <div class="tags">
251
- <p class="tag_title">Parameters:</p>
252
- <ul class="param">
253
194
 
254
- <li>
255
-
256
- <span class='name'>value</span>
257
-
258
-
259
- <span class='type'>(<tt>String</tt>)</span>
260
-
261
-
262
-
263
- &mdash;
264
- <div class='inline'><p>Indicate the prefix that should indicate and image
265
- the should be substituted, such as <code>all</code>.</p>
266
- </div>
267
-
268
- </li>
269
-
270
- </ul>
271
-
272
195
  <p class="tag_title">Returns:</p>
273
196
  <ul class="return">
274
197
 
@@ -280,7 +203,8 @@ the should be substituted, such as <code>all</code>.</p>
280
203
 
281
204
 
282
205
  &mdash;
283
- <div class='inline'><p>Returns the current magic prefix.</p>
206
+ <div class='inline'><p>Indicate the prefix that should indicate an image
207
+ that should be substituted, such as <code>all</code>.</p>
284
208
  </div>
285
209
 
286
210
  </li>
@@ -354,26 +278,6 @@ toggle them <code>on</code> or <code>off</code> on a target-specific basis.</p>
354
278
  <span class='rbrace'>}</span></code></pre>
355
279
 
356
280
  </div>
357
- <p class="tag_title">Parameters:</p>
358
- <ul class="param">
359
-
360
- <li>
361
-
362
- <span class='name'>value</span>
363
-
364
-
365
- <span class='type'>(<tt>Hash</tt>)</span>
366
-
367
-
368
-
369
- &mdash;
370
- <div class='inline'><p>The complete definition of your targets, their
371
- features, and other keys-value pairs that you wish to include.</p>
372
- </div>
373
-
374
- </li>
375
-
376
- </ul>
377
281
 
378
282
  <p class="tag_title">Returns:</p>
379
283
  <ul class="return">
@@ -386,7 +290,8 @@ features, and other keys-value pairs that you wish to include.</p>
386
290
 
387
291
 
388
292
  &mdash;
389
- <div class='inline'><p>Returns the attributes of your targets.</p>
293
+ <div class='inline'><p>The complete definition of your targets, their
294
+ features, and other keys-value pairs that you wish to include.</p>
390
295
  </div>
391
296
 
392
297
  </li>
@@ -10,7 +10,7 @@
10
10
  <div class="method_details first">
11
11
  <h3 class="signature first" id="image_tag-instance_method">
12
12
 
13
- #<strong>image_tag</strong>(path, params = {}) &#x21d2; <tt>Void</tt>
13
+ #<strong>image_tag</strong>(path, params = {}) &#x21d2; <tt>String</tt>
14
14
 
15
15
 
16
16
 
@@ -121,9 +121,13 @@ enables the feature <code>feature</code>.</p>
121
121
  <li>
122
122
 
123
123
 
124
- <span class='type'>(<tt>Void</tt>)</span>
124
+ <span class='type'>(<tt>String</tt>)</span>
125
+
125
126
 
126
127
 
128
+ &mdash;
129
+ <div class='inline'><p>A properly formed image tag.</p>
130
+ </div>
127
131
 
128
132
  </li>
129
133
 
@@ -35,7 +35,7 @@ activate them _before_ activating `middleman-targets`.
35
35
 
36
36
  ## The Configuration Options
37
37
 
38
- <%= partial 'partials/yard_config' %>
38
+ <%= partial 'partials/yard_mmtargets_config' %>
39
39
 
40
40
  * * *
41
41
 
@@ -4,17 +4,3 @@ ENV['TEST'] = 'true'
4
4
  require 'middleman'
5
5
  require 'middleman-core/step_definitions'
6
6
  require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-targets')
7
-
8
-
9
- require 'cucumber/formatter/pretty'
10
- class QuietFormatter < Cucumber::Formatter::Pretty
11
- def initialize(runtime, io, options)
12
- $stderr = File.new( '/dev/null', 'w' )
13
- super(runtime, io, options)
14
- end
15
-
16
- def after_features(features)
17
- $stderr = STDOUT
18
- super(features)
19
- end
20
- end
@@ -24,9 +24,8 @@ class MiddlemanTargets < ::Middleman::Extension
24
24
  # Indicates the current target that is being built or served. When
25
25
  # set in `config.rb` it indicates the default target if one is not
26
26
  # specified on the command line.
27
- # @param [Symbol] value The target from `config[:targets]` that should
27
+ # @return [Symbol] The target from `config[:targets]` that should
28
28
  # be used as the default.
29
- # @return [Symbol] Returns the current target.
30
29
  # @note This is a Middleman application level config option.
31
30
 
32
31
 
@@ -61,9 +60,8 @@ class MiddlemanTargets < ::Middleman::Extension
61
60
  # }
62
61
  # },
63
62
  # }
64
- # @param [Hash] value The complete definition of your targets, their
63
+ # @return [Hash] The complete definition of your targets, their
65
64
  # features, and other keys-value pairs that you wish to include.
66
- # @return [Hash] Returns the attributes of your targets.
67
65
  # @note This is a Middleman application level config option.
68
66
 
69
67
 
@@ -72,9 +70,8 @@ class MiddlemanTargets < ::Middleman::Extension
72
70
  # If it's `true` then the `image_tag` helper will attempt to substitute
73
71
  # target-specific images instead of the specified image, if the specified
74
72
  # image begins with `:target_magic_word`.
75
- # @param [Boolean] value Specify whether or not automatic target-specific
73
+ # @return [Boolean] Specify whether or not automatic target-specific
76
74
  # image substitution should be enabled.
77
- # @return [Boolean] Returns the current state of this option.
78
75
  # @note This is a Middleman application level config option.
79
76
 
80
77
 
@@ -83,9 +80,8 @@ class MiddlemanTargets < ::Middleman::Extension
83
80
  # `image_tag` helper when `:target_magic_images` is enabled. For example
84
81
  # if you specify `all-image.png` and `pro-image.png` exists, then the
85
82
  # latter will be used by the helper instead of the former.
86
- # @param [String] value Indicate the prefix that should indicate and image
87
- # the should be substituted, such as `all`.
88
- # @return [String] Returns the current magic prefix.
83
+ # @return [String] Indicate the prefix that should indicate an image
84
+ # that should be substituted, such as `all`.
89
85
  # @note This is a Middleman application level config option.
90
86
 
91
87
 
@@ -97,9 +93,8 @@ class MiddlemanTargets < ::Middleman::Extension
97
93
  #
98
94
  # If the `build_dir` key is present for any of the `config[:targets]`, they
99
95
  # will override this setting.
100
- # @param [String] value Indicate the build directory prefix that should be
96
+ # @return [String] Indicate the build directory prefix that should be
101
97
  # used for build output.
102
- # @return [String] Returns the current value of this configuration setting.
103
98
  # @note This is a Middleman application level config option.
104
99
 
105
100
 
@@ -326,7 +321,7 @@ class MiddlemanTargets < ::Middleman::Extension
326
321
  # @option params [String, Symbol] :feature This image
327
322
  # tag will only be applied if the current target
328
323
  # enables the feature `feature`.
329
- # @return [Void]
324
+ # @return [String] A properly formed image tag.
330
325
  # @group Extended Helpers
331
326
  #--------------------------------------------------------
332
327
  def image_tag(path, params={})
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  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.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Derry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -167,11 +167,11 @@ files:
167
167
  - documentation_project/source/license.html.md.erb
168
168
  - documentation_project/source/only-free.html.md.erb
169
169
  - documentation_project/source/only-pro.html.md.erb
170
- - documentation_project/source/partials/_yard_config.erb
171
- - documentation_project/source/partials/_yard_helpers.erb
172
- - documentation_project/source/partials/_yard_helpers_extended.erb
173
- - documentation_project/source/partials/_yard_instance.erb
174
- - documentation_project/source/partials/_yard_resources.erb
170
+ - documentation_project/source/partials/_yard_mmtargets_config.erb
171
+ - documentation_project/source/partials/_yard_mmtargets_helpers.erb
172
+ - documentation_project/source/partials/_yard_mmtargets_helpers_extended.erb
173
+ - documentation_project/source/partials/_yard_mmtargets_instance.erb
174
+ - documentation_project/source/partials/_yard_mmtargets_resources.erb
175
175
  - documentation_project/source/simple-demo.html.md.erb
176
176
  - documentation_project/source/stylesheets/_github.scss
177
177
  - documentation_project/source/stylesheets/_middlemac_minimal.scss