./devel/ruby-zeitwerk, Efficient and thread-safe constant autoloader

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.3.0, Package name: ruby26-zeitwerk-2.3.0, Maintainer: pkgsrc-users

Zeitwerk is an efficient and thread-safe code loader for Ruby.

Given a conventional file structure, Zeitwerk is able to load your project's
classes and modules on demand (autoloading), or upfront (eager loading). You
don't need to write `require` calls for your own files, rather, you can
streamline your programming knowing that your classes and modules are
available everywhere. This feature is efficient, thread-safe, and matches
Ruby's semantics for constants.

Zeitwerk is also able to reload code, which may be handy while developing web
applications. Coordination is needed to reload in a thread-safe manner. The
documentation below explains how to do this.


Required to run:
[lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: b4a665e0adc3cd862264eb3e19578c0a470c2e30
RMD160: fea89f013b988e18bbb7c73ed2e42eba113f96c8
Filesize: 23.5 KB

Version history: (Expand)


CVS history: (Expand)


   2020-03-23 17:06:45 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-zeitwerk: update to 2.3.0

Update ruby-zeitwerk to 2.3.0.

2.3.0 (3 March 2020)

* Adds support for collapsing directories.

  For example, if booking/actions/create.rb is meant to define
  Booking::Create because the subdirectory actions is there only for
  organizational purposes, you can tell Zeitwerk with collapse:

	loader.collapse("booking/actions")

  The method also accepts glob patterns to support standardized project
  structures:

	loader.collapse("*/actions")

  Please check the documentation for more details.

* Eager loading is idempotent, but now you can eager load again after
  reloading.
   2020-01-19 16:04:46 by Takahiro Kambe | Files touched by this commit (4)
Log message:
devel/ruby-zeitwerk: add version 2.2.2 package

Add ruby-zeitwerk version 2.2.2 package.

Zeitwerk is an efficient and thread-safe code loader for Ruby.

Given a conventional file structure, Zeitwerk is able to load your project's
classes and modules on demand (autoloading), or upfront (eager loading).  You
don't need to write `require` calls for your own files, rather, you can
streamline your programming knowing that your classes and modules are
available everywhere.  This feature is efficient, thread-safe, and matches
Ruby's semantics for constants.

Zeitwerk is also able to reload code, which may be handy while developing web
applications.  Coordination is needed to reload in a thread-safe manner. The
documentation below explains how to do this.