Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created September 8, 2010 18:41
Show Gist options
  • Save jackdempsey/570595 to your computer and use it in GitHub Desktop.
Save jackdempsey/570595 to your computer and use it in GitHub Desktop.
diff --git a/rack-debug.gemspec b/rack-debug.gemspec
index fb6004e..bd85e7f 100644
--- a/rack-debug.gemspec
+++ b/rack-debug.gemspec
@@ -42,14 +42,26 @@ http://github.com/github/rack-debug
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rack>, [">= 1.0"])
- s.add_runtime_dependency(%q<ruby-debug>, [">= 0.10"])
+ if RUBY_VERSION < '1.9'
+ s.add_runtime_dependency(%q<ruby-debug>, [">= 0.10"])
+ else
+ s.add_runtime_dependency(%q<ruby-debug19>, ["~> 0.11.6"])
+ end
else
s.add_dependency(%q<rack>, [">= 1.0"])
- s.add_dependency(%q<ruby-debug>, [">= 0.10"])
+ if RUBY_VERSION < '1.9'
+ s.add_dependency(%q<ruby-debug>, [">= 0.10"])
+ else
+ s.add_dependency(%q<ruby-debug19>, ["~> 0.11.6"])
+ end
end
else
s.add_dependency(%q<rack>, [">= 1.0"])
- s.add_dependency(%q<ruby-debug>, [">= 0.10"])
+ if RUBY_VERSION < '1.9'
+ s.add_dependency(%q<ruby-debug>, [">= 0.10"])
+ else
+ s.add_dependency(%q<ruby-debug19>, ["~> 0.11.6"])
+ end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment