begin prepping beta.1

remove_hooks
Thomas Reynolds 2015-02-07 13:38:29 -08:00
parent b666a7aaee
commit e4b7d4fff0
7 changed files with 8 additions and 9 deletions

View File

@ -47,7 +47,7 @@ module Middleman::Cli
end
dir = Dir.mktmpdir
begin
branch_cmd = repo_branch ? "-b #{repo_branch} " : ''

View File

@ -187,7 +187,7 @@ module Middleman
end
def key?(key)
( @local_data.keys + @local_sources.keys + @callback_sources.keys ).include?(key.to_s)
(@local_data.keys + @local_sources.keys + @callback_sources.keys).include?(key.to_s)
end
alias_method :has_key?, :key?

View File

@ -71,9 +71,9 @@ module Middleman
ProxyResource.new(app.sitemap, path, target).tap do |p|
md = metadata.dup
p.add_metadata(
locals: md.delete(:locals) || {},
page: md.delete(:data) || {},
options: md
locals: md.delete(:locals) || {},
page: md.delete(:data) || {},
options: md
)
end
end

View File

@ -274,7 +274,7 @@ module Middleman
types = Set.new([@type])
::Middleman::SourceFile.new(
path.relative_path_from(@directory), path, @directory, types)
path.relative_path_from(@directory), path, @directory, types)
end
# Notify callbacks for a file given an array of callbacks

View File

@ -81,7 +81,6 @@ module Middleman
self[method]
end
end
end
end
end

View File

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

View File

@ -51,5 +51,5 @@ Gem::Specification.new do |s|
s.add_dependency('execjs', ['~> 2.0'])
# Testing
s.add_dependency('contracts', ['~> 0.4'])
s.add_dependency('contracts', ['~> 0.5.0'])
end