Eymiha RubyGems

A desciption of the opensource rubygems created by David Anderson & company. They are all part of my CORI (Chunks Of Ruby Infrastructure) project at RubyForge. Use them at your own risk, no guarantees, no promises. But they are somewhat useful for me...

RubyGem Contents

gem_raker-0.1.2 A framework for the assembly-line development, production and testing of RubyGems. All of the RubyGems I've produced use this framework. Read more...

eymiha-1.0.4 A few very lightweight additions and modifications to the Ruby core objects.
  • Rubyized to_s methods for Arrays and Hashes.
  • The class_name method on Object that returns the name its class.
  • The optional_require method that doesn't fail if the required file is missing. Read more...
  • The File.home_directory method that constructs a user's home directory with special handling for PCs. Read more...
  • The class_attr_reader, class_attr_writer and class_attr_accessor methods to Module, analougous to the methods for instances. Read more...
  • The subsecond_precision class method to Time, returning the number of digits of precision for fractions of a second. Read more...
  • The allows_object_remapping_in_new method enables a class' new method to return an object other than the one allocated. Read more...

  • eymiha_test-1.0.0 Adds the probe method to Test::Unit::TestCase that allows allows straightforward testing of the private methods in a class. Read more...

    eymiha_util-1.0.2 Small utility classes.
  • The Histogram that counts occurences.
  • The Envelope that builds up a minimum range for a set of values.
  • The ForwardReferencing module, and the ForwardReference and ForwardReferences classes, a general solution of the use-define problem that captures and resolves forward references. Read more...
  • The MethodicHash class that transparently translates attribute-style accessing into Hash references. Read more...
  • Numeric and bitwise enumeration specifiers, with positional settings and allowance of gaps in sequence assignment. Read more...
  • Easy Logging framework providing Logger-based logging that is as invisible as possible. Read more...

  • eymiha_url-1.0.0 Adds the UrlNormalizer and UrlOpener classes that make easy work of opening resources specified by URLs from a Ruby program. Read more...

    eymiha_units-1.0.0 Adds the NumericWithUnits class that transparently includes units on Numerics. Instances can be used wherever a Numeric would be, and include automatic unit conversions. Extensions to Object and Numeric classes are included, as well as extensible unit definition and derivation facilities. Read more...

    eymiha_math-1.0.0 Low-level math utilities defined on Numeric.
  • Approximately equals returning true if a value is within some small epsilon of another. Read more...
  • Value rectification, mapping to an interval by wrapping or cutting.
  • The at_most and at_least methods that constrain values to limits.
  • Fraction handling that show the fractional parts of numbers as fractions with a given denominator rather than decimals.

  • eymiha_math3-1.0.0 Some 3D classes. Read more...
  • 3D point classes in cartesian, cylindrical and spherical coordinates, with cross-conversions and a multitude of operations, including assignment, equality tests, distance computations, vector dot and cross-products, mirroring, addition, subtraction, multiplying, scaling, and projection.
  • The Envelope3 class that computes the extent of a set of 3D points.
  • The Quaternion class that implements Hamilton's generalization of 3D transformation by a magnitude (real) and three angular rotations (imaginary) parts.