Sha256: f8e56091ad1b19dbf2b6169c795b057de98d55ca913664e00b0f529b16d2f833

Contents?: true

Size: 758 Bytes

Versions: 23

Compression:

Stored size: 758 Bytes

Contents

if RUBY_VERSION < "1.9" && RUBY_PLATFORM != "java"
  timeout_lib = nil
  ["SystemTimer", "system_timer"].each do |lib|
    begin
      unless timeout_lib
        gem lib
        require "system_timer"
        timeout_lib  = SystemTimer
      end
    rescue Exception => e
    end
  end
  if !timeout_lib
    puts <<-EOMSG
WARNING:: You do not currently have system_timer installed.
It is strongly advised that you install this gem when using
instrumental_agent with Ruby 1.8.x.  You can install it in
your Gemfile via:
gem 'system_timer'
or manually via:
gem install system_timer
    EOMSG
    require 'timeout'
    InstrumentalTimeout = Timeout
  else
    InstrumentalTimeout = timeout_lib
  end
else
  require 'timeout'
  InstrumentalTimeout = Timeout
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
instrumental_agent-3.0.0 lib/instrumental/system_timer.rb
instrumental_agent-3.0.0.beta3 lib/instrumental/system_timer.rb
instrumental_agent-3.0.0.beta2 lib/instrumental/system_timer.rb
instrumental_agent-3.0.0.beta lib/instrumental/system_timer.rb
instrumental_agent-3.0.0.alpha lib/instrumental/system_timer.rb
instrumental_agent-2.1.0 lib/instrumental/system_timer.rb
instrumental_agent-2.0.0 lib/instrumental/system_timer.rb
instrumental_agent-2.0.0.alpha lib/instrumental/system_timer.rb
instrumental_agent-1.0.1 lib/instrumental/system_timer.rb
instrumental_agent-1.0.0 lib/instrumental/system_timer.rb
instrumental_agent-0.13.4 lib/instrumental/system_timer.rb
instrumental_agent-0.13.3 lib/instrumental/system_timer.rb
instrumental_agent-0.13.2 lib/instrumental/system_timer.rb
instrumental_agent-0.13.1 lib/instrumental/system_timer.rb
instrumental_agent-0.13.0 lib/instrumental/system_timer.rb
instrumental_agent-0.12.7 lib/instrumental/system_timer.rb
instrumental_agent-0.12.6 lib/instrumental/system_timer.rb
instrumental_agent-0.12.5 lib/instrumental/system_timer.rb
instrumental_agent-0.12.4 lib/instrumental/system_timer.rb
instrumental_agent-0.12.3 lib/instrumental/system_timer.rb