Permalink
Browse files

try multi platform builds

  • Loading branch information...
1 parent 68f2527 commit 5611976d29f2cd480894dad175879caf5b1ecd4b @tdreyno tdreyno committed Sep 9, 2011
Showing with 90 additions and 14 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 Rakefile
  3. +1 −1 lib/middleman/version.rb
  4. +79 −0 middleman-x86-mswin32.gemspec
  5. +8 −11 middleman.gemspec
View
@@ -1,3 +1,3 @@
source :rubygems
-gemspec
+gemspec :name => "middleman"
View
@@ -1,5 +1,5 @@
require 'bundler'
-Bundler::GemHelper.install_tasks
+Bundler::GemHelper.install_tasks :name => ENV["NAME"] || "middleman"
require 'cucumber/rake/task'
@@ -1,3 +1,3 @@
module Middleman
- VERSION = "2.0.8"
+ VERSION = "2.0.9.pre"
end
@@ -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 =<<eos
+********************************************************************************
+
+ Welcome to Middleman 2.0
+
+ In addition to many new features, some backwards-incompatible
+ changes have been made to the structure of Middleman sites.
+
+ Before running you old, v1.x project on Middleman 2.0,
+ review the Migration guide:
+
+ http://middlemanapp.com/guides/migrating
+
+********************************************************************************
+eos
+
+ s.add_dependency("rack", ["~> 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
+
View
@@ -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"])

0 comments on commit 5611976

Please sign in to comment.