em-simple_telnet 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/em-simple_telnet.rb +0 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78218823aba97e9250159f56bbb7c666a52178f8
4
- data.tar.gz: 3035ce24632a5f23788253e8ff9c022175711965
3
+ metadata.gz: d1ca6b25581cf14e3cb707a65b4476a125cbad83
4
+ data.tar.gz: e0eac37b80f445ec35b66613ce1b94a1a6456805
5
5
  SHA512:
6
- metadata.gz: 7d7c0638b72d5c0b1fe0cee058b9391d965edf491af743a6ab19572656d6e1cb717aecf1f05304a4b5441e0c57875dc209b1e48cd6c875b6a532292559ebd937
7
- data.tar.gz: 3f0bb2ee015a659e426afce49fd3148fde96bee0e501cce2e8e909763c47e89046a79513b769eceab498ffda37c10decab1ebe35095c0ab0bd13774653a8e21a
6
+ metadata.gz: 32d9f6798cfec55f8bcdf56b82535c69e3b631db49ed3809531de6ac243c3f025ae31cc5a4719386688b575f5ac6c673782757bf1534bea5519e6a50687db44e
7
+ data.tar.gz: 2cb34b790a674199d51ed009ffca6b61c7214a3d169de9bf2c5d6ce692f075127355658f037eaba1d0c6695b8e8ec558038e8d829867249aecb93c13636955ba
@@ -187,7 +187,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
187
187
  fiber = Fiber.new do | callback |
188
188
  connection = connect(opts, &blk)
189
189
  callback.call if callback
190
- @@_fiber_statuses.delete opts[:hostname]
191
190
  end
192
191
 
193
192
  if EventMachine.reactor_running?
@@ -428,7 +427,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
428
427
  #
429
428
  def timeout= seconds
430
429
  @telnet_options[:timeout] = seconds
431
- # warn "#{node}: Setting comm_inactivity_timeout to #{seconds} ...".yellow
432
430
  set_comm_inactivity_timeout( seconds )
433
431
  end
434
432
 
@@ -493,7 +491,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
493
491
  # #log_output. Then calls #process_payload.
494
492
  #
495
493
  def receive_data data
496
- @last_received_data = Time.now
497
494
  @recently_received_data << data if $DEBUG
498
495
  if @telnet_options[:telnet_mode]
499
496
  c = @input_rest + data
@@ -633,11 +630,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
633
630
  @fiber_resumer.(output)
634
631
  end
635
632
 
636
- @@_fiber_statuses = {}
637
- def self._fiber_statuses
638
- @@_fiber_statuses
639
- end
640
-
641
633
  ##
642
634
  # Read data from the host until a certain sequence is matched.
643
635
  #
@@ -687,7 +679,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
687
679
  # Pauses the current Fiber. When resumed, returns the value passed. If the
688
680
  # value passed is an Exeption, it's raised.
689
681
  def pause_and_wait_for_result
690
- @@_fiber_statuses[node] = :paused
691
682
  result = nil
692
683
  while result == nil
693
684
  # measure how long Fiber is paused
@@ -704,7 +695,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
704
695
  end
705
696
  end
706
697
 
707
- @@_fiber_statuses[node] = :running
708
698
 
709
699
  raise result if result.is_a? Exception
710
700
  return result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-simple_telnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger