middleman-targets 1.0.9 → 1.0.10

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: 975177279a3e98636919b394847a1af31f579b39
4
- data.tar.gz: 29caf9197870aafd74382861a4a5d12de40a2acc
3
+ metadata.gz: deee1c85364e43f1459115ebde84b781d2549fc8
4
+ data.tar.gz: b7bbac002f75e24910d241191b4879ec98ff169a
5
5
  SHA512:
6
- metadata.gz: 2cc7c466e91ffe211dc3cd052867f7cabc184eb2ce34d5ae80df0f9443fe2eb3435001ca09fc97db8cb298baff8cf725b0f6a60f0fa8e8ea82dca4fa9297d5e7
7
- data.tar.gz: 8bd7698eff16fb6da34463a92285bd02e37f20f3d22a6f25a98b619601467c19fc67798b0b5ffa4d8c9a82b30c60f22c2878b82f4e8cff53aa54890f1f90ebef
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-15
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', '~> 1.0.9'
13
- gem 'middleman', '~> 4.1.6'
12
+ gem 'middleman-targets', '~>1.0.10'
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.9'
106
+ '1.0.10'
107
107
  end
108
108
 
109
109
  end
@@ -4,3 +4,4 @@
4
4
  ################################################################################
5
5
 
6
6
  require_relative 'middleman-cli/build_all'
7
+ require_relative 'middleman-cli/list_all'
@@ -40,7 +40,7 @@ module Middleman::Cli
40
40
 
41
41
  end
42
42
 
43
- Base.register(self, 'build_all', 'build-all', 'Builds all targets')
43
+ Base.register(self, 'build_all', 'build_all', 'Builds all targets')
44
44
  Base.map('all' => 'build_all')
45
45
 
46
46
  end # class BuildAll
@@ -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
+
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.9'
3
+ VERSION = '1.0.10'
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.9
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-05-26 00:00:00.000000000 Z
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