middleman-targets 1.0.9 → 1.0.10
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 +4 -4
- data/CHANGELOG.md +8 -1
- data/documentation_project/Gemfile +2 -2
- data/documentation_project/config.rb +1 -1
- data/lib/middleman-targets/commands.rb +1 -0
- data/lib/middleman-targets/middleman-cli/build_all.rb +1 -1
- data/lib/middleman-targets/middleman-cli/list_all.rb +50 -0
- data/lib/middleman-targets/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deee1c85364e43f1459115ebde84b781d2549fc8
|
4
|
+
data.tar.gz: b7bbac002f75e24910d241191b4879ec98ff169a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021a9f30ba4995390ad0a72e2b7074b011f40fb262279a524bd87be05a4db7aa673aabad094ec857f55917bb6c721159292cb781febd87e1c991b96a77339592
|
7
|
+
data.tar.gz: 7d9b66a946ed244634f8a7e6e0116afff6ef4c83c512ce74ba43009bb3fd3107c518aa535971885f38c8f102e7222c1d318dc3e01d4ccba4a3c60ca0a9f2c4d8
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,22 @@
|
|
1
1
|
middleman-targets change log
|
2
2
|
============================
|
3
3
|
|
4
|
+
- Version 1.0.10 / 2018-June-07
|
5
|
+
|
6
|
+
- Bump to version 1.0.10, because list_all command line option was added.
|
7
|
+
|
4
8
|
- Version 1.0.9 / 2018-May-26
|
5
9
|
|
6
10
|
- Updated to 1.0.9.
|
7
11
|
- Update documentation.
|
8
12
|
- Fix broken template.
|
9
13
|
- Made a testq (quiet) task.
|
14
|
+
|
15
|
+
- Version 1.0.8 / 2018-May-18
|
16
|
+
|
10
17
|
- Added middleman_target exposed to config.rb
|
11
18
|
|
12
|
-
- Version 1.0.7 / 2016-May-
|
19
|
+
- Version 1.0.7 / 2016-May-14
|
13
20
|
|
14
21
|
- Bump to 1.0.7 fixes:
|
15
22
|
- Require capybara as development dependency fixes broken testing.
|
@@ -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', '~>
|
13
|
-
gem 'middleman', '~> 4.1.
|
12
|
+
gem 'middleman-targets', '~>1.0.10'
|
13
|
+
gem 'middleman', ['~> 4.1', '>= 4.1.7']
|
14
14
|
gem 'middleman-syntax'
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'middleman-cli'
|
2
|
+
|
3
|
+
################################################################################
|
4
|
+
# Envelops the class necessary to provide the `list_all` command.
|
5
|
+
################################################################################
|
6
|
+
module Middleman::Cli
|
7
|
+
|
8
|
+
###################################################################
|
9
|
+
# class Middleman::Cli::ListAll
|
10
|
+
# List all targets.
|
11
|
+
###################################################################
|
12
|
+
class ListAll < Thor::Group
|
13
|
+
include Thor::Actions
|
14
|
+
check_unknown_options!
|
15
|
+
|
16
|
+
############################################################
|
17
|
+
# List all targets.
|
18
|
+
# @return [Void]
|
19
|
+
############################################################
|
20
|
+
def list_all
|
21
|
+
# The first thing we want to do is create a temporary application
|
22
|
+
# instance so that we can determine the valid targets.
|
23
|
+
app = ::Middleman::Application.new do
|
24
|
+
config[:exit_before_ready] = true
|
25
|
+
end
|
26
|
+
config = app.config.clone
|
27
|
+
app.shutdown!
|
28
|
+
|
29
|
+
config[:targets].each do |target|
|
30
|
+
out_path = ''
|
31
|
+
requested_target = target[0]
|
32
|
+
if (build_dir = config[:targets][requested_target][:build_dir])
|
33
|
+
out_path = sprintf(build_dir, requested_target.to_s)
|
34
|
+
else
|
35
|
+
out_path = "#{config[:build_dir]} (#{requested_target.to_s})"
|
36
|
+
end
|
37
|
+
|
38
|
+
out_path = File.expand_path(out_path)
|
39
|
+
|
40
|
+
say "#{requested_target.to_s}, #{out_path}", :cyan
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
Base.register(self, 'list_all', 'list_all', 'Lists all targets')
|
46
|
+
|
47
|
+
end # class ListAll
|
48
|
+
|
49
|
+
end # Module Middleman::Cli
|
50
|
+
|
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.10
|
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-
|
11
|
+
date: 2018-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/middleman-targets/commands.rb
|
197
197
|
- lib/middleman-targets/extension.rb
|
198
198
|
- lib/middleman-targets/middleman-cli/build_all.rb
|
199
|
+
- lib/middleman-targets/middleman-cli/list_all.rb
|
199
200
|
- lib/middleman-targets/version.rb
|
200
201
|
- middleman-targets.gemspec
|
201
202
|
- yard/readme.md
|