21 lines
357 B
Ruby
21 lines
357 B
Ruby
$:.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") |