Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load ruby-debug vs. ruby-debug19 based on ruby version.

Check the ruby version and conditionally add a runtime dependency on the right
debugging library.

Fixes errors installing gem on pre-1.9 versions of Ruby.
  • Loading branch information...
commit a568c9664672e2a43459e98cecebd50e38ce294c 1 parent 5f55b94
Winfield Peterson authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 settingslogic.gemspec
View
18 settingslogic.gemspec
@@ -47,18 +47,30 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<rake>, [">= 0"])
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
s.add_runtime_dependency(%q<rspec>, [">= 0"])
- s.add_runtime_dependency(%q<ruby-debug19>, [">= 0"])
+ if RUBY_VERSION < "1.9"
+ s.add_runtime_dependency(%q<ruby-debug>, [">= 0"])
+ else
+ s.add_runtime_dependency(%q<ruby-debug19>, [">= 0"])
+ end
else
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<ruby-debug19>, [">= 0"])
+ if RUBY_VERSION < "1.9"
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
+ else
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
+ end
end
else
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<ruby-debug19>, [">= 0"])
+ if RUBY_VERSION < "1.9"
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
+ else
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.