prep beta.2

This commit is contained in:
Thomas Reynolds 2015-05-04 11:05:00 -07:00
parent 4626193f97
commit 486d34a2c1
4 changed files with 13 additions and 6 deletions

View file

@ -1,6 +1,14 @@
master master
=== ===
# 4.0.0.beta.2
* Fixed regression causing exceptions to be silently thrown away outside of `--verbose` mode in the dev server.
* Pull in `--ssl` option from stable.
* Replace `hooks` gem with custom callback solution.
# 4.0.0.beta.1
* Add `resources` class method to extensions to allow simple string-based resource generation. * Add `resources` class method to extensions to allow simple string-based resource generation.
* rename `app.add_to_instance` to `Extension.expose_to_application` for adding extension-local methods to the shared app instance. * rename `app.add_to_instance` to `Extension.expose_to_application` for adding extension-local methods to the shared app instance.
* rename `app.add_to_config_context` to `Extension.expose_to_config` for adding extension-local methods to the sandboxed scope of `config.rb` * rename `app.add_to_config_context` to `Extension.expose_to_config` for adding extension-local methods to the sandboxed scope of `config.rb`

View file

@ -294,11 +294,11 @@ module Middleman
end end
env_config = File.join(root, 'environments', "#{config[:environment]}.rb") env_config = File.join(root, 'environments', "#{config[:environment]}.rb")
if File.exist? env_config return unless File.exist? env_config
logger.debug "== Reading: #{config[:environment]} config" logger.debug "== Reading: #{config[:environment]} config"
config_context.instance_eval File.read(env_config), env_config, 1 config_context.instance_eval File.read(env_config), env_config, 1
end end
end
# Clean up missing Tilt exts # Clean up missing Tilt exts
def prune_tilt_templates def prune_tilt_templates

View file

@ -1,6 +1,5 @@
require 'rack/showexceptions' require 'rack/showexceptions'
# Support rack/showexceptions during development # Support rack/showexceptions during development
module Middleman::CoreExtensions module Middleman::CoreExtensions
class ShowExceptions < ::Middleman::Extension class ShowExceptions < ::Middleman::Extension

View file

@ -1,5 +1,5 @@
module Middleman module Middleman
# Current Version # Current Version
# @return [String] # @return [String]
VERSION = '4.0.0.beta.1' unless const_defined?(:VERSION) VERSION = '4.0.0.beta.2' unless const_defined?(:VERSION)
end end