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 CHANGED
@@ -1 +1 @@
1
- 1.0.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))
@@ -25,4 +25,4 @@ end
25
25
 
26
26
  get "/sub1/sub2/auto-css.html" do
27
27
  haml :"auto-css.html", :layout => false
28
- end
28
+ end
@@ -57,4 +57,4 @@ module Middleman
57
57
 
58
58
  add :build, ::Middleman::Builder
59
59
  end
60
- end
60
+ end
@@ -5,13 +5,14 @@ module Middleman::Features::Slickmap
5
5
  def registered(app)
6
6
  require 'slickmap'
7
7
 
8
- @sitemap_url = config[:url] || "sitemap.html"
8
+ @sitemap_url = "sitemap.html"
9
+ @sitemap_url = app.sitemap_url if app.respond_to?(:slickmap_url)
9
10
 
10
- if Middleman::Server.environment == :build
11
+ if app.environment == :build
11
12
  Middleman::Builder.template :slickmap, @sitemap_url, @sitemap_url
12
13
  end
13
14
 
14
- Middleman::Server.helpers do
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
- Middleman::Server.get "/#{@sitemap_url}" do
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
@@ -23,4 +23,4 @@ class Templater::Actions::Template
23
23
  @@rack_test.last_response.body
24
24
  end
25
25
  end
26
- end
26
+ 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.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-09-24}
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.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-09-24 00:00:00 -07:00
18
+ date: 2010-10-31 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency