world-o-techno/gps/gps.rb

21 lines
357 B
Ruby
Raw Normal View History

2015-08-02 22:34:51 +02:00
$:.unshift File.dirname(__FILE__)
module Gps
end
begin
require "rubygems"
rescue LoadError
end
if Object.const_defined?("Gem")
begin
require "gem_plugin"
rescue LoadError
end
end
require "gps/fix"
require "gps/receiver"
require "gps/receivers/gpsd"
GemPlugin::Manager.instance.load "gps" => GemPlugin::INCLUDE if Object.const_defined?("GemPlugin")