middleman 3.0.0.alpha.3 → 3.0.0.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/.gitignore +1 -2
  2. data/.yardopts +2 -0
  3. data/CHANGELOG.md +97 -0
  4. data/README.md +84 -13
  5. data/Rakefile +6 -2
  6. data/bin/middleman +5 -4
  7. data/features/builder.feature +7 -0
  8. data/features/clean_build.feature +11 -0
  9. data/features/current_page_request_path_backwards.feature +6 -0
  10. data/features/front-matter.feature +28 -1
  11. data/features/generator.feature +4 -4
  12. data/features/helpers_external.feature +6 -0
  13. data/features/helpers_lorem.feature +5 -0
  14. data/features/instance_vars.feature +20 -0
  15. data/features/markdown.feature +23 -3
  16. data/features/minify_css.feature +6 -1
  17. data/features/minify_javascript.feature +33 -1
  18. data/features/mount_rack.feature +8 -0
  19. data/features/partials.feature +7 -1
  20. data/features/preview_changes.feature +18 -0
  21. data/features/wildcard_page_helper.feature +19 -0
  22. data/fixtures/build-with-errors-app/config.rb +1 -0
  23. data/fixtures/build-with-errors-app/source/index.html.erb +1 -0
  24. data/fixtures/clean-app/source/index.html.haml +1 -6
  25. data/fixtures/clean-dir-app/config.rb +2 -0
  26. data/fixtures/clean-dir-app/source/about.html +1 -0
  27. data/fixtures/different-engine-partial/config.rb +0 -0
  28. data/fixtures/different-engine-partial/source/index.html.erb +1 -0
  29. data/fixtures/different-engine-partial/source/layouts/layout.erb +7 -0
  30. data/fixtures/different-engine-partial/source/shared/_footer.slim +1 -0
  31. data/fixtures/different-engine-partial/source/shared/_header.erb +1 -0
  32. data/fixtures/external-helpers/config.rb +4 -0
  33. data/fixtures/external-helpers/lib/hello_helper.rb +5 -0
  34. data/fixtures/external-helpers/source/index.html.erb +1 -0
  35. data/fixtures/instance-vars-app/config.rb +0 -0
  36. data/fixtures/instance-vars-app/source/_vartial.erb +5 -0
  37. data/fixtures/instance-vars-app/source/instance-var-set.html.erb +2 -0
  38. data/fixtures/instance-vars-app/source/layout.erb +3 -0
  39. data/fixtures/instance-vars-app/source/no-instance-var.html.erb +1 -0
  40. data/fixtures/markdown-app/config.rb +9 -0
  41. data/fixtures/markdown-app/source/autolink.html.markdown +5 -0
  42. data/fixtures/markdown-app/source/fenced_code_blocks.html.markdown +7 -0
  43. data/fixtures/markdown-app/source/index.html.markdown +4 -0
  44. data/fixtures/markdown-app/source/no_intra_emphasis.html.markdown +5 -0
  45. data/fixtures/markdown-app/source/smarty_pants.html.markdown +5 -0
  46. data/fixtures/markdown-app/source/space_after_headers.html.markdown +5 -0
  47. data/fixtures/markdown-app/source/strikethrough.html.markdown +5 -0
  48. data/fixtures/markdown-app/source/superscript.html.markdown +5 -0
  49. data/fixtures/markdown-app/source/tables.html.markdown +8 -0
  50. data/fixtures/passthrough-app/config.rb +17 -0
  51. data/fixtures/passthrough-app/source/.htaccess +1 -0
  52. data/fixtures/passthrough-app/source/inline-coffeescript.html.haml +3 -0
  53. data/fixtures/passthrough-app/source/inline-css.html.haml +4 -0
  54. data/fixtures/passthrough-app/source/inline-js.html.haml +7 -0
  55. data/fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee +3 -0
  56. data/fixtures/passthrough-app/source/javascripts/js_test.js +8 -0
  57. data/fixtures/passthrough-app/source/stylesheets/site.css.sass +1 -0
  58. data/fixtures/preview-app/config.rb +0 -0
  59. data/fixtures/preview-app/source/content.html.erb +1 -0
  60. data/fixtures/preview-app/source/layout.erb +1 -0
  61. data/fixtures/sinatra-app/config.rb +11 -0
  62. data/fixtures/sinatra-app/source/index.html.erb +5 -0
  63. data/fixtures/test-app/config.rb +2 -2
  64. data/fixtures/test-app/source/front-matter-2.php.erb +7 -0
  65. data/fixtures/test-app/source/front-matter-change.html.erb +5 -0
  66. data/fixtures/test-app/source/index.html.slim +9 -0
  67. data/fixtures/test-app/source/javascripts/js_test.js +8 -0
  68. data/fixtures/test-app/source/lorem.html.erb +12 -0
  69. data/fixtures/test-app/source/request-path.html.erb +1 -0
  70. data/fixtures/wildcard-app/config.rb +1 -0
  71. data/fixtures/wildcard-app/source/admin/index.html.erb +1 -0
  72. data/fixtures/wildcard-app/source/admin/page.html.erb +1 -0
  73. data/fixtures/wildcard-app/source/index.html.erb +1 -0
  74. data/fixtures/wildcard-app/source/layouts/admin.erb +2 -0
  75. data/fixtures/wildcard-app/source/layouts/layout.erb +2 -0
  76. data/fixtures/wildcard-directory-index-app/config.rb +2 -0
  77. data/fixtures/wildcard-directory-index-app/source/admin/index.html.erb +1 -0
  78. data/fixtures/wildcard-directory-index-app/source/admin/page.html.erb +1 -0
  79. data/fixtures/wildcard-directory-index-app/source/index.html.erb +1 -0
  80. data/fixtures/wildcard-directory-index-app/source/layouts/admin.erb +2 -0
  81. data/fixtures/wildcard-directory-index-app/source/layouts/layout.erb +2 -0
  82. data/lib/middleman.rb +63 -8
  83. data/lib/middleman/base.rb +56 -12
  84. data/lib/middleman/builder.rb +18 -12
  85. data/lib/middleman/cli.rb +5 -5
  86. data/lib/middleman/core_extensions/assets.rb +12 -0
  87. data/lib/middleman/core_extensions/builder.rb +4 -4
  88. data/lib/middleman/core_extensions/extensions.rb +5 -51
  89. data/lib/middleman/core_extensions/front_matter.rb +30 -11
  90. data/lib/middleman/core_extensions/rendering.rb +18 -12
  91. data/lib/middleman/core_extensions/routing.rb +12 -0
  92. data/lib/middleman/core_extensions/show_exceptions.rb +16 -0
  93. data/lib/middleman/core_extensions/sitemap.rb +10 -4
  94. data/lib/middleman/extensions/minify_css.rb +4 -2
  95. data/lib/middleman/extensions/minify_javascript.rb +8 -6
  96. data/lib/middleman/guard.rb +80 -76
  97. data/lib/middleman/renderers/markdown.rb +8 -13
  98. data/lib/middleman/sitemap/page.rb +3 -2
  99. data/lib/middleman/sitemap/store.rb +3 -1
  100. data/lib/middleman/sitemap/template.rb +19 -5
  101. data/lib/middleman/step_definitions.rb +1 -0
  102. data/lib/middleman/step_definitions/builder_steps.rb +6 -1
  103. data/lib/middleman/step_definitions/generator_steps.rb +9 -13
  104. data/lib/middleman/step_definitions/middleman_steps.rb +13 -0
  105. data/lib/middleman/step_definitions/server_steps.rb +7 -0
  106. data/lib/middleman/templates.rb +42 -21
  107. data/lib/middleman/templates/default.rb +5 -0
  108. data/lib/middleman/templates/html5.rb +6 -0
  109. data/lib/middleman/templates/local.rb +5 -6
  110. data/lib/middleman/templates/mobile.rb +6 -0
  111. data/lib/middleman/version.rb +1 -1
  112. data/middleman-x86-mingw32.gemspec +1 -1
  113. data/middleman.gemspec +3 -2
  114. metadata +531 -242
  115. data/CHANGELOG +0 -98
  116. data/fixtures/test-app/source/index.html.haml +0 -9
  117. data/fixtures/test-app/source/markdown.html.markdown +0 -1
@@ -115,7 +115,9 @@ module Middleman::Sitemap
115
115
  # @app.logger.debug :sitemap_update, Time.now, path if @app.logging?
116
116
 
117
117
  # Add generic path
118
- page(path).source_file = File.expand_path(file, @app.root)
118
+ p = page(path)
119
+ p.source_file = File.expand_path(file, @app.root)
120
+ p.touch
119
121
 
120
122
  true
121
123
  end
@@ -29,17 +29,31 @@ module Middleman::Sitemap
29
29
  def ext
30
30
  page.ext
31
31
  end
32
-
32
+
33
+ def touch
34
+ app.cache.remove(:metadata, source_file)
35
+ end
36
+
33
37
  def metadata
34
- app.cache.fetch(:metadata, source_file) do
35
- metadata = { :options => {}, :locals => {} }
38
+ metadata = app.cache.fetch(:metadata, source_file) do
39
+ data = { :options => {}, :locals => {} }
40
+
36
41
  app.provides_metadata.each do |callback, matcher|
37
42
  next if !matcher.nil? && !source_file.match(matcher)
38
43
  result = app.instance_exec(source_file, &callback)
39
- metadata = metadata.deep_merge(result)
44
+ data = data.deep_merge(result)
40
45
  end
41
- metadata
46
+
47
+ data
42
48
  end
49
+
50
+ app.provides_metadata_for_path.each do |callback, matcher|
51
+ next if !matcher.nil? && !path.match(matcher)
52
+ result = app.instance_exec(path, &callback)
53
+ metadata = metadata.deep_merge(result)
54
+ end
55
+
56
+ metadata
43
57
  end
44
58
 
45
59
  def render(opts={}, locs={}, &block)
@@ -1,6 +1,7 @@
1
1
  MIDDLEMAN_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
2
2
  MIDDLEMAN_BIN_PATH = File.join(MIDDLEMAN_ROOT_PATH, "bin")
3
3
 
4
+ require "middleman/step_definitions/middleman_steps"
4
5
  require "middleman/step_definitions/builder_steps"
5
6
  require "middleman/step_definitions/generator_steps"
6
7
  require "middleman/step_definitions/server_steps"
@@ -42,4 +42,9 @@ end
42
42
  Then /^"([^\"]*)" should not exist at "([^\"]*)"$/ do |target_file, path|
43
43
  target = File.join(PROJECT_ROOT_PATH, "fixtures", path, "build", target_file)
44
44
  File.exists?(target).should be_false
45
- end
45
+ end
46
+
47
+ Then /^the last exit code should be "([^\"]*)"$/ do |exit_code|
48
+ exit_code = exit_code.to_i
49
+ $?.exitstatus.should == exit_code
50
+ end
@@ -1,30 +1,26 @@
1
1
  require 'fileutils'
2
2
 
3
- Given /^generated directory at "([^\"]*)"$/ do |dirname|
4
- target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
3
+ Given /^the project has been initialized$/ do
4
+ step %Q{the project should be cleaned up}
5
5
  init_cmd = File.join(MIDDLEMAN_BIN_PATH, "middleman init")
6
- `cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
6
+ `cd #{File.dirname(@target)} && #{init_cmd} #{File.basename(@target)}`
7
7
  end
8
8
 
9
- Then /^template files should exist at "([^\"]*)"$/ do |dirname|
10
- target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
9
+ Then /^template files should exist$/ do
11
10
  template_glob = File.join(MIDDLEMAN_ROOT_PATH, "lib", "middleman", "templates", "default", "*/**/*")
12
11
 
13
12
  Dir[template_glob].each do |f|
14
13
  next if File.directory?(f)
15
- File.exists?("#{target}/#{f.split('template/')[1]}").should be_true
14
+ File.exists?("#{@target}/#{f.split('template/')[1]}").should be_true
16
15
  end
17
16
  end
18
17
 
19
- Then /^empty directories should exist at "([^\"]*)"$/ do |dirname|
20
- target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
21
-
18
+ Then /^empty directories should exist$/ do
22
19
  %w(source/stylesheets source/javascripts source/images).each do |d|
23
- File.exists?("#{target}/#{d}").should be_true
20
+ File.exists?("#{@target}/#{d}").should be_true
24
21
  end
25
22
  end
26
23
 
27
- Then /^cleanup at "([^\"]*)"$/ do |dirname|
28
- target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
29
- FileUtils.rm_rf(target)
24
+ Then /^the project should be cleaned up$/ do
25
+ FileUtils.rm_rf(@target)
30
26
  end
@@ -0,0 +1,13 @@
1
+ Given /^a project at "([^\"]*)"$/ do |dirname|
2
+ @target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
3
+ end
4
+
5
+ Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
6
+ file_path = File.expand_path(path, @target)
7
+ File.open(file_path, 'w') { |f| f.write(contents) }
8
+ step %Q{the file "#{path}" did change}
9
+ end
10
+
11
+ Then /^the file "([^\"]*)" did change$/ do |path|
12
+ @server_inst.file_did_change(path)
13
+ end
@@ -22,10 +22,13 @@ Given /^current environment is "([^\"]*)"$/ do |env|
22
22
  end
23
23
 
24
24
  Given /^the Server is running at "([^\"]*)"$/ do |app_path|
25
+ step %Q{a project at "#{app_path}"}
26
+
25
27
  initialize_commands = @initialize_commands || []
26
28
  initialize_commands.unshift lambda {
27
29
  set :root, File.join(PROJECT_ROOT_PATH, "fixtures", app_path)
28
30
  set :environment, @current_env || :development
31
+ set :show_exceptions, false
29
32
  }
30
33
 
31
34
  @server_inst = Middleman.server.inst do
@@ -42,6 +45,10 @@ When /^I go to "([^\"]*)"$/ do |url|
42
45
  @browser.get(url)
43
46
  end
44
47
 
48
+ Then /^going to "([^\"]*)" should not raise an exception$/ do |url|
49
+ lambda { @browser.get(url) }.should_not raise_exception
50
+ end
51
+
45
52
  Then /^I should see "([^\"]*)"$/ do |expected|
46
53
  @browser.last_response.body.should include(expected)
47
54
  end
@@ -1,44 +1,62 @@
1
+ # Use thor for template generation
1
2
  require "thor"
2
3
  require "thor/group"
3
4
 
5
+ # Templates namespace
4
6
  module Middleman::Templates
5
- @@template_mappings = {}
6
- def self.register(name, klass)
7
- @@template_mappings[name] = klass
8
- end
9
-
10
- def self.registered_names
11
- @@template_mappings.keys
12
- end
13
7
 
14
- def self.registered_templates
15
- @@template_mappings
8
+ # Static methods
9
+ class << self
10
+
11
+ # Get list of registered templates and add new ones
12
+ #
13
+ # @param [Symbol] name The name of the template
14
+ # @param [Class] klass The class to be executed for this template
15
+ # @return [Hash] List of registered templates
16
+ def registered(*args)
17
+ @_template_mappings ||= {}
18
+ @_template_mappings[args[0]] = args[1] if args.length == 2
19
+ @_template_mappings
20
+ end
21
+
22
+ # Middleman::Templates.register(name, klass)
23
+ alias :register :registered
16
24
  end
17
25
 
26
+ # Base Template class. Handles basic options and paths.
18
27
  class Base < ::Thor::Group
19
28
  include Thor::Actions
20
29
 
30
+ # Required path for the new project to be generated
21
31
  argument :location, :type => :string
32
+
33
+ # Name of the template being used to generate the project.
22
34
  class_option :template, :default => "default"
35
+
36
+ # What to call the directory which CSS will be searched for.
23
37
  class_option :css_dir, :default => "stylesheets"
38
+
39
+ # What to call the directory which JS will be searched for.
24
40
  class_option :js_dir, :default => "javascripts"
41
+
42
+ # What to call the directory which images will be searched for.
25
43
  class_option :images_dir, :default => "images"
26
- class_option :rack, :type => :boolean, :default => false
27
- class_option :bundler, :type => :boolean, :default => false
28
44
 
45
+ # Output a config.ru file for Rack if --rack is passed
46
+ class_option :rack, :type => :boolean, :default => false
29
47
  def generate_rack
30
- if options[:rack]
31
- template "shared/config.ru", File.join(location, "config.ru")
32
- end
48
+ return unless options[:rack]
49
+ template "shared/config.ru", File.join(location, "config.ru")
33
50
  end
34
51
 
52
+ # Output a Gemfile file for Bundler if --bundler is passed
53
+ class_option :bundler, :type => :boolean, :default => false
35
54
  def generate_bundler
36
- if options[:bundler]
37
- template "shared/Gemfile.tt", File.join(location, "Gemfile")
38
-
39
- say_status :run, "bundle install"
40
- print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install`
41
- end
55
+ return unless options[:bundler]
56
+ template "shared/Gemfile.tt", File.join(location, "Gemfile")
57
+
58
+ say_status :run, "bundle install"
59
+ print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install`
42
60
  end
43
61
  end
44
62
  end
@@ -49,5 +67,8 @@ require "middleman/templates/default"
49
67
  # HTML5 template
50
68
  require "middleman/templates/html5"
51
69
 
70
+ # HTML5 Mobile template
71
+ require "middleman/templates/mobile"
72
+
52
73
  # Local templates
53
74
  require "middleman/templates/local"
@@ -1,8 +1,12 @@
1
+ # Default Middleman template
1
2
  class Middleman::Templates::Default < Middleman::Templates::Base
3
+
4
+ # Template files are relative to this file
2
5
  def self.source_root
3
6
  File.dirname(__FILE__)
4
7
  end
5
8
 
9
+ # Actually output the files
6
10
  def build_scaffold
7
11
  template "shared/config.tt", File.join(location, "config.rb")
8
12
  copy_file "default/source/index.html.erb", File.join(location, "source/index.html.erb")
@@ -14,4 +18,5 @@ class Middleman::Templates::Default < Middleman::Templates::Base
14
18
  end
15
19
  end
16
20
 
21
+ # Register this template
17
22
  Middleman::Templates.register(:default, Middleman::Templates::Default)
@@ -1,12 +1,17 @@
1
+ # HTML5 Boilerplate template
1
2
  class Middleman::Templates::Html5 < Middleman::Templates::Base
3
+
4
+ # Has different default paths
2
5
  class_option :css_dir, :default => "css"
3
6
  class_option :js_dir, :default => "js"
4
7
  class_option :images_dir, :default => "img"
5
8
 
9
+ # Templates are relative to this file
6
10
  def self.source_root
7
11
  File.dirname(__FILE__)
8
12
  end
9
13
 
14
+ # Output the files
10
15
  def build_scaffold
11
16
  template "shared/config.tt", File.join(location, "config.rb")
12
17
  directory "html5/source", File.join(location, "source")
@@ -14,4 +19,5 @@ class Middleman::Templates::Html5 < Middleman::Templates::Base
14
19
  end
15
20
  end
16
21
 
22
+ # Register the template
17
23
  Middleman::Templates.register(:html5, Middleman::Templates::Html5)
@@ -1,19 +1,18 @@
1
- module Middleman
2
- def self.templates_path
3
- File.join(File.expand_path("~/"), ".middleman")
4
- end
5
- end
6
-
1
+ # Local templates
7
2
  class Middleman::Templates::Local < Middleman::Templates::Base
3
+
4
+ # Look for templates in ~/.middleman
8
5
  def self.source_root
9
6
  Middleman.templates_path
10
7
  end
11
8
 
9
+ # Just copy from the template path
12
10
  def build_scaffold
13
11
  directory options[:template].to_s, location
14
12
  end
15
13
  end
16
14
 
15
+ # Iterate over the directories in the templates path and register each one.
17
16
  Dir[File.join(Middleman.templates_path, "*")].each do |dir|
18
17
  next unless File.directory?(dir)
19
18
  Middleman::Templates.register(File.basename(dir).to_sym, Middleman::Templates::Local)
@@ -1,12 +1,17 @@
1
+ # Mobile HTML5 Boilerplate
1
2
  class Middleman::Templates::Mobile < Middleman::Templates::Base
3
+
4
+ # Slightly different paths
2
5
  class_option :css_dir, :default => "css"
3
6
  class_option :js_dir, :default => "js"
4
7
  class_option :images_dir, :default => "img"
5
8
 
9
+ # Template files are relative to this file
6
10
  def self.source_root
7
11
  File.dirname(__FILE__)
8
12
  end
9
13
 
14
+ # Output the files
10
15
  def build_scaffold
11
16
  template "shared/config.tt", File.join(location, "config.rb")
12
17
  directory "mobile/source", File.join(location, "source")
@@ -14,4 +19,5 @@ class Middleman::Templates::Mobile < Middleman::Templates::Base
14
19
  end
15
20
  end
16
21
 
22
+ # Register the template
17
23
  Middleman::Templates.register(:mobile, Middleman::Templates::Mobile)
@@ -2,7 +2,7 @@
2
2
  require "rubygems"
3
3
 
4
4
  module Middleman
5
- VERSION = "3.0.0.alpha.3"
5
+ VERSION = "3.0.0.alpha.4"
6
6
 
7
7
  # @private
8
8
  GEM_VERSION = ::Gem::Version.create(VERSION)
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ["lib"]
22
22
 
23
23
  s.add_dependency("rack", ["~> 1.3.5"])
24
- s.add_dependency("thin", ["~> 1.2.11"])
24
+ s.add_dependency("thin", ["~> 1.3.1"])
25
25
  s.add_dependency("thor", ["~> 0.14.0"])
26
26
  s.add_dependency("tilt", ["~> 1.3.1"])
27
27
  s.add_dependency("i18n", ["~> 0.6.0"])
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ["lib"]
22
22
 
23
23
  s.add_dependency("rack", ["~> 1.3.5"])
24
- s.add_dependency("thin", ["~> 1.2.11"])
24
+ s.add_dependency("thin", ["~> 1.3.1"])
25
25
  s.add_dependency("thor", ["~> 0.14.0"])
26
26
  s.add_dependency("tilt", ["~> 1.3.1"])
27
27
  s.add_dependency("i18n", ["~> 0.6.0"])
@@ -36,13 +36,14 @@ Gem::Specification.new do |s|
36
36
  s.add_dependency("sprockets", ["~> 2.1.2"])
37
37
  s.add_dependency("sprockets-sass", ["~> 0.5.0"])
38
38
  s.add_dependency("guard", ["~> 0.8.8"])
39
+ s.add_dependency("redcarpet", ["~> 2.0.0"])
39
40
 
40
41
  # OSX
41
42
  s.add_dependency("rb-fsevent")
42
43
 
43
44
  # Development and test
44
45
  s.add_development_dependency("slim")
45
- s.add_development_dependency("maruku")
46
+ s.add_development_dependency("sinatra")
46
47
  s.add_development_dependency("coffee-filter", ["~> 0.1.1"])
47
48
  s.add_development_dependency("liquid", ["~> 2.2.0"])
48
49
  s.add_development_dependency("cucumber", ["~> 1.1.0"])
metadata CHANGED
@@ -1,340 +1,494 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
- version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.3
3
+ version: !ruby/object:Gem::Version
4
+ hash: -3702664396
5
5
  prerelease: 6
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - 0
10
+ - alpha
11
+ - 4
12
+ version: 3.0.0.alpha.4
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Thomas Reynolds
9
16
  autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
- date: 2011-11-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rack
16
- requirement: &70122866510240 !ruby/object:Gem::Requirement
19
+
20
+ date: 2011-12-14 00:00:00 -08:00
21
+ default_executable:
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ prerelease: false
25
+ type: :runtime
26
+ requirement: &id001 !ruby/object:Gem::Requirement
17
27
  none: false
18
- requirements:
28
+ requirements:
19
29
  - - ~>
20
- - !ruby/object:Gem::Version
30
+ - !ruby/object:Gem::Version
31
+ hash: 17
32
+ segments:
33
+ - 1
34
+ - 3
35
+ - 5
21
36
  version: 1.3.5
22
- type: :runtime
37
+ name: rack
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
23
40
  prerelease: false
24
- version_requirements: *70122866510240
25
- - !ruby/object:Gem::Dependency
26
- name: thin
27
- requirement: &70122866509540 !ruby/object:Gem::Requirement
41
+ type: :runtime
42
+ requirement: &id002 !ruby/object:Gem::Requirement
28
43
  none: false
29
- requirements:
44
+ requirements:
30
45
  - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 1.2.11
33
- type: :runtime
46
+ - !ruby/object:Gem::Version
47
+ hash: 25
48
+ segments:
49
+ - 1
50
+ - 3
51
+ - 1
52
+ version: 1.3.1
53
+ name: thin
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
34
56
  prerelease: false
35
- version_requirements: *70122866509540
36
- - !ruby/object:Gem::Dependency
37
- name: thor
38
- requirement: &70122866508800 !ruby/object:Gem::Requirement
57
+ type: :runtime
58
+ requirement: &id003 !ruby/object:Gem::Requirement
39
59
  none: false
40
- requirements:
60
+ requirements:
41
61
  - - ~>
42
- - !ruby/object:Gem::Version
62
+ - !ruby/object:Gem::Version
63
+ hash: 39
64
+ segments:
65
+ - 0
66
+ - 14
67
+ - 0
43
68
  version: 0.14.0
44
- type: :runtime
69
+ name: thor
70
+ version_requirements: *id003
71
+ - !ruby/object:Gem::Dependency
45
72
  prerelease: false
46
- version_requirements: *70122866508800
47
- - !ruby/object:Gem::Dependency
48
- name: tilt
49
- requirement: &70122866508220 !ruby/object:Gem::Requirement
73
+ type: :runtime
74
+ requirement: &id004 !ruby/object:Gem::Requirement
50
75
  none: false
51
- requirements:
76
+ requirements:
52
77
  - - ~>
53
- - !ruby/object:Gem::Version
78
+ - !ruby/object:Gem::Version
79
+ hash: 25
80
+ segments:
81
+ - 1
82
+ - 3
83
+ - 1
54
84
  version: 1.3.1
55
- type: :runtime
85
+ name: tilt
86
+ version_requirements: *id004
87
+ - !ruby/object:Gem::Dependency
56
88
  prerelease: false
57
- version_requirements: *70122866508220
58
- - !ruby/object:Gem::Dependency
59
- name: i18n
60
- requirement: &70122866507720 !ruby/object:Gem::Requirement
89
+ type: :runtime
90
+ requirement: &id005 !ruby/object:Gem::Requirement
61
91
  none: false
62
- requirements:
92
+ requirements:
63
93
  - - ~>
64
- - !ruby/object:Gem::Version
94
+ - !ruby/object:Gem::Version
95
+ hash: 7
96
+ segments:
97
+ - 0
98
+ - 6
99
+ - 0
65
100
  version: 0.6.0
66
- type: :runtime
101
+ name: i18n
102
+ version_requirements: *id005
103
+ - !ruby/object:Gem::Dependency
67
104
  prerelease: false
68
- version_requirements: *70122866507720
69
- - !ruby/object:Gem::Dependency
70
- name: rack-test
71
- requirement: &70122866507100 !ruby/object:Gem::Requirement
105
+ type: :runtime
106
+ requirement: &id006 !ruby/object:Gem::Requirement
72
107
  none: false
73
- requirements:
108
+ requirements:
74
109
  - - ~>
75
- - !ruby/object:Gem::Version
110
+ - !ruby/object:Gem::Version
111
+ hash: 5
112
+ segments:
113
+ - 0
114
+ - 6
115
+ - 1
76
116
  version: 0.6.1
77
- type: :runtime
117
+ name: rack-test
118
+ version_requirements: *id006
119
+ - !ruby/object:Gem::Dependency
78
120
  prerelease: false
79
- version_requirements: *70122866507100
80
- - !ruby/object:Gem::Dependency
81
- name: uglifier
82
- requirement: &70122866506520 !ruby/object:Gem::Requirement
121
+ type: :runtime
122
+ requirement: &id007 !ruby/object:Gem::Requirement
83
123
  none: false
84
- requirements:
124
+ requirements:
85
125
  - - ~>
86
- - !ruby/object:Gem::Version
126
+ - !ruby/object:Gem::Version
127
+ hash: 19
128
+ segments:
129
+ - 1
130
+ - 1
131
+ - 0
87
132
  version: 1.1.0
88
- type: :runtime
133
+ name: uglifier
134
+ version_requirements: *id007
135
+ - !ruby/object:Gem::Dependency
89
136
  prerelease: false
90
- version_requirements: *70122866506520
91
- - !ruby/object:Gem::Dependency
92
- name: haml
93
- requirement: &70122866505860 !ruby/object:Gem::Requirement
137
+ type: :runtime
138
+ requirement: &id008 !ruby/object:Gem::Requirement
94
139
  none: false
95
- requirements:
140
+ requirements:
96
141
  - - ~>
97
- - !ruby/object:Gem::Version
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 3
146
+ - 1
147
+ - 0
98
148
  version: 3.1.0
99
- type: :runtime
149
+ name: haml
150
+ version_requirements: *id008
151
+ - !ruby/object:Gem::Dependency
100
152
  prerelease: false
101
- version_requirements: *70122866505860
102
- - !ruby/object:Gem::Dependency
103
- name: sass
104
- requirement: &70122866489660 !ruby/object:Gem::Requirement
153
+ type: :runtime
154
+ requirement: &id009 !ruby/object:Gem::Requirement
105
155
  none: false
106
- requirements:
156
+ requirements:
107
157
  - - ~>
108
- - !ruby/object:Gem::Version
158
+ - !ruby/object:Gem::Version
159
+ hash: 13
160
+ segments:
161
+ - 3
162
+ - 1
163
+ - 7
109
164
  version: 3.1.7
110
- type: :runtime
165
+ name: sass
166
+ version_requirements: *id009
167
+ - !ruby/object:Gem::Dependency
111
168
  prerelease: false
112
- version_requirements: *70122866489660
113
- - !ruby/object:Gem::Dependency
114
- name: activesupport
115
- requirement: &70122866489060 !ruby/object:Gem::Requirement
169
+ type: :runtime
170
+ requirement: &id010 !ruby/object:Gem::Requirement
116
171
  none: false
117
- requirements:
172
+ requirements:
118
173
  - - ~>
119
- - !ruby/object:Gem::Version
174
+ - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 3
178
+ - 1
179
+ - 0
120
180
  version: 3.1.0
121
- type: :runtime
181
+ name: activesupport
182
+ version_requirements: *id010
183
+ - !ruby/object:Gem::Dependency
122
184
  prerelease: false
123
- version_requirements: *70122866489060
124
- - !ruby/object:Gem::Dependency
125
- name: compass
126
- requirement: &70122866488460 !ruby/object:Gem::Requirement
185
+ type: :runtime
186
+ requirement: &id011 !ruby/object:Gem::Requirement
127
187
  none: false
128
- requirements:
188
+ requirements:
129
189
  - - ~>
130
- - !ruby/object:Gem::Version
190
+ - !ruby/object:Gem::Version
191
+ hash: 53
192
+ segments:
193
+ - 0
194
+ - 11
195
+ - 3
131
196
  version: 0.11.3
132
- type: :runtime
197
+ name: compass
198
+ version_requirements: *id011
199
+ - !ruby/object:Gem::Dependency
133
200
  prerelease: false
134
- version_requirements: *70122866488460
135
- - !ruby/object:Gem::Dependency
136
- name: coffee-script
137
- requirement: &70122866487840 !ruby/object:Gem::Requirement
201
+ type: :runtime
202
+ requirement: &id012 !ruby/object:Gem::Requirement
138
203
  none: false
139
- requirements:
204
+ requirements:
140
205
  - - ~>
141
- - !ruby/object:Gem::Version
206
+ - !ruby/object:Gem::Version
207
+ hash: 7
208
+ segments:
209
+ - 2
210
+ - 2
211
+ - 0
142
212
  version: 2.2.0
143
- type: :runtime
213
+ name: coffee-script
214
+ version_requirements: *id012
215
+ - !ruby/object:Gem::Dependency
144
216
  prerelease: false
145
- version_requirements: *70122866487840
146
- - !ruby/object:Gem::Dependency
147
- name: execjs
148
- requirement: &70122866487220 !ruby/object:Gem::Requirement
217
+ type: :runtime
218
+ requirement: &id013 !ruby/object:Gem::Requirement
149
219
  none: false
150
- requirements:
220
+ requirements:
151
221
  - - ~>
152
- - !ruby/object:Gem::Version
222
+ - !ruby/object:Gem::Version
223
+ hash: 17
224
+ segments:
225
+ - 1
226
+ - 2
227
+ - 7
153
228
  version: 1.2.7
154
- type: :runtime
229
+ name: execjs
230
+ version_requirements: *id013
231
+ - !ruby/object:Gem::Dependency
155
232
  prerelease: false
156
- version_requirements: *70122866487220
157
- - !ruby/object:Gem::Dependency
158
- name: sprockets
159
- requirement: &70122866486620 !ruby/object:Gem::Requirement
233
+ type: :runtime
234
+ requirement: &id014 !ruby/object:Gem::Requirement
160
235
  none: false
161
- requirements:
236
+ requirements:
162
237
  - - ~>
163
- - !ruby/object:Gem::Version
238
+ - !ruby/object:Gem::Version
239
+ hash: 15
240
+ segments:
241
+ - 2
242
+ - 1
243
+ - 2
164
244
  version: 2.1.2
165
- type: :runtime
245
+ name: sprockets
246
+ version_requirements: *id014
247
+ - !ruby/object:Gem::Dependency
166
248
  prerelease: false
167
- version_requirements: *70122866486620
168
- - !ruby/object:Gem::Dependency
169
- name: sprockets-sass
170
- requirement: &70122866486080 !ruby/object:Gem::Requirement
249
+ type: :runtime
250
+ requirement: &id015 !ruby/object:Gem::Requirement
171
251
  none: false
172
- requirements:
252
+ requirements:
173
253
  - - ~>
174
- - !ruby/object:Gem::Version
254
+ - !ruby/object:Gem::Version
255
+ hash: 11
256
+ segments:
257
+ - 0
258
+ - 5
259
+ - 0
175
260
  version: 0.5.0
176
- type: :runtime
261
+ name: sprockets-sass
262
+ version_requirements: *id015
263
+ - !ruby/object:Gem::Dependency
177
264
  prerelease: false
178
- version_requirements: *70122866486080
179
- - !ruby/object:Gem::Dependency
180
- name: guard
181
- requirement: &70122866485560 !ruby/object:Gem::Requirement
265
+ type: :runtime
266
+ requirement: &id016 !ruby/object:Gem::Requirement
182
267
  none: false
183
- requirements:
268
+ requirements:
184
269
  - - ~>
185
- - !ruby/object:Gem::Version
270
+ - !ruby/object:Gem::Version
271
+ hash: 47
272
+ segments:
273
+ - 0
274
+ - 8
275
+ - 8
186
276
  version: 0.8.8
187
- type: :runtime
277
+ name: guard
278
+ version_requirements: *id016
279
+ - !ruby/object:Gem::Dependency
188
280
  prerelease: false
189
- version_requirements: *70122866485560
190
- - !ruby/object:Gem::Dependency
191
- name: rb-fsevent
192
- requirement: &70122866485120 !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
198
281
  type: :runtime
282
+ requirement: &id017 !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ~>
286
+ - !ruby/object:Gem::Version
287
+ hash: 15
288
+ segments:
289
+ - 2
290
+ - 0
291
+ - 0
292
+ version: 2.0.0
293
+ name: redcarpet
294
+ version_requirements: *id017
295
+ - !ruby/object:Gem::Dependency
199
296
  prerelease: false
200
- version_requirements: *70122866485120
201
- - !ruby/object:Gem::Dependency
202
- name: slim
203
- requirement: &70122866484200 !ruby/object:Gem::Requirement
297
+ type: :runtime
298
+ requirement: &id018 !ruby/object:Gem::Requirement
204
299
  none: false
205
- requirements:
206
- - - ! '>='
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- type: :development
300
+ requirements:
301
+ - - ">="
302
+ - !ruby/object:Gem::Version
303
+ hash: 3
304
+ segments:
305
+ - 0
306
+ version: "0"
307
+ name: rb-fsevent
308
+ version_requirements: *id018
309
+ - !ruby/object:Gem::Dependency
210
310
  prerelease: false
211
- version_requirements: *70122866484200
212
- - !ruby/object:Gem::Dependency
213
- name: maruku
214
- requirement: &70122866482840 !ruby/object:Gem::Requirement
311
+ type: :development
312
+ requirement: &id019 !ruby/object:Gem::Requirement
215
313
  none: false
216
- requirements:
217
- - - ! '>='
218
- - !ruby/object:Gem::Version
219
- version: '0'
314
+ requirements:
315
+ - - ">="
316
+ - !ruby/object:Gem::Version
317
+ hash: 3
318
+ segments:
319
+ - 0
320
+ version: "0"
321
+ name: slim
322
+ version_requirements: *id019
323
+ - !ruby/object:Gem::Dependency
324
+ prerelease: false
220
325
  type: :development
326
+ requirement: &id020 !ruby/object:Gem::Requirement
327
+ none: false
328
+ requirements:
329
+ - - ">="
330
+ - !ruby/object:Gem::Version
331
+ hash: 3
332
+ segments:
333
+ - 0
334
+ version: "0"
335
+ name: sinatra
336
+ version_requirements: *id020
337
+ - !ruby/object:Gem::Dependency
221
338
  prerelease: false
222
- version_requirements: *70122866482840
223
- - !ruby/object:Gem::Dependency
224
- name: coffee-filter
225
- requirement: &70122866323340 !ruby/object:Gem::Requirement
339
+ type: :development
340
+ requirement: &id021 !ruby/object:Gem::Requirement
226
341
  none: false
227
- requirements:
342
+ requirements:
228
343
  - - ~>
229
- - !ruby/object:Gem::Version
344
+ - !ruby/object:Gem::Version
345
+ hash: 25
346
+ segments:
347
+ - 0
348
+ - 1
349
+ - 1
230
350
  version: 0.1.1
231
- type: :development
351
+ name: coffee-filter
352
+ version_requirements: *id021
353
+ - !ruby/object:Gem::Dependency
232
354
  prerelease: false
233
- version_requirements: *70122866323340
234
- - !ruby/object:Gem::Dependency
235
- name: liquid
236
- requirement: &70122866322580 !ruby/object:Gem::Requirement
355
+ type: :development
356
+ requirement: &id022 !ruby/object:Gem::Requirement
237
357
  none: false
238
- requirements:
358
+ requirements:
239
359
  - - ~>
240
- - !ruby/object:Gem::Version
360
+ - !ruby/object:Gem::Version
361
+ hash: 7
362
+ segments:
363
+ - 2
364
+ - 2
365
+ - 0
241
366
  version: 2.2.0
242
- type: :development
367
+ name: liquid
368
+ version_requirements: *id022
369
+ - !ruby/object:Gem::Dependency
243
370
  prerelease: false
244
- version_requirements: *70122866322580
245
- - !ruby/object:Gem::Dependency
246
- name: cucumber
247
- requirement: &70122866321980 !ruby/object:Gem::Requirement
371
+ type: :development
372
+ requirement: &id023 !ruby/object:Gem::Requirement
248
373
  none: false
249
- requirements:
374
+ requirements:
250
375
  - - ~>
251
- - !ruby/object:Gem::Version
376
+ - !ruby/object:Gem::Version
377
+ hash: 19
378
+ segments:
379
+ - 1
380
+ - 1
381
+ - 0
252
382
  version: 1.1.0
253
- type: :development
383
+ name: cucumber
384
+ version_requirements: *id023
385
+ - !ruby/object:Gem::Dependency
254
386
  prerelease: false
255
- version_requirements: *70122866321980
256
- - !ruby/object:Gem::Dependency
257
- name: rake
258
- requirement: &70122866321460 !ruby/object:Gem::Requirement
387
+ type: :development
388
+ requirement: &id024 !ruby/object:Gem::Requirement
259
389
  none: false
260
- requirements:
390
+ requirements:
261
391
  - - ~>
262
- - !ruby/object:Gem::Version
392
+ - !ruby/object:Gem::Version
393
+ hash: 63
394
+ segments:
395
+ - 0
396
+ - 9
397
+ - 2
263
398
  version: 0.9.2
264
- type: :development
399
+ name: rake
400
+ version_requirements: *id024
401
+ - !ruby/object:Gem::Dependency
265
402
  prerelease: false
266
- version_requirements: *70122866321460
267
- - !ruby/object:Gem::Dependency
268
- name: rspec
269
- requirement: &70122866320940 !ruby/object:Gem::Requirement
403
+ type: :development
404
+ requirement: &id025 !ruby/object:Gem::Requirement
270
405
  none: false
271
- requirements:
406
+ requirements:
272
407
  - - ~>
273
- - !ruby/object:Gem::Version
408
+ - !ruby/object:Gem::Version
409
+ hash: 19
410
+ segments:
411
+ - 2
412
+ - 7
413
+ - 0
274
414
  version: 2.7.0
275
- type: :development
415
+ name: rspec
416
+ version_requirements: *id025
417
+ - !ruby/object:Gem::Dependency
276
418
  prerelease: false
277
- version_requirements: *70122866320940
278
- - !ruby/object:Gem::Dependency
279
- name: rdoc
280
- requirement: &70122866320420 !ruby/object:Gem::Requirement
419
+ type: :development
420
+ requirement: &id026 !ruby/object:Gem::Requirement
281
421
  none: false
282
- requirements:
422
+ requirements:
283
423
  - - ~>
284
- - !ruby/object:Gem::Version
424
+ - !ruby/object:Gem::Version
425
+ hash: 43
426
+ segments:
427
+ - 3
428
+ - 9
429
+ - 4
285
430
  version: 3.9.4
286
- type: :development
431
+ name: rdoc
432
+ version_requirements: *id026
433
+ - !ruby/object:Gem::Dependency
287
434
  prerelease: false
288
- version_requirements: *70122866320420
289
- - !ruby/object:Gem::Dependency
290
- name: yard
291
- requirement: &70122866319960 !ruby/object:Gem::Requirement
292
- none: false
293
- requirements:
294
- - - ! '>='
295
- - !ruby/object:Gem::Version
296
- version: '0'
297
435
  type: :development
298
- prerelease: false
299
- version_requirements: *70122866319960
300
- - !ruby/object:Gem::Dependency
301
- name: jquery-rails
302
- requirement: &70122866319420 !ruby/object:Gem::Requirement
436
+ requirement: &id027 !ruby/object:Gem::Requirement
303
437
  none: false
304
- requirements:
305
- - - ! '>='
306
- - !ruby/object:Gem::Version
307
- version: '0'
438
+ requirements:
439
+ - - ">="
440
+ - !ruby/object:Gem::Version
441
+ hash: 3
442
+ segments:
443
+ - 0
444
+ version: "0"
445
+ name: yard
446
+ version_requirements: *id027
447
+ - !ruby/object:Gem::Dependency
448
+ prerelease: false
308
449
  type: :development
450
+ requirement: &id028 !ruby/object:Gem::Requirement
451
+ none: false
452
+ requirements:
453
+ - - ">="
454
+ - !ruby/object:Gem::Version
455
+ hash: 3
456
+ segments:
457
+ - 0
458
+ version: "0"
459
+ name: jquery-rails
460
+ version_requirements: *id028
461
+ - !ruby/object:Gem::Dependency
309
462
  prerelease: false
310
- version_requirements: *70122866319420
311
- - !ruby/object:Gem::Dependency
312
- name: bootstrap-rails
313
- requirement: &70122866318800 !ruby/object:Gem::Requirement
463
+ type: :development
464
+ requirement: &id029 !ruby/object:Gem::Requirement
314
465
  none: false
315
- requirements:
316
- - - =
317
- - !ruby/object:Gem::Version
466
+ requirements:
467
+ - - "="
468
+ - !ruby/object:Gem::Version
469
+ hash: 21
470
+ segments:
471
+ - 0
472
+ - 0
473
+ - 5
318
474
  version: 0.0.5
319
- type: :development
320
- prerelease: false
321
- version_requirements: *70122866318800
322
- description: A static site generator based on Sinatra. Providing dozens of templating
323
- languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification,
324
- compression, cache busting, Yaml data (and more) an easy part of your development
325
- cycle.
326
- email:
475
+ name: bootstrap-rails
476
+ version_requirements: *id029
477
+ description: A static site generator based on Sinatra. Providing dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle.
478
+ email:
327
479
  - me@tdreyno.com
328
- executables:
480
+ executables:
329
481
  - middleman
330
482
  extensions: []
483
+
331
484
  extra_rdoc_files: []
332
- files:
485
+
486
+ files:
333
487
  - .gemtest
334
488
  - .gitignore
335
489
  - .travis.yml
336
490
  - .yardopts
337
- - CHANGELOG
491
+ - CHANGELOG.md
338
492
  - Gemfile
339
493
  - LICENSE
340
494
  - README.md
@@ -349,6 +503,7 @@ files:
349
503
  - features/clean_build.feature
350
504
  - features/coffee-script.feature
351
505
  - features/content_for.feature
506
+ - features/current_page_request_path_backwards.feature
352
507
  - features/custom_layout_engines.feature
353
508
  - features/data.feature
354
509
  - features/directory_index.feature
@@ -359,13 +514,18 @@ files:
359
514
  - features/generator.feature
360
515
  - features/helpers_auto_javascript_include_tag.feature
361
516
  - features/helpers_auto_stylesheet_link_tag.feature
517
+ - features/helpers_external.feature
518
+ - features/helpers_lorem.feature
362
519
  - features/helpers_page_classes.feature
520
+ - features/instance_vars.feature
363
521
  - features/liquid.feature
364
522
  - features/markdown.feature
365
523
  - features/minify_css.feature
366
524
  - features/minify_javascript.feature
525
+ - features/mount_rack.feature
367
526
  - features/page_alias_and_layouts.feature
368
527
  - features/partials.feature
528
+ - features/preview_changes.feature
369
529
  - features/relative_assets.feature
370
530
  - features/scss-support.feature
371
531
  - features/slim.feature
@@ -374,6 +534,9 @@ files:
374
534
  - features/step_definitions/asset_host_steps.rb
375
535
  - features/step_definitions/page_layout_steps.rb
376
536
  - features/support/env.rb
537
+ - features/wildcard_page_helper.feature
538
+ - fixtures/build-with-errors-app/config.rb
539
+ - fixtures/build-with-errors-app/source/index.html.erb
377
540
  - fixtures/chained-app/config.rb
378
541
  - fixtures/chained-app/data/article.yml
379
542
  - fixtures/chained-app/source/index.html.markdown.erb
@@ -389,6 +552,8 @@ files:
389
552
  - fixtures/clean-app/source/should_be_ignored2.html
390
553
  - fixtures/clean-app/source/should_be_ignored3.html
391
554
  - fixtures/clean-app/source/static.html
555
+ - fixtures/clean-dir-app/config.rb
556
+ - fixtures/clean-dir-app/source/about.html
392
557
  - fixtures/custom-layout-app/config.rb
393
558
  - fixtures/custom-layout-app/source/index.html.erb
394
559
  - fixtures/custom-layout-app/source/layout.haml
@@ -399,9 +564,17 @@ files:
399
564
  - fixtures/different-engine-layout/config.rb
400
565
  - fixtures/different-engine-layout/source/index.html.haml
401
566
  - fixtures/different-engine-layout/source/layout.erb
567
+ - fixtures/different-engine-partial/config.rb
568
+ - fixtures/different-engine-partial/source/index.html.erb
569
+ - fixtures/different-engine-partial/source/layouts/layout.erb
570
+ - fixtures/different-engine-partial/source/shared/_footer.slim
571
+ - fixtures/different-engine-partial/source/shared/_header.erb
402
572
  - fixtures/engine-matching-layout/config.rb
403
573
  - fixtures/engine-matching-layout/source/index.html.erb
404
574
  - fixtures/engine-matching-layout/source/layout.erb
575
+ - fixtures/external-helpers/config.rb
576
+ - fixtures/external-helpers/lib/hello_helper.rb
577
+ - fixtures/external-helpers/source/index.html.erb
405
578
  - fixtures/fonts-app/config.rb
406
579
  - fixtures/fonts-app/source/fonts/StMarie-Thin.otf
407
580
  - fixtures/fonts-app/source/stylesheets/fonts.css.sass
@@ -417,6 +590,11 @@ files:
417
590
  - fixtures/indexable-app/source/leave_me_alone.html
418
591
  - fixtures/indexable-app/source/needs_index.html
419
592
  - fixtures/indexable-app/source/regular/index.html
593
+ - fixtures/instance-vars-app/config.rb
594
+ - fixtures/instance-vars-app/source/_vartial.erb
595
+ - fixtures/instance-vars-app/source/instance-var-set.html.erb
596
+ - fixtures/instance-vars-app/source/layout.erb
597
+ - fixtures/instance-vars-app/source/no-instance-var.html.erb
420
598
  - fixtures/manual-layout-missing/config.rb
421
599
  - fixtures/manual-layout-missing/source/index.html.erb
422
600
  - fixtures/manual-layout-override/config.rb
@@ -426,6 +604,16 @@ files:
426
604
  - fixtures/manual-layout/config.rb
427
605
  - fixtures/manual-layout/source/index.html.erb
428
606
  - fixtures/manual-layout/source/layouts/custom.erb
607
+ - fixtures/markdown-app/config.rb
608
+ - fixtures/markdown-app/source/autolink.html.markdown
609
+ - fixtures/markdown-app/source/fenced_code_blocks.html.markdown
610
+ - fixtures/markdown-app/source/index.html.markdown
611
+ - fixtures/markdown-app/source/no_intra_emphasis.html.markdown
612
+ - fixtures/markdown-app/source/smarty_pants.html.markdown
613
+ - fixtures/markdown-app/source/space_after_headers.html.markdown
614
+ - fixtures/markdown-app/source/strikethrough.html.markdown
615
+ - fixtures/markdown-app/source/superscript.html.markdown
616
+ - fixtures/markdown-app/source/tables.html.markdown
429
617
  - fixtures/multiple-layouts/config.rb
430
618
  - fixtures/multiple-layouts/source/index.html.erb
431
619
  - fixtures/multiple-layouts/source/layout.erb
@@ -443,9 +631,22 @@ files:
443
631
  - fixtures/partials-app/source/shared/_header.erb
444
632
  - fixtures/partials-app/source/sub/_local.erb
445
633
  - fixtures/partials-app/source/sub/index.html.erb
634
+ - fixtures/passthrough-app/config.rb
635
+ - fixtures/passthrough-app/source/.htaccess
636
+ - fixtures/passthrough-app/source/inline-coffeescript.html.haml
637
+ - fixtures/passthrough-app/source/inline-css.html.haml
638
+ - fixtures/passthrough-app/source/inline-js.html.haml
639
+ - fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee
640
+ - fixtures/passthrough-app/source/javascripts/js_test.js
641
+ - fixtures/passthrough-app/source/stylesheets/site.css.sass
642
+ - fixtures/preview-app/config.rb
643
+ - fixtures/preview-app/source/content.html.erb
644
+ - fixtures/preview-app/source/layout.erb
446
645
  - fixtures/relative-app/config.rb
447
646
  - fixtures/relative-app/source/images/blank.gif
448
647
  - fixtures/relative-app/source/stylesheets/relative_assets.css.sass
648
+ - fixtures/sinatra-app/config.rb
649
+ - fixtures/sinatra-app/source/index.html.erb
449
650
  - fixtures/sprockets-app/config.rb
450
651
  - fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss
451
652
  - fixtures/sprockets-app/source/library/css/plain.css
@@ -483,6 +684,8 @@ files:
483
684
  - fixtures/test-app/source/data2.html.liquid
484
685
  - fixtures/test-app/source/data3.html.erb
485
686
  - fixtures/test-app/source/former_padrino_test.html.haml
687
+ - fixtures/test-app/source/front-matter-2.php.erb
688
+ - fixtures/test-app/source/front-matter-change.html.erb
486
689
  - fixtures/test-app/source/front-matter.html.erb
487
690
  - fixtures/test-app/source/images/Child folder/regular_file(example).txt
488
691
  - fixtures/test-app/source/images/Chrome_Logo.svg
@@ -490,7 +693,7 @@ files:
490
693
  - fixtures/test-app/source/images/blank.gif
491
694
  - fixtures/test-app/source/images/cfb_tomb-perennial-energy.svgz
492
695
  - fixtures/test-app/source/img/blank.gif
493
- - fixtures/test-app/source/index.html.haml
696
+ - fixtures/test-app/source/index.html.slim
494
697
  - fixtures/test-app/source/inline-coffeescript.html.haml
495
698
  - fixtures/test-app/source/inline-css.html.haml
496
699
  - fixtures/test-app/source/inline-js.html.haml
@@ -502,6 +705,7 @@ files:
502
705
  - fixtures/test-app/source/javascripts/coffee_test.js.coffee
503
706
  - fixtures/test-app/source/javascripts/jquery.plugin.with.dots.js
504
707
  - fixtures/test-app/source/javascripts/jquery_base.js
708
+ - fixtures/test-app/source/javascripts/js_test.js
505
709
  - fixtures/test-app/source/javascripts/multiple_engines.js.coffee.erb
506
710
  - fixtures/test-app/source/javascripts/sprockets_base.js
507
711
  - fixtures/test-app/source/javascripts/sprockets_sub.js
@@ -509,12 +713,13 @@ files:
509
713
  - fixtures/test-app/source/layouts/content_for.erb
510
714
  - fixtures/test-app/source/layouts/custom.haml
511
715
  - fixtures/test-app/source/liquid_master.html.liquid
512
- - fixtures/test-app/source/markdown.html.markdown
716
+ - fixtures/test-app/source/lorem.html.erb
513
717
  - fixtures/test-app/source/needs_index.html
514
718
  - fixtures/test-app/source/page-classes.html.haml
515
719
  - fixtures/test-app/source/real.html
516
720
  - fixtures/test-app/source/real/index.html.erb
517
721
  - fixtures/test-app/source/relative_image.html.erb
722
+ - fixtures/test-app/source/request-path.html.erb
518
723
  - fixtures/test-app/source/services/index.html.haml
519
724
  - fixtures/test-app/source/should_be_ignored.html
520
725
  - fixtures/test-app/source/should_be_ignored2.html
@@ -538,6 +743,18 @@ files:
538
743
  - fixtures/test-app/source/sub1/page-classes.html.haml
539
744
  - fixtures/test-app/source/sub1/sub2/page-classes.html.haml
540
745
  - fixtures/test-app/source/tiny_src.html.haml
746
+ - fixtures/wildcard-app/config.rb
747
+ - fixtures/wildcard-app/source/admin/index.html.erb
748
+ - fixtures/wildcard-app/source/admin/page.html.erb
749
+ - fixtures/wildcard-app/source/index.html.erb
750
+ - fixtures/wildcard-app/source/layouts/admin.erb
751
+ - fixtures/wildcard-app/source/layouts/layout.erb
752
+ - fixtures/wildcard-directory-index-app/config.rb
753
+ - fixtures/wildcard-directory-index-app/source/admin/index.html.erb
754
+ - fixtures/wildcard-directory-index-app/source/admin/page.html.erb
755
+ - fixtures/wildcard-directory-index-app/source/index.html.erb
756
+ - fixtures/wildcard-directory-index-app/source/layouts/admin.erb
757
+ - fixtures/wildcard-directory-index-app/source/layouts/layout.erb
541
758
  - lib/middleman.rb
542
759
  - lib/middleman/base.rb
543
760
  - lib/middleman/builder.rb
@@ -553,6 +770,7 @@ files:
553
770
  - lib/middleman/core_extensions/front_matter.rb
554
771
  - lib/middleman/core_extensions/rendering.rb
555
772
  - lib/middleman/core_extensions/routing.rb
773
+ - lib/middleman/core_extensions/show_exceptions.rb
556
774
  - lib/middleman/core_extensions/sitemap.rb
557
775
  - lib/middleman/core_extensions/sprockets.rb
558
776
  - lib/middleman/extensions/asset_host.rb
@@ -578,6 +796,7 @@ files:
578
796
  - lib/middleman/step_definitions.rb
579
797
  - lib/middleman/step_definitions/builder_steps.rb
580
798
  - lib/middleman/step_definitions/generator_steps.rb
799
+ - lib/middleman/step_definitions/middleman_steps.rb
581
800
  - lib/middleman/step_definitions/server_steps.rb
582
801
  - lib/middleman/templates.rb
583
802
  - lib/middleman/templates/default.rb
@@ -872,35 +1091,43 @@ files:
872
1091
  - lib/middleman/version.rb
873
1092
  - middleman-x86-mingw32.gemspec
874
1093
  - middleman.gemspec
1094
+ has_rdoc: true
875
1095
  homepage: http://middlemanapp.com
876
- licenses:
1096
+ licenses:
877
1097
  - MIT
878
1098
  post_install_message:
879
1099
  rdoc_options: []
880
- require_paths:
1100
+
1101
+ require_paths:
881
1102
  - lib
882
- required_ruby_version: !ruby/object:Gem::Requirement
1103
+ required_ruby_version: !ruby/object:Gem::Requirement
883
1104
  none: false
884
- requirements:
885
- - - ! '>='
886
- - !ruby/object:Gem::Version
887
- version: '0'
888
- segments:
1105
+ requirements:
1106
+ - - ">="
1107
+ - !ruby/object:Gem::Version
1108
+ hash: 3
1109
+ segments:
889
1110
  - 0
890
- hash: -905616201432248626
891
- required_rubygems_version: !ruby/object:Gem::Requirement
1111
+ version: "0"
1112
+ required_rubygems_version: !ruby/object:Gem::Requirement
892
1113
  none: false
893
- requirements:
894
- - - ! '>'
895
- - !ruby/object:Gem::Version
1114
+ requirements:
1115
+ - - ">"
1116
+ - !ruby/object:Gem::Version
1117
+ hash: 25
1118
+ segments:
1119
+ - 1
1120
+ - 3
1121
+ - 1
896
1122
  version: 1.3.1
897
1123
  requirements: []
1124
+
898
1125
  rubyforge_project:
899
- rubygems_version: 1.8.11
1126
+ rubygems_version: 1.6.2
900
1127
  signing_key:
901
1128
  specification_version: 3
902
1129
  summary: Hand-crafted frontend development
903
- test_files:
1130
+ test_files:
904
1131
  - features/asset_host.feature
905
1132
  - features/auto_layout.feature
906
1133
  - features/automatic_image_sizes.feature
@@ -910,6 +1137,7 @@ test_files:
910
1137
  - features/clean_build.feature
911
1138
  - features/coffee-script.feature
912
1139
  - features/content_for.feature
1140
+ - features/current_page_request_path_backwards.feature
913
1141
  - features/custom_layout_engines.feature
914
1142
  - features/data.feature
915
1143
  - features/directory_index.feature
@@ -920,13 +1148,18 @@ test_files:
920
1148
  - features/generator.feature
921
1149
  - features/helpers_auto_javascript_include_tag.feature
922
1150
  - features/helpers_auto_stylesheet_link_tag.feature
1151
+ - features/helpers_external.feature
1152
+ - features/helpers_lorem.feature
923
1153
  - features/helpers_page_classes.feature
1154
+ - features/instance_vars.feature
924
1155
  - features/liquid.feature
925
1156
  - features/markdown.feature
926
1157
  - features/minify_css.feature
927
1158
  - features/minify_javascript.feature
1159
+ - features/mount_rack.feature
928
1160
  - features/page_alias_and_layouts.feature
929
1161
  - features/partials.feature
1162
+ - features/preview_changes.feature
930
1163
  - features/relative_assets.feature
931
1164
  - features/scss-support.feature
932
1165
  - features/slim.feature
@@ -935,6 +1168,9 @@ test_files:
935
1168
  - features/step_definitions/asset_host_steps.rb
936
1169
  - features/step_definitions/page_layout_steps.rb
937
1170
  - features/support/env.rb
1171
+ - features/wildcard_page_helper.feature
1172
+ - fixtures/build-with-errors-app/config.rb
1173
+ - fixtures/build-with-errors-app/source/index.html.erb
938
1174
  - fixtures/chained-app/config.rb
939
1175
  - fixtures/chained-app/data/article.yml
940
1176
  - fixtures/chained-app/source/index.html.markdown.erb
@@ -950,6 +1186,8 @@ test_files:
950
1186
  - fixtures/clean-app/source/should_be_ignored2.html
951
1187
  - fixtures/clean-app/source/should_be_ignored3.html
952
1188
  - fixtures/clean-app/source/static.html
1189
+ - fixtures/clean-dir-app/config.rb
1190
+ - fixtures/clean-dir-app/source/about.html
953
1191
  - fixtures/custom-layout-app/config.rb
954
1192
  - fixtures/custom-layout-app/source/index.html.erb
955
1193
  - fixtures/custom-layout-app/source/layout.haml
@@ -960,9 +1198,17 @@ test_files:
960
1198
  - fixtures/different-engine-layout/config.rb
961
1199
  - fixtures/different-engine-layout/source/index.html.haml
962
1200
  - fixtures/different-engine-layout/source/layout.erb
1201
+ - fixtures/different-engine-partial/config.rb
1202
+ - fixtures/different-engine-partial/source/index.html.erb
1203
+ - fixtures/different-engine-partial/source/layouts/layout.erb
1204
+ - fixtures/different-engine-partial/source/shared/_footer.slim
1205
+ - fixtures/different-engine-partial/source/shared/_header.erb
963
1206
  - fixtures/engine-matching-layout/config.rb
964
1207
  - fixtures/engine-matching-layout/source/index.html.erb
965
1208
  - fixtures/engine-matching-layout/source/layout.erb
1209
+ - fixtures/external-helpers/config.rb
1210
+ - fixtures/external-helpers/lib/hello_helper.rb
1211
+ - fixtures/external-helpers/source/index.html.erb
966
1212
  - fixtures/fonts-app/config.rb
967
1213
  - fixtures/fonts-app/source/fonts/StMarie-Thin.otf
968
1214
  - fixtures/fonts-app/source/stylesheets/fonts.css.sass
@@ -978,6 +1224,11 @@ test_files:
978
1224
  - fixtures/indexable-app/source/leave_me_alone.html
979
1225
  - fixtures/indexable-app/source/needs_index.html
980
1226
  - fixtures/indexable-app/source/regular/index.html
1227
+ - fixtures/instance-vars-app/config.rb
1228
+ - fixtures/instance-vars-app/source/_vartial.erb
1229
+ - fixtures/instance-vars-app/source/instance-var-set.html.erb
1230
+ - fixtures/instance-vars-app/source/layout.erb
1231
+ - fixtures/instance-vars-app/source/no-instance-var.html.erb
981
1232
  - fixtures/manual-layout-missing/config.rb
982
1233
  - fixtures/manual-layout-missing/source/index.html.erb
983
1234
  - fixtures/manual-layout-override/config.rb
@@ -987,6 +1238,16 @@ test_files:
987
1238
  - fixtures/manual-layout/config.rb
988
1239
  - fixtures/manual-layout/source/index.html.erb
989
1240
  - fixtures/manual-layout/source/layouts/custom.erb
1241
+ - fixtures/markdown-app/config.rb
1242
+ - fixtures/markdown-app/source/autolink.html.markdown
1243
+ - fixtures/markdown-app/source/fenced_code_blocks.html.markdown
1244
+ - fixtures/markdown-app/source/index.html.markdown
1245
+ - fixtures/markdown-app/source/no_intra_emphasis.html.markdown
1246
+ - fixtures/markdown-app/source/smarty_pants.html.markdown
1247
+ - fixtures/markdown-app/source/space_after_headers.html.markdown
1248
+ - fixtures/markdown-app/source/strikethrough.html.markdown
1249
+ - fixtures/markdown-app/source/superscript.html.markdown
1250
+ - fixtures/markdown-app/source/tables.html.markdown
990
1251
  - fixtures/multiple-layouts/config.rb
991
1252
  - fixtures/multiple-layouts/source/index.html.erb
992
1253
  - fixtures/multiple-layouts/source/layout.erb
@@ -1004,9 +1265,22 @@ test_files:
1004
1265
  - fixtures/partials-app/source/shared/_header.erb
1005
1266
  - fixtures/partials-app/source/sub/_local.erb
1006
1267
  - fixtures/partials-app/source/sub/index.html.erb
1268
+ - fixtures/passthrough-app/config.rb
1269
+ - fixtures/passthrough-app/source/.htaccess
1270
+ - fixtures/passthrough-app/source/inline-coffeescript.html.haml
1271
+ - fixtures/passthrough-app/source/inline-css.html.haml
1272
+ - fixtures/passthrough-app/source/inline-js.html.haml
1273
+ - fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee
1274
+ - fixtures/passthrough-app/source/javascripts/js_test.js
1275
+ - fixtures/passthrough-app/source/stylesheets/site.css.sass
1276
+ - fixtures/preview-app/config.rb
1277
+ - fixtures/preview-app/source/content.html.erb
1278
+ - fixtures/preview-app/source/layout.erb
1007
1279
  - fixtures/relative-app/config.rb
1008
1280
  - fixtures/relative-app/source/images/blank.gif
1009
1281
  - fixtures/relative-app/source/stylesheets/relative_assets.css.sass
1282
+ - fixtures/sinatra-app/config.rb
1283
+ - fixtures/sinatra-app/source/index.html.erb
1010
1284
  - fixtures/sprockets-app/config.rb
1011
1285
  - fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss
1012
1286
  - fixtures/sprockets-app/source/library/css/plain.css
@@ -1044,6 +1318,8 @@ test_files:
1044
1318
  - fixtures/test-app/source/data2.html.liquid
1045
1319
  - fixtures/test-app/source/data3.html.erb
1046
1320
  - fixtures/test-app/source/former_padrino_test.html.haml
1321
+ - fixtures/test-app/source/front-matter-2.php.erb
1322
+ - fixtures/test-app/source/front-matter-change.html.erb
1047
1323
  - fixtures/test-app/source/front-matter.html.erb
1048
1324
  - fixtures/test-app/source/images/Child folder/regular_file(example).txt
1049
1325
  - fixtures/test-app/source/images/Chrome_Logo.svg
@@ -1051,7 +1327,7 @@ test_files:
1051
1327
  - fixtures/test-app/source/images/blank.gif
1052
1328
  - fixtures/test-app/source/images/cfb_tomb-perennial-energy.svgz
1053
1329
  - fixtures/test-app/source/img/blank.gif
1054
- - fixtures/test-app/source/index.html.haml
1330
+ - fixtures/test-app/source/index.html.slim
1055
1331
  - fixtures/test-app/source/inline-coffeescript.html.haml
1056
1332
  - fixtures/test-app/source/inline-css.html.haml
1057
1333
  - fixtures/test-app/source/inline-js.html.haml
@@ -1063,6 +1339,7 @@ test_files:
1063
1339
  - fixtures/test-app/source/javascripts/coffee_test.js.coffee
1064
1340
  - fixtures/test-app/source/javascripts/jquery.plugin.with.dots.js
1065
1341
  - fixtures/test-app/source/javascripts/jquery_base.js
1342
+ - fixtures/test-app/source/javascripts/js_test.js
1066
1343
  - fixtures/test-app/source/javascripts/multiple_engines.js.coffee.erb
1067
1344
  - fixtures/test-app/source/javascripts/sprockets_base.js
1068
1345
  - fixtures/test-app/source/javascripts/sprockets_sub.js
@@ -1070,12 +1347,13 @@ test_files:
1070
1347
  - fixtures/test-app/source/layouts/content_for.erb
1071
1348
  - fixtures/test-app/source/layouts/custom.haml
1072
1349
  - fixtures/test-app/source/liquid_master.html.liquid
1073
- - fixtures/test-app/source/markdown.html.markdown
1350
+ - fixtures/test-app/source/lorem.html.erb
1074
1351
  - fixtures/test-app/source/needs_index.html
1075
1352
  - fixtures/test-app/source/page-classes.html.haml
1076
1353
  - fixtures/test-app/source/real.html
1077
1354
  - fixtures/test-app/source/real/index.html.erb
1078
1355
  - fixtures/test-app/source/relative_image.html.erb
1356
+ - fixtures/test-app/source/request-path.html.erb
1079
1357
  - fixtures/test-app/source/services/index.html.haml
1080
1358
  - fixtures/test-app/source/should_be_ignored.html
1081
1359
  - fixtures/test-app/source/should_be_ignored2.html
@@ -1099,4 +1377,15 @@ test_files:
1099
1377
  - fixtures/test-app/source/sub1/page-classes.html.haml
1100
1378
  - fixtures/test-app/source/sub1/sub2/page-classes.html.haml
1101
1379
  - fixtures/test-app/source/tiny_src.html.haml
1102
- has_rdoc:
1380
+ - fixtures/wildcard-app/config.rb
1381
+ - fixtures/wildcard-app/source/admin/index.html.erb
1382
+ - fixtures/wildcard-app/source/admin/page.html.erb
1383
+ - fixtures/wildcard-app/source/index.html.erb
1384
+ - fixtures/wildcard-app/source/layouts/admin.erb
1385
+ - fixtures/wildcard-app/source/layouts/layout.erb
1386
+ - fixtures/wildcard-directory-index-app/config.rb
1387
+ - fixtures/wildcard-directory-index-app/source/admin/index.html.erb
1388
+ - fixtures/wildcard-directory-index-app/source/admin/page.html.erb
1389
+ - fixtures/wildcard-directory-index-app/source/index.html.erb
1390
+ - fixtures/wildcard-directory-index-app/source/layouts/admin.erb
1391
+ - fixtures/wildcard-directory-index-app/source/layouts/layout.erb