diff options
author | Delano Mandelbaum <delano.mandelbaum@gmail.com> | 2012-05-24 07:57:30 -0700 |
---|---|---|
committer | Delano Mandelbaum <delano.mandelbaum@gmail.com> | 2012-05-24 07:57:30 -0700 |
commit | 38cdb1e0f2ac3f063a8b30c066bcb2a33e6a054f (patch) | |
tree | 8c2c4949bde511ecd2f42f7fd22a78a0223922e8 /net-ssh.gemspec | |
parent | 46f5a2b6577d32649c8878194049f6405b97267d (diff) | |
parent | 0d8f7a8905dfa904cc4f4a83d952476a295073bf (diff) | |
download | net-ssh-38cdb1e0f2ac3f063a8b30c066bcb2a33e6a054f.tar.gz |
Merge pull request #42 from Empact/jruby-pageant
Don't depend on jruby-pageant unless we're installing under jruby
Diffstat (limited to 'net-ssh.gemspec')
-rw-r--r-- | net-ssh.gemspec | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net-ssh.gemspec b/net-ssh.gemspec index fb1fb5a..a4527ba 100644 --- a/net-ssh.gemspec +++ b/net-ssh.gemspec @@ -14,10 +14,12 @@ s.require_paths = %w[lib] s.rubygems_version = '1.3.2' - # This has two flavours with java one actually doing something and other - # one just raising error. This is a workaround for no ability to specify - # platform specific dependencies in gemspecs. - s.add_dependency 'jruby-pageant', ">=1.0.2" + if RUBY_PLATFORM == "java" + # This has two flavours with java one actually doing something and other + # one just raising error. This is a workaround for no ability to specify + # platform specific dependencies in gemspecs. + s.add_dependency 'jruby-pageant', ">=1.0.2" + end s.executables = %w[] |