move vendored gems into shared root
This commit is contained in:
parent
7a227b8bac
commit
5b8c7a2494
|
@ -1,5 +1,5 @@
|
||||||
middleman-*/lib/**/*.rb
|
middleman-*/lib/**/*.rb
|
||||||
--exclude middleman-core/lib/middleman-core/vendor/
|
--exclude middleman-core/lib/vendored-middleman-deps/
|
||||||
--exclude middleman-core/lib/middleman-core/extensions/automatic_image_sizes/fastimage.rb
|
--exclude middleman-core/lib/middleman-core/extensions/automatic_image_sizes/fastimage.rb
|
||||||
--exclude middleman-core/lib/middleman-core/step_definitions
|
--exclude middleman-core/lib/middleman-core/step_definitions
|
||||||
--exclude middleman-core/lib/middleman-core/templates/default/
|
--exclude middleman-core/lib/middleman-core/templates/default/
|
||||||
|
|
3
Gemfile
3
Gemfile
|
@ -27,6 +27,9 @@ platforms :jruby do
|
||||||
gem "therubyrhino"
|
gem "therubyrhino"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Code Quality
|
||||||
|
gem "cane", :platforms => [:mri_19, :mri_20], :require => false
|
||||||
|
|
||||||
# Middleman itself
|
# Middleman itself
|
||||||
gem "middleman-core", :path => "middleman-core"
|
gem "middleman-core", :path => "middleman-core"
|
||||||
gem "middleman-more", :path => "middleman-more"
|
gem "middleman-more", :path => "middleman-more"
|
||||||
|
|
18
Rakefile
18
Rakefile
|
@ -94,12 +94,18 @@ task :spec do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# desc "Rune cane for all middleman gems"
|
begin
|
||||||
# task :cane do
|
require 'cane/rake_task'
|
||||||
# GEM_PATHS.each do |g|
|
|
||||||
# sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S cane"
|
desc "Run cane to check quality metrics"
|
||||||
# end
|
Cane::RakeTask.new(:quality) do |cane|
|
||||||
# end
|
cane.no_style = true
|
||||||
|
cane.no_doc = true
|
||||||
|
cane.abc_glob = "middleman*/lib/middleman*/**/*.rb"
|
||||||
|
end
|
||||||
|
rescue LoadError
|
||||||
|
# warn "cane not available, quality task not provided."
|
||||||
|
end
|
||||||
|
|
||||||
desc "Run tests for all middleman gems"
|
desc "Run tests for all middleman gems"
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
|
@ -10,7 +10,7 @@ require "active_support/core_ext/integer/inflections"
|
||||||
require "active_support/core_ext/float/rounding"
|
require "active_support/core_ext/float/rounding"
|
||||||
|
|
||||||
# Simple callback library
|
# Simple callback library
|
||||||
require "middleman-core/vendor/hooks-0.2.0/lib/hooks"
|
require "vendored-middleman-deps/hooks-0.2.0/lib/hooks"
|
||||||
|
|
||||||
require "middleman-core/sitemap"
|
require "middleman-core/sitemap"
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
||||||
super
|
super
|
||||||
|
|
||||||
require 'active_support/core_ext/object/to_query'
|
require 'active_support/core_ext/object/to_query'
|
||||||
require 'middleman-more/vendor/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
require 'vendored-middleman-deps/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
||||||
require 'middleman-more/vendor/padrino-helpers-0.10.7/lib/padrino-helpers'
|
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
||||||
|
|
||||||
app.helpers ::Padrino::Helpers::OutputHelpers
|
app.helpers ::Padrino::Helpers::OutputHelpers
|
||||||
app.helpers ::Padrino::Helpers::TagHelpers
|
app.helpers ::Padrino::Helpers::TagHelpers
|
||||||
|
|
|
@ -5,7 +5,7 @@ class Middleman::Extensions::AutomaticImageSizes < ::Middleman::Extension
|
||||||
super
|
super
|
||||||
|
|
||||||
# Include 3rd-party fastimage library
|
# Include 3rd-party fastimage library
|
||||||
require "middleman-more/extensions/automatic_image_sizes/fastimage"
|
require "vendored-middleman-deps/fastimage"
|
||||||
end
|
end
|
||||||
|
|
||||||
helpers do
|
helpers do
|
||||||
|
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue