module EY
  VERSION = "0.0.2.pre"

  class Error < StandardError; end
  class EnvironmentError < Error; end
  class BranchMismatch < Error; end

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

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

  class << self
    attr_accessor :ui

    def ui
      @ui ||= UI.new
    end

    def api
      @api ||= API.new(ENV["CLOUD_URL"])
    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.0.2"

  class Error < StandardError; end
  class EnvironmentError < Error; end
  class BranchMismatch < Error; end

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

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

  class << self
    attr_accessor :ui

    def ui
      @ui ||= UI.new
    end

    def api
      @api ||= API.new(ENV["CLOUD_URL"])
    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

Remove prerelease flag for release
Remove prerelease flag for release

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