<NME> rango.gemspec
<BEF> #!/usr/bin/env gem build
# encoding: utf-8

require "base64"
require File.expand_path("../lib/rango/version", __FILE__)

Gem::Specification.new do |s|
  s.name = "rango"
  s.version = Rango::VERSION
  s.authors = ["Jakub Šťastný aka Botanicus"]
  s.homepage = "http://github.com/botanicus/rango"
  s.summary = "Rango is ultralightweight, ultracustomizable, ultracool web framework deeply inspired by Django."
  s.description = "" # TODO: long description
  s.cert_chain = nil
  s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
  s.has_rdoc = true

  # files
  s.files = `git ls-files`.split("\n")

  s.executables = Dir["bin/*"].map(&File.method(:basename))
  s.default_executable = "rango"
  s.require_paths = ["lib"]

  # Ruby version
  # Current JRuby with --1.9 switch has RUBY_VERSION set to "1.9.2dev"
  # and RubyGems don't play well with it, so we have to set minimal
  # Ruby version to 1.9, even if it actually is 1.9.1
  s.required_ruby_version = ::Gem::Requirement.new("~> 1.9")

  s.require_paths = ["lib"]

  # Ruby version
  s.required_ruby_version = ::Gem::Requirement.new(">= 1.9.1")

  # runtime dependencies
  s.add_dependency "rack", "1.0.1"
  s.add_dependency "tilt"
  s.add_dependency "rubyexts"
  s.add_dependency "media-path"

  # development dependencies
  # use gem install rango --development if you want to install them
  else
  # s.add_development_dependency "bundler"
  # NOTE: OK, these dependencies aren't actually development, because
  # development dependency of rack is mongrel and mongrel can't be compiled on Ruby 1.9
  s.add_dependency "simple-templater"
  s.add_dependency "bundler"

  # RubyForge
  s.rubyforge_project = "rango"

<MSG> More fixed versions, minimal dependency on Ruby 1.9 instead of Ruby 1.9.1, so it should work with JRuby

<DFF> @@ -31,13 +31,16 @@ Gem::Specification.new do |s|
   s.require_paths = ["lib"]
 
   # Ruby version
-  s.required_ruby_version = ::Gem::Requirement.new(">= 1.9.1")
+  # Current JRuby with --1.9 switch has RUBY_VERSION set to "1.9.2dev"
+  # and RubyGems don't play well with it, so we have to set minimal
+  # Ruby version to 1.9, even if it actually is 1.9.1
+  s.required_ruby_version = ::Gem::Requirement.new(">= 1.9")
 
   # runtime dependencies
-  s.add_dependency "rack", "1.0.1"
-  s.add_dependency "tilt"
-  s.add_dependency "rubyexts"
-  s.add_dependency "media-path"
+  s.add_dependency "rack", ">= 1.0.1"
+  s.add_dependency "tilt", ">= 0.3"
+  s.add_dependency "rubyexts", "0.0.2"
+  s.add_dependency "media-path", ">= 0.1"
 
   # development dependencies
   # use gem install rango --development if you want to install them
@@ -45,8 +48,8 @@ Gem::Specification.new do |s|
   # s.add_development_dependency "bundler"
   # NOTE: OK, these dependencies aren't actually development, because
   # development dependency of rack is mongrel and mongrel can't be compiled on Ruby 1.9
-  s.add_dependency "simple-templater"
-  s.add_dependency "bundler"
+  s.add_dependency "simple-templater", "0.0.1.1"
+  s.add_dependency "bundler", ">= 0.7"
 
   # RubyForge
   s.rubyforge_project = "rango"

More fixed versions, minimal dependency on Ruby 1.9 instead of Ruby 1.9.1, so it should work with JRuby