lib/firebrew.rb in firebrew-0.1.3 vs lib/firebrew.rb in firebrew-0.2.0

- old
+ new

@@ -1,19 +1,17 @@ require "firebrew/version" +require 'rake/pathmap' module Firebrew class Error < StandardError; def status; 1 end end - class ProfilesFileNotFoundError < Error; def status; 2 end end - class ProfileNotFoundError < Error; def status; 3 end end - class ExtensionNotFoundError < Error; def status; 4 end end - class FirefoxCommandError < Error; def status; 5 end end - class CommandLineError < Error; def status; 6 end end - class OperationAlreadyCompletedError < Error; def status; 7 end end + class ProfilesFileNotFoundError < Error; end + class ProfileNotFoundError < Error; end + class ExtensionNotFoundError < Error; end + class FirefoxCommandError < Error; end + class CommandLineError < Error; end + class NetworkError < Error; end + class OperationAlreadyCompletedError < Error; def status; 2 end end end -require 'firebrew/entity' -require 'firebrew/amo_api/search' -require 'firebrew/firefox/profile' -require 'firebrew/firefox/extension' -require 'firebrew/firefox/command' -require 'firebrew/runner' -require 'firebrew/command_line' +Dir[__FILE__.pathmap('%X/*.rb')].each do |rb| + require rb.pathmap('%-1d/%n') +end