mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
CLI: Always require 'middleman-core/version'
The `init` command will fail if the `VERSION` was not required because it is needed for the Gemfile generation. Unfortunately this was not catched by the specs because the specs require the version and the child process is not correctly reset. I was not able to change this easily :-(
This commit is contained in:
parent
a40ef1a734
commit
ae451608b3
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,6 @@ module Middleman
|
||||||
|
|
||||||
desc 'version', 'Show version'
|
desc 'version', 'Show version'
|
||||||
def version
|
def version
|
||||||
require 'middleman-core/version'
|
|
||||||
say "Middleman #{Middleman::VERSION}"
|
say "Middleman #{Middleman::VERSION}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -81,6 +80,9 @@ module Middleman
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Require the Middleman version
|
||||||
|
require 'middleman-core/version'
|
||||||
|
|
||||||
# Include the core CLI items
|
# Include the core CLI items
|
||||||
require 'middleman-core/cli/init'
|
require 'middleman-core/cli/init'
|
||||||
require 'middleman-core/cli/bundler'
|
require 'middleman-core/cli/bundler'
|
||||||
|
|
Loading…
Reference in a new issue