middleman-targets 1.0.11 → 1.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca4461d428b23805b22490d34f982653f8672c5e
4
- data.tar.gz: c641ebab71e92cb56268759ce0fb3962032c1e56
3
+ metadata.gz: 1da8a94933a48b1ca7ad3403cf367333f5a17608
4
+ data.tar.gz: 66dbc64d01a283b5a262e63c31afe405ec7d7b3a
5
5
  SHA512:
6
- metadata.gz: 249127f0ac430965e499cd1cb33897e5b49f54167cd42466becd181a502b9b2c3ab26545e88d7be4ee63ef385163c8a6dc7955bda9844ae0ef6d99a004410b3e
7
- data.tar.gz: 828add7e1cd36c5ea3e8b63cac842d5869078021f63183cb7d7732aa4eadca1307f1d17d8c3246c3c7fb19c9b18b07796924d1b251fc02af1d0b04d2d761be69
6
+ metadata.gz: 47e1f682923fc87aa862d773e15a72cdc2a6ee09525e3a7e5d51e8988468e0e3ca8c707e269e0c29699b9d07b55a6c788ecc918aafb64d89afde1dab1c543670
7
+ data.tar.gz: 2bf1b17e55d8221450a31bcee8602fd436aac3442b73fc8b49943c350b666b11a0feed7a8e5b059caa14bb52e017aa4836f8bc96c089195557d2c94adbfd34be
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  middleman-targets change log
2
2
  ============================
3
3
 
4
- - Version 1.0.11 / 2018-June-08
4
+ - Version 1.0.12 / 2018-June-09
5
5
 
6
+ - Fix (again) the stupid list_all.
6
7
  - Changed list_all for compatibility with other gems.
8
+
9
+ - Version 1.0.10 / 2018-June-07
10
+
7
11
  - Bump to version 1.0.10, because list_all command line option was added.
8
12
 
9
13
  - Version 1.0.9 / 2018-May-26
@@ -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.11.wip'
12
+ gem 'middleman-targets', '~>1.0.12'
13
13
  gem 'middleman', ['~> 4.1', '>= 4.1.7']
14
14
  gem 'middleman-syntax'
@@ -103,7 +103,7 @@ helpers do
103
103
  end
104
104
 
105
105
  def product_version
106
- '1.0.11'
106
+ '1.0.12'
107
107
  end
108
108
 
109
109
  end
@@ -18,43 +18,24 @@ module Middleman::Cli
18
18
  # @return [Void]
19
19
  ############################################################
20
20
  def list_all
21
-
22
21
  # Determine the valid targets.
23
22
  app = ::Middleman::Application.new do
24
23
  config[:exit_before_ready] = true
25
24
  end
26
25
  app_config = app.config.clone
27
26
  app.shutdown!
28
-
29
- # Spin up an instance for each target to get its
30
- # output path.
31
- app_config[:targets].each do |target|
32
- requested_target = target[0]
33
- app = ::Middleman::Application.new do
34
- config[:target] = requested_target
35
- config[:exit_before_ready] = true
36
- end
37
- config = app.config.clone
38
- app.shutdown!
39
- out_path = File.expand_path(config[:build_dir])
40
- say "#{requested_target.to_s}, #{out_path}", :cyan
41
- end
42
27
 
43
-
44
- # config[:targets].each do |target|
45
- # out_path = ''
46
- # requested_target = target[0]
47
- # if (build_dir = config[:targets][requested_target][:build_dir])
48
- # out_path = sprintf(build_dir, requested_target.to_s)
49
- # else
50
- # out_path = "#{config[:build_dir]} (#{requested_target.to_s})"
51
- # end
52
- #
53
- # out_path = File.expand_path(out_path)
54
- #
55
- # say "#{requested_target.to_s}, #{out_path}", :cyan
56
- #
57
- # end
28
+ # Because after_configuration won't run again until we
29
+ # build, we'll fake the strings with the one given for
30
+ # the default. So for each target, gsub the target for
31
+ # the initial target already given in config.
32
+ app_config[:targets].each do |target|
33
+ target_org = app_config[:target].to_s
34
+ target_req = target[0].to_s
35
+ path_org = app_config[:build_dir]
36
+ path_req = path_org.reverse.sub(target_org.reverse, target_req.reverse).reverse
37
+ say "#{target_req}, #{File.expand_path(path_req)}", :cyan
38
+ end
58
39
  end
59
40
 
60
41
  Base.register(self, 'list_all', 'list_all', 'Lists all targets')
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.11'
3
+ VERSION = '1.0.12'
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.11
4
+ version: 1.0.12
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-06-08 00:00:00.000000000 Z
11
+ date: 2018-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core