middleman 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/mm-build +4 -1
- data/fixtures/test-app/config.rb +1 -1
- data/lib/middleman/builder.rb +1 -1
- data/lib/middleman/features/slickmap.rb +6 -5
- data/lib/middleman/templater+dynamic_renderer.rb +1 -1
- data/middleman.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/bin/mm-build
CHANGED
@@ -6,7 +6,10 @@ ENV['MM_ENV'] = "build"
|
|
6
6
|
require File.join(File.dirname(__FILE__), "..", "lib", "middleman")
|
7
7
|
require 'middleman/builder'
|
8
8
|
|
9
|
+
# Initialize server once so features are loaded
|
10
|
+
Middleman::Server.new
|
11
|
+
|
9
12
|
# Middleman::Server.init!
|
10
13
|
Middleman::Builder.init!
|
11
14
|
|
12
|
-
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))
|
15
|
+
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))
|
data/fixtures/test-app/config.rb
CHANGED
data/lib/middleman/builder.rb
CHANGED
@@ -5,13 +5,14 @@ module Middleman::Features::Slickmap
|
|
5
5
|
def registered(app)
|
6
6
|
require 'slickmap'
|
7
7
|
|
8
|
-
@sitemap_url =
|
8
|
+
@sitemap_url = "sitemap.html"
|
9
|
+
@sitemap_url = app.sitemap_url if app.respond_to?(:slickmap_url)
|
9
10
|
|
10
|
-
if
|
11
|
+
if app.environment == :build
|
11
12
|
Middleman::Builder.template :slickmap, @sitemap_url, @sitemap_url
|
12
13
|
end
|
13
14
|
|
14
|
-
|
15
|
+
app.helpers do
|
15
16
|
def sitemap_node(n, first=false)
|
16
17
|
if n.children.length < 1
|
17
18
|
if !first && File.extname(n.dir).length > 0
|
@@ -45,7 +46,7 @@ module Middleman::Features::Slickmap
|
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
48
|
-
|
49
|
+
app.get "/#{@sitemap_url}" do
|
49
50
|
# Return :utility to put it util top menu. False to ignore
|
50
51
|
@tree, @utility = Middleman::Features::Slickmap.build_sitemap do |file_name|
|
51
52
|
:valid
|
@@ -86,4 +87,4 @@ module Middleman::Features::Slickmap
|
|
86
87
|
|
87
88
|
entry
|
88
89
|
end
|
89
|
-
end
|
90
|
+
end
|
data/middleman.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{middleman}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Thomas Reynolds"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-31}
|
13
13
|
s.email = %q{tdreyno@gmail.com}
|
14
14
|
s.executables = ["mm-init", "mm-build", "mm-server"]
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Reynolds
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-31 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|