begin prepping beta.1
This commit is contained in:
parent
b666a7aaee
commit
e4b7d4fff0
|
@ -187,7 +187,7 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
def key?(key)
|
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
|
end
|
||||||
|
|
||||||
alias_method :has_key?, :key?
|
alias_method :has_key?, :key?
|
||||||
|
|
|
@ -71,9 +71,9 @@ module Middleman
|
||||||
ProxyResource.new(app.sitemap, path, target).tap do |p|
|
ProxyResource.new(app.sitemap, path, target).tap do |p|
|
||||||
md = metadata.dup
|
md = metadata.dup
|
||||||
p.add_metadata(
|
p.add_metadata(
|
||||||
locals: md.delete(:locals) || {},
|
locals: md.delete(:locals) || {},
|
||||||
page: md.delete(:data) || {},
|
page: md.delete(:data) || {},
|
||||||
options: md
|
options: md
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -274,7 +274,7 @@ module Middleman
|
||||||
types = Set.new([@type])
|
types = Set.new([@type])
|
||||||
|
|
||||||
::Middleman::SourceFile.new(
|
::Middleman::SourceFile.new(
|
||||||
path.relative_path_from(@directory), path, @directory, types)
|
path.relative_path_from(@directory), path, @directory, types)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Notify callbacks for a file given an array of callbacks
|
# Notify callbacks for a file given an array of callbacks
|
||||||
|
|
|
@ -81,7 +81,6 @@ module Middleman
|
||||||
self[method]
|
self[method]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module Middleman
|
module Middleman
|
||||||
# Current Version
|
# Current Version
|
||||||
# @return [String]
|
# @return [String]
|
||||||
VERSION = '4.0.0.alpha.6' unless const_defined?(:VERSION)
|
VERSION = '4.0.0.beta.1' unless const_defined?(:VERSION)
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,5 +51,5 @@ Gem::Specification.new do |s|
|
||||||
s.add_dependency('execjs', ['~> 2.0'])
|
s.add_dependency('execjs', ['~> 2.0'])
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
s.add_dependency('contracts', ['~> 0.4'])
|
s.add_dependency('contracts', ['~> 0.5.0'])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue