]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
pin net-ssh version to 2.7.0. later versions break interactive password authenticatio...
authorelijah <elijah@riseup.net>
Wed, 29 Oct 2014 06:43:23 +0000 (23:43 -0700)
committerelijah <elijah@riseup.net>
Wed, 29 Oct 2014 06:43:23 +0000 (23:43 -0700)
bin/leap
leap_cli.gemspec
lib/leap_cli.rb

index c4921276449569425d5b423150c8f259142fc392..60671649150846c322702af7e186d526a3aa269f 100755 (executable)
--- a/bin/leap
+++ b/bin/leap
@@ -18,7 +18,6 @@ rescue LoadError
   # This allows you to run the command directly while developing the gem, and also lets you
   # run from anywhere (I like to link 'bin/leap' to /usr/local/bin/leap).
   #
-  require 'rubygems'
   base_dir = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__))
   require File.join(base_dir, 'lib','leap_cli','load_paths')
   require 'leap_cli'
index d0b9a998c4b3052f65fe98e324e23eeab60d9a74..10ed371a33f1b7554867ae0b2bf2bd41382bcc67 100644 (file)
@@ -56,14 +56,14 @@ spec = Gem::Specification.new do |s|
   s.add_runtime_dependency('tee')
 
   # network gems
+  s.add_runtime_dependency('net-ssh', '~> 2.7.0')
+  # ^^ we can upgrade once we get off broken capistrano
+  # https://github.com/net-ssh/net-ssh/issues/145
   s.add_runtime_dependency('capistrano', '~> 2.15.5')
-  #s.add_runtime_dependency('supply_drop')
-  # ^^ currently vendored
 
   # crypto gems
   #s.add_runtime_dependency('certificate_authority', '>= 0.2.0')
   # ^^ currently vendored
-  s.add_runtime_dependency('net-ssh')
   s.add_runtime_dependency('gpgme')     # not essential, but used for some minor stuff in adding sysadmins
 
   # misc gems
index e8f7ecff73549648f6f5e8e077f2f1cb6e2e53cf..2ca68c4ef4783829d19079a04f72dc64a329bb82 100644 (file)
@@ -8,6 +8,9 @@ $ruby_version = RUBY_VERSION.split('.').collect{ |i| i.to_i }.extend(Comparable)
 # ensure leap_cli/lib/overrides has the highest priority
 $:.unshift(File.expand_path('../override',__FILE__))
 
+require 'rubygems'
+gem 'net-ssh', '~> 2.7.0'
+
 require 'leap/platform'
 
 require 'leap_cli/version'