middleman-targets 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/documentation_project/Gemfile +1 -1
- data/documentation_project/config.rb +1 -1
- data/lib/middleman-targets/middleman-cli/list_all.rb +11 -30
- data/lib/middleman-targets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da8a94933a48b1ca7ad3403cf367333f5a17608
|
4
|
+
data.tar.gz: 66dbc64d01a283b5a262e63c31afe405ec7d7b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
12
|
+
gem 'middleman-targets', '~>1.0.12'
|
13
13
|
gem 'middleman', ['~> 4.1', '>= 4.1.7']
|
14
14
|
gem 'middleman-syntax'
|
@@ -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
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
#
|
53
|
-
|
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')
|
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.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-
|
11
|
+
date: 2018-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|