Skip to content

Commit

Permalink
Support Middleman 4
Browse files Browse the repository at this point in the history
Attempting to generate a Middleman site with Proteus using [Middleman
4][1] resulted in several errors when starting the server.

This resolves those errors by:

* Using an [updated syntax][2] for registering extensions
* Updating middleman-deploy to [an alpha version that supports Middleman
  4][3]

[1]: https://middlemanapp.com/basics/upgrade-v4/
[2]: https://middlemanapp.com/advanced/custom_extensions/#basic-extension
[3]: karlfreeman/middleman-deploy#100 (comment)
  • Loading branch information
reshleman committed Dec 22, 2015
1 parent 07bb558 commit dd2d2a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# the following line to use "https"
source "http://rubygems.org"

gem "middleman"
gem "middleman", ">= 4.0.0"
gem "middleman-autoprefixer"
gem "middleman-deploy"
gem "middleman-deploy", "= 2.0.0.pre.alpha"
gem "middleman-livereload"
gem "bourbon"
gem "neat"
2 changes: 1 addition & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

activate :deploy do |deploy|
deploy.build_before = true
deploy.method = :git
deploy.deploy_method = :git
end

helpers do
Expand Down
2 changes: 1 addition & 1 deletion extensions/views.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Middleman::Extensions::ViewsDirectory < Middleman::Extension
register :views
::Middleman::Extensions.register(:views, self)
option :views_dir, 'views', 'Directory for site views'

def manipulate_resource_list resources
Expand Down

0 comments on commit dd2d2a0

Please sign in to comment.