move vendored gems into shared root
This commit is contained in:
parent
7a227b8bac
commit
5b8c7a2494
196 changed files with 20 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
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/step_definitions
|
||||
--exclude middleman-core/lib/middleman-core/templates/default/
|
||||
|
|
3
Gemfile
3
Gemfile
|
@ -27,6 +27,9 @@ platforms :jruby do
|
|||
gem "therubyrhino"
|
||||
end
|
||||
|
||||
# Code Quality
|
||||
gem "cane", :platforms => [:mri_19, :mri_20], :require => false
|
||||
|
||||
# Middleman itself
|
||||
gem "middleman-core", :path => "middleman-core"
|
||||
gem "middleman-more", :path => "middleman-more"
|
||||
|
|
18
Rakefile
18
Rakefile
|
@ -94,12 +94,18 @@ task :spec do
|
|||
end
|
||||
end
|
||||
|
||||
# desc "Rune cane for all middleman gems"
|
||||
# task :cane do
|
||||
# GEM_PATHS.each do |g|
|
||||
# sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S cane"
|
||||
# end
|
||||
# end
|
||||
begin
|
||||
require 'cane/rake_task'
|
||||
|
||||
desc "Run cane to check quality metrics"
|
||||
Cane::RakeTask.new(:quality) do |cane|
|
||||
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"
|
||||
task :default => :test
|
||||
|
|
|
@ -10,7 +10,7 @@ require "active_support/core_ext/integer/inflections"
|
|||
require "active_support/core_ext/float/rounding"
|
||||
|
||||
# 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"
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
|||
super
|
||||
|
||||
require 'active_support/core_ext/object/to_query'
|
||||
require 'middleman-more/vendor/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-core-0.10.7/lib/padrino-core/support_lite'
|
||||
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
||||
|
||||
app.helpers ::Padrino::Helpers::OutputHelpers
|
||||
app.helpers ::Padrino::Helpers::TagHelpers
|
||||
|
|
|
@ -5,7 +5,7 @@ class Middleman::Extensions::AutomaticImageSizes < ::Middleman::Extension
|
|||
super
|
||||
|
||||
# Include 3rd-party fastimage library
|
||||
require "middleman-more/extensions/automatic_image_sizes/fastimage"
|
||||
require "vendored-middleman-deps/fastimage"
|
||||
end
|
||||
|
||||
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