middleman-targets 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/Gemfile +1 -1
- data/README.md +1 -0
- data/bin/middleman-targets +3 -3
- data/documentation_project/config.rb +1 -1
- data/documentation_project/source/index.html.md.erb +1 -1
- data/documentation_project/source/license.html.md.erb +27 -0
- data/lib/middleman-targets/middleman-cli/build_all.rb +50 -0
- data/lib/middleman-targets/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f71bf32060d58c412a4ae141d2c886515ec0e3f
|
4
|
+
data.tar.gz: aeaac5e30feef6d8cbaf5d66aad57717abc723c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cb81825deaee249be59153b7f414fa8db842b105d42481aa5f29dda4bb3d96a8b1ca39ace5595a2ee341c0d161d96dde73738b57d45f0158b380301eb9cd3b7
|
7
|
+
data.tar.gz: 38c52c247fc4891a93d02f0e2224000f2173983620b20123001f5ef399aa0547ca5afda8326a85be819c84224de570f72dc376c747d7bc70bc54dd7ccac8c230
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
|
1
|
+
middleman-targets change log
|
2
2
|
============================
|
3
3
|
|
4
|
-
- Version 1.0.
|
4
|
+
- Version 1.0.1 / 2016-March-30
|
5
|
+
|
6
|
+
- Fixed a git issue that led to installed Gem not working at all.
|
7
|
+
- Added a license to the sample project.
|
8
|
+
- Fixed incorrect version in the sample project.
|
9
|
+
|
10
|
+
- Version 1.0.0 / 2016-March-29
|
5
11
|
|
6
12
|
- Initial Release
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/bin/middleman-targets
CHANGED
@@ -9,7 +9,7 @@ require 'thor'
|
|
9
9
|
require 'fileutils'
|
10
10
|
require 'middleman-targets/version'
|
11
11
|
|
12
|
-
module
|
12
|
+
module MiddlemanTargetsCli
|
13
13
|
|
14
14
|
class Cli < Thor
|
15
15
|
|
@@ -70,11 +70,11 @@ bundle exec middleman server
|
|
70
70
|
|
71
71
|
end # class Cli
|
72
72
|
|
73
|
-
end # module
|
73
|
+
end # module MiddlemanTargetsCli
|
74
74
|
|
75
75
|
|
76
76
|
###########################################################
|
77
77
|
# Main
|
78
78
|
###########################################################
|
79
79
|
|
80
|
-
|
80
|
+
MiddlemanTargetsCli::Cli.start(ARGV)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
title: The MIT License
|
3
|
+
layout: template-logo-medium
|
4
|
+
---
|
5
|
+
|
6
|
+
The MIT License
|
7
|
+
===============
|
8
|
+
|
9
|
+
**Copyright (c) 2016 Jim Derry**
|
10
|
+
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
13
|
+
in the Software without restriction, including without limitation the rights
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
16
|
+
furnished to do so, subject to the following conditions:
|
17
|
+
|
18
|
+
The above copyright notice and this permission notice shall be included in
|
19
|
+
all copies or substantial portions of the Software.
|
20
|
+
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
27
|
+
THE SOFTWARE.
|
@@ -0,0 +1,50 @@
|
|
1
|
+
################################################################################
|
2
|
+
# build_all.rb
|
3
|
+
# Provides the class necessary for the build_all (all) command.
|
4
|
+
################################################################################
|
5
|
+
|
6
|
+
require 'middleman-cli'
|
7
|
+
|
8
|
+
module Middleman::Cli
|
9
|
+
|
10
|
+
###################################################################
|
11
|
+
# class Middleman::Cli::BuildAll
|
12
|
+
# Build all targets.
|
13
|
+
###################################################################
|
14
|
+
class BuildAll < Thor::Group
|
15
|
+
include Thor::Actions
|
16
|
+
check_unknown_options!
|
17
|
+
|
18
|
+
############################################################
|
19
|
+
# build_all
|
20
|
+
############################################################
|
21
|
+
def build_all
|
22
|
+
|
23
|
+
# The first thing we want to do is create a temporary application
|
24
|
+
# instance so that we can determine the valid targets.
|
25
|
+
app = ::Middleman::Application.new do
|
26
|
+
config[:exit_before_ready] = true
|
27
|
+
end
|
28
|
+
|
29
|
+
build_list = app.config[:targets].each_key.collect { |item| item.to_s }
|
30
|
+
bad_builds = []
|
31
|
+
|
32
|
+
build_list.each do |target|
|
33
|
+
bad_builds << target unless Build.start(['--target', target])
|
34
|
+
end
|
35
|
+
unless bad_builds.count == 0
|
36
|
+
say
|
37
|
+
say 'These targets produced errors during build:', :red
|
38
|
+
bad_builds.each { |item| say " #{item}", :red}
|
39
|
+
end
|
40
|
+
bad_builds.count == 0
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
Base.register(self, 'build_all', 'build-all', 'Builds all targets')
|
45
|
+
Base.map('all' => 'build_all')
|
46
|
+
|
47
|
+
end # class BuildAll
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Derry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- documentation_project/source/layouts/template-logo-large.haml
|
86
86
|
- documentation_project/source/layouts/template-logo-medium.haml
|
87
87
|
- documentation_project/source/layouts/template-logo-small.haml
|
88
|
+
- documentation_project/source/license.html.md.erb
|
88
89
|
- documentation_project/source/only-free.html.md.erb
|
89
90
|
- documentation_project/source/only-pro.html.md.erb
|
90
91
|
- documentation_project/source/simple-demo.html.md.erb
|
@@ -96,6 +97,7 @@ files:
|
|
96
97
|
- lib/middleman-targets.rb
|
97
98
|
- lib/middleman-targets/commands.rb
|
98
99
|
- lib/middleman-targets/extension.rb
|
100
|
+
- lib/middleman-targets/middleman-cli/build_all.rb
|
99
101
|
- lib/middleman-targets/version.rb
|
100
102
|
- middleman-targets.gemspec
|
101
103
|
homepage: https://github.com/middlemac/middleman-targets
|