lib/aurb.rb in aurb-1.1.1 vs lib/aurb.rb in aurb-1.1.2

- old
+ new

@@ -1,26 +1,23 @@ #!/usr/bin/env ruby # encoding: utf-8 -# -#-- -# Copyright protects this work. -# See LICENSE file for details. -#++ +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) + require 'logger' -require 'getoptlong' require 'open-uri' require 'zlib' require 'yajl' require 'ansi' require 'archive/tar/minitar' -require 'facets/version' module Aurb #:nodoc: - VERSION = '1.1.1' + VERSION = '1.1.2' + autoload :Aur, 'aurb/aur' + class AurbError < StandardError def self.status_code(code = nil) return @code unless code @code = code end @@ -32,12 +29,10 @@ class AurbDownloadError < AurbError; status_code(10); end class AurbArgumentError < AurbError; status_code(12); end class << self - attr_reader :aur - def logger @logger ||= Logger.new(STDOUT) end def aur_path(type, arg) @@ -52,8 +47,6 @@ @aur ||= Aur.new end end end -$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) -require 'aurb/aur' require 'aurb/support'