From c602df30ddb45f00bfd9b5abd894017d002032e4 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sat, 6 Apr 2013 22:55:49 -0700 Subject: [PATCH] Fix some 1.8.7 issues --- Gemfile | 1 + middleman-more/features/markdown.feature | 3 ++- .../lib/middleman-more/extensions/automatic_image_sizes.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index ca567fe4..fa8264cd 100644 --- a/Gemfile +++ b/Gemfile @@ -12,6 +12,7 @@ gem "cucumber", "~> 1.2.1" gem "fivemat", "~> 1.1.0" gem "aruba", "~> 0.5.1" gem "rspec", "~> 2.12" +gem 'gherkin', '<= 2.11.6' # for annoying "eval" warnings # Optional middleman dependencies, included for tests gem "sinatra" diff --git a/middleman-more/features/markdown.feature b/middleman-more/features/markdown.feature index ef8de3ea..b9cc0b23 100644 --- a/middleman-more/features/markdown.feature +++ b/middleman-more/features/markdown.feature @@ -5,7 +5,8 @@ Feature: Markdown support Given the Server is running at "markdown-app" When I go to "/index.html" Then I should see "

Hello World

" - + + @encoding Scenario: Markdown extensions (Maruku) Given the Server is running at "markdown-app" When I go to "/smarty_pants.html" diff --git a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb index da7e5a39..45e6df67 100644 --- a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -54,7 +54,7 @@ module Middleman end end - params = params.delete_if {|key| key == :supported_extensions } + params.delete(:supported_extensions) super(path, params) end