summaryrefslogtreecommitdiff
path: root/net-ssh.gemspec
diff options
context:
space:
mode:
authorDelano Mandelbaum <delano.mandelbaum@gmail.com>2012-05-24 07:57:30 -0700
committerDelano Mandelbaum <delano.mandelbaum@gmail.com>2012-05-24 07:57:30 -0700
commit38cdb1e0f2ac3f063a8b30c066bcb2a33e6a054f (patch)
tree8c2c4949bde511ecd2f42f7fd22a78a0223922e8 /net-ssh.gemspec
parent46f5a2b6577d32649c8878194049f6405b97267d (diff)
parent0d8f7a8905dfa904cc4f4a83d952476a295073bf (diff)
downloadnet-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.gemspec10
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[]