module EY
  VERSION = "0.2.2"

  autoload :Account, 'engineyard/account'
  autoload :API,     'engineyard/api'
  autoload :Config,  'engineyard/config'
  autoload :Repo,    'engineyard/repo'

  class Error < RuntimeError; end

  class UI
    # stub debug outside of the CLI
    def debug(*); end
  end

  class << self
    attr_accessor :ui

    def ui
      @ui ||= UI.new
    end

    def config
      @config ||= EY::Config.new
    end

    def library(libname)
      begin
        require libname
      rescue LoadError
        unless @tried_rubygems
          require 'rubygems' rescue LoadError nil
          @tried_rubygems = true
          retry
        end
      end
    end

  end
end

module EY
  VERSION = "0.2.3.pre"

  autoload :Account, 'engineyard/account'
  autoload :API,     'engineyard/api'
  autoload :Config,  'engineyard/config'
  autoload :Repo,    'engineyard/repo'

  class Error < RuntimeError; end

  class UI
    # stub debug outside of the CLI
    def debug(*); end
  end

  class << self
    attr_accessor :ui

    def ui
      @ui ||= UI.new
    end

    def config
      @config ||= EY::Config.new
    end

    def library(libname)
      begin
        require libname
      rescue LoadError
        unless @tried_rubygems
          require 'rubygems' rescue LoadError nil
          @tried_rubygems = true
          retry
        end
      end
    end

  end
end

Bump version for next release
Bump version for next release

Change-Id: Iea68442b3694e7a0daddbffb9d107d2179d20ff9
Reviewed-on: http://review.engineyard.com/145
Reviewed-by: Andy Delcambre <dceae9ae498de7d794de551710d5e4d9b952cadb@engineyard.com>
Tested-by: Andy Delcambre <dceae9ae498de7d794de551710d5e4d9b952cadb@engineyard.com>
