setup rakefile for windows build

This commit is contained in:
Thomas Reynolds 2012-01-05 20:34:24 -08:00
parent 80a5a25457
commit 22adf3b516
4 changed files with 7 additions and 1 deletions

View file

@ -2,7 +2,9 @@ require 'rubygems' unless defined?(Gem)
require 'rake' require 'rake'
require 'cucumber/rake/task' require 'cucumber/rake/task'
require 'yard' require 'yard'
require 'bundler/gem_tasks'
require 'bundler'
Bundler::GemHelper.install_tasks :name => GEM_NAME
# Skip the releasing tag # Skip the releasing tag
class Bundler::GemHelper class Bundler::GemHelper

View file

@ -1,6 +1,8 @@
# coding:utf-8 # coding:utf-8
RAKE_ROOT = __FILE__ RAKE_ROOT = __FILE__
GEM_NAME = "middleman-core" + (ENV["WINDOWS"] ? "-x86-mingw32" : "")
require 'rubygems' require 'rubygems'
require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper') require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')

View file

@ -2,4 +2,5 @@
RAKE_ROOT = __FILE__ RAKE_ROOT = __FILE__
require 'rubygems' require 'rubygems'
GEM_NAME = "middleman-more"
require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper') require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')

View file

@ -2,4 +2,5 @@
RAKE_ROOT = __FILE__ RAKE_ROOT = __FILE__
require 'rubygems' require 'rubygems'
GEM_NAME = "middleman"
require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper') require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')