Sha256: 7a912fe1916bca0fe691ead6a2fc0829fd642bc5c8df6f7e6f666dfd851000d0

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

module Textbringer
  module Plugin
    class << self
      attr_accessor :directory
    end

    @directory = File.expand_path("~/.textbringer/plugins")

    def self.load_plugins
      files = Gem.find_latest_files("textbringer_plugin.rb", false) +
        Dir.glob(File.join(directory, "*/**/textbringer_plugin.rb"))
      files.each do |file|
        begin
          load(file)
        rescue Exception => e
          show_exception(e)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
textbringer-1.4.1 lib/textbringer/plugin.rb
textbringer-1.3.0 lib/textbringer/plugin.rb
textbringer-1.2.0 lib/textbringer/plugin.rb
textbringer-1.1.2 lib/textbringer/plugin.rb
textbringer-1.1.1 lib/textbringer/plugin.rb
textbringer-1.1.0 lib/textbringer/plugin.rb
textbringer-1.0.9 lib/textbringer/plugin.rb
textbringer-1.0.4 lib/textbringer/plugin.rb
textbringer-1.0.3 lib/textbringer/plugin.rb
textbringer-1.0.2 lib/textbringer/plugin.rb
textbringer-1.0.1 lib/textbringer/plugin.rb