Module Bee::Util
In: lib/bee_util.rb

Methods

Classes and Modules

Module Bee::Util::BuildErrorMixin
Module Bee::Util::HashCheckerMixin
Class Bee::Util::BuildError
Class Bee::Util::MethodInfo
Class Bee::Util::MethodInfoBase

Constants

HTTP_REDIRECTIONS_LIMIT = 10   Limit of number of HTTP redirections to follow.
README_FILE = 'README'   README file where copyright is extracted.
DEFAULT_PACKAGE = 'default'   Default package name.
COMPACT_PATTERN = /^:(.*?)\.(.*?)(\[(.*)\])?$/   Compact pattern for resource
EXPANDED_PATTERN = /^ruby:\/\/(.*?)(:(.*?))?\/(.*)$/   Expanded pattern for resource
DEFAULT_TERM_WIDTH = 80   Default terminal width

Public Class methods

Return copyright parsing README file. Returns nil if COPYRIGHT file was not found.

Get a given file or URL. Manages HTTP redirections.

  • location: file path, resource or URL of the file to get.
  • base: base for relative files (defaults to nil).

Parse packaged name and return package and name.

  • packaged: packaged name (such as ‘foo.bar’).

Return: package (‘foo’) and name (‘bar’).

Get line length calling IOCTL. Return DEFAULT_TERM_WIDTH if call failed.

[Validate]