From 5611976d29f2cd480894dad175879caf5b1ecd4b Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 9 Sep 2011 11:14:34 -0700 Subject: [PATCH] try multi platform builds --- Gemfile | 2 +- Rakefile | 2 +- lib/middleman/version.rb | 2 +- middleman-x86-mswin32.gemspec | 79 +++++++++++++++++++++++++++++++++++ middleman.gemspec | 19 ++++----- 5 files changed, 90 insertions(+), 14 deletions(-) create mode 100644 middleman-x86-mswin32.gemspec diff --git a/Gemfile b/Gemfile index 2c06b4c0..a8d312dc 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ source :rubygems -gemspec \ No newline at end of file +gemspec :name => "middleman" \ No newline at end of file diff --git a/Rakefile b/Rakefile index f37f6339..52d41d40 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,5 @@ require 'bundler' -Bundler::GemHelper.install_tasks +Bundler::GemHelper.install_tasks :name => ENV["NAME"] || "middleman" require 'cucumber/rake/task' diff --git a/lib/middleman/version.rb b/lib/middleman/version.rb index 8e85826b..df2300a1 100644 --- a/lib/middleman/version.rb +++ b/lib/middleman/version.rb @@ -1,3 +1,3 @@ module Middleman - VERSION = "2.0.8" + VERSION = "2.0.9.pre" end diff --git a/middleman-x86-mswin32.gemspec b/middleman-x86-mswin32.gemspec new file mode 100644 index 00000000..0e72d733 --- /dev/null +++ b/middleman-x86-mswin32.gemspec @@ -0,0 +1,79 @@ +# -*- encoding: utf-8 -*- +require "rbconfig" + +$:.push File.expand_path("../lib", __FILE__) +require "middleman/version" + +Gem::Specification.new do |s| + s.name = "middleman" + s.version = Middleman::VERSION + s.platform = "x86-mswin32" + s.license = "MIT" + s.authors = ["Thomas Reynolds"] + s.email = ["me@tdreyno.com"] + s.homepage = "http://middlemanapp.com" + s.summary = "Hand-crafted frontend development" + s.description = "A static site generator based on Sinatra. Providing dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle." + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {fixtures,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] + + # TODO remove for 2.1.x + s.post_install_message =< 1.3.0"]) + s.add_dependency("thin", ["~> 1.2.11"]) + s.add_dependency("thor", ["~> 0.14.0"]) + s.add_dependency("tilt", ["~> 1.3.1"]) + s.add_dependency("maruku", ["~> 0.6.0"]) + s.add_dependency("sinatra", ["~> 1.2.6"]) + s.add_dependency("rack-test", ["~> 0.6.1"]) + s.add_dependency("uglifier", ["~> 1.0.0"]) + s.add_dependency("slim", ["~> 1.0.1"]) + s.add_dependency("haml", ["~> 3.1.0"]) + s.add_dependency("sass", ["~> 3.1.7"]) + s.add_dependency("compass", ["~> 0.11.3"]) + s.add_dependency("coffee-script", ["~> 2.2.0"]) + s.add_dependency("sprockets", ["~> 2.0.0"]) + s.add_dependency("padrino-core", ["~> 0.10.2"]) + s.add_dependency("padrino-helpers", ["~> 0.10.2"]) + + # case s.platform.to_s + # when %r{mswin|mingw} + s.add_dependency("eventmachine", ["1.0.0.beta.3"]) + s.add_dependency("win32-process", ["~> 0.6.5"]) + s.add_dependency("win32console", ["~> 1.3.0"]) + s.add_dependency("rb-fchange") + # else + # s.add_dependency("rb-fsevent", ["~> 0.4.2"]) + # s.add_dependency("therubyracer", ["~> 0.9.4"]) + # end + + s.add_dependency("guard", ["~> 0.6.2"]) + s.add_dependency("middleman-livereload", ["~> 0.2.0"]) + + # Development and test + # s.add_development_dependency("jquery-rails") + s.add_development_dependency("coffee-filter", ["~> 0.1.1"]) + s.add_development_dependency("liquid", ["~> 2.2.0"]) + s.add_development_dependency("cucumber", ["~> 1.0.2"]) + s.add_development_dependency("rake", ["0.8.7"]) + s.add_development_dependency("rspec", ["~> 2.6.0"]) +end + diff --git a/middleman.gemspec b/middleman.gemspec index 1d5d765e..c7aee52d 100644 --- a/middleman.gemspec +++ b/middleman.gemspec @@ -54,19 +54,16 @@ eos s.add_dependency("padrino-core", ["~> 0.10.2"]) s.add_dependency("padrino-helpers", ["~> 0.10.2"]) - case Config::CONFIG['host_os'].downcase - when %r{mswin|mingw} - s.add_dependency("eventmachine", ["1.0.0.beta.3"]) - # s.add_runtime_dependency "windows-api", "= 0.4.0" - # s.add_runtime_dependency "windows-pr", "= 1.1.2" - s.add_dependency("win32-process", ["~> 0.6.5"]) - s.add_dependency("win32console", ["~> 1.3.0"]) - s.add_dependency("rb-fchange") - when %r{darwin} + # case s.platform.to_s + # when %r{mswin|mingw} + # s.add_dependency("eventmachine", ["1.0.0.beta.3"]) + # s.add_dependency("win32-process", ["~> 0.6.5"]) + # s.add_dependency("win32console", ["~> 1.3.0"]) + # s.add_dependency("rb-fchange") + # else s.add_dependency("rb-fsevent", ["~> 0.4.2"]) - when %r{linux} s.add_dependency("therubyracer", ["~> 0.9.4"]) - end + # end s.add_dependency("guard", ["~> 0.6.2"]) s.add_dependency("middleman-livereload", ["~> 0.2.0"])