./devel/ruby-backports, Backports of Ruby features for older ruby

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


Branch: CURRENT, Version: 3.21.0, Package name: ruby26-backports-3.21.0, Maintainer: pkgsrc-users

= Backports Library

* Yearning to use some of the new cool features in Ruby 2.0.0 while using
1.8.6?
* One of your client is stuck with Ruby 1.8.6 but you want to use a gem using
some features of 1.8.7?
* Can't remember if you can use Array#sample or String#each_char on a friend's
box?

This gem is for you!

The goal of 'backports' is to make it easier to write ruby code that runs
across different versions of Ruby. All you need to bring any version of Ruby
up to today's standards:

require 'backports'

This will bring in all the features of 1.8.7 (for Ruby 1.8.6) and many
features of Ruby 1.9.1 (for Ruby 1.8.x), Ruby 1.9.2 and Ruby 1.9.3 (for all
earlier versions)!

+Note+: Although I am a Ruby committer, this gem is a personal project and is
not endorsed by ruby-core.


Required to run:
[lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 360581f2aef090af5be795886c2cf6bcb7b05321
RMD160: 38f4bd79f61ab8078b7d11cc49cdde2f0989d937
Filesize: 132.5 KB

Version history: (Expand)


CVS history: (Expand)


   2021-05-04 09:45:53 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.21.0

3.21.0 - 2021-03-31

Added

* Added String#unpack1 (Ruby 2.4) [#166]
   2021-02-05 17:04:51 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.20.2

3.20.2 (2021-01-27)

* Fix a typo
* Namespace explicitly, but not Ractor
* Don't stop at ractor tests
* Tweak Ractor#inspect
* Ractor: implementation under Backports namespace
* Tweak for 2.2-
* Move filtered_queue
* Add magic constant
* Move backports dependencies out of `ractor/`; use RubyNext if need be
   2021-01-10 15:31:30 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.20.1

## [3.20.1](https://github.com/marcandre/backports/ … ...v3.20.1) - \ 
2021-01-03

### Fixed

* Added `Ractor.[]` and `[]=` [#161]
* `Ractor.current` fixed from threads [#161]

## [3.20.0](https://github.com/marcandre/backports/ … ...v3.20.0) - \ 
2020-12-30

### Added

Ractor backport (all methods)

## [3.19.0](https://github.com/marcandre/backports/ … ...v3.18.2) - \ 
2020-12-28

### Added

* Ruby 3.0 backports

  * Env
    * `except`

  * Hash
    * `except`
    * `transform_keys`, `transform_keys!` (with hash argument)

  * Symbol
    * `name`

* Ruby 2.3 backports

  * Queue
    * `close`, `closed?` (affects `push`, `pop` and aliases)
   2020-09-13 17:16:07 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.18.2

Update ruby-backports to 3.18.2.

3.18.2 - 2020-08-26

* Require per ruby version now properly requiring 2.3.0 backports for
  String [#152]

3.18.1 - 2020-06-23

* Fixed Changelog URI in gem manifest
   2020-08-09 17:08:26 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-backports: update to 3.18.1

Update ruby-backports to 3.18.1.

3.18.1 - 2020-06-23

* Update dependency

3.18.0 - 2020-06-22

* Require per ruby version / all requires now check RUBY_VERSION to be
  more efficient [#149]
   2020-05-25 15:22:13 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-backports: update to 3.17.2

Update ruby-backports to 3.17.2.

3.17.2 - 2020-04-09

Fixed

* Fix Range#cover (Ruby 2.6.0) [#148]
   2020-04-26 10:42:36 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-backports: update to 3.17.1

Update ruby-backports to 3.17.1.

## [3.17.1](https://github.com/marcandre/backports/ … ...v3.17.1) - \ 
2020-04-09

### Fixed

Fix Range#size (Ruby 2.0) on Ruby 1.8.7 [#144]
   2020-03-08 14:28:18 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.17.0

Update ruby-backports to 3.17.0.

## [3.17.0](https://github.com/marcandre/backports/ … ...v3.16.2) - \ 
2020-03-06

### Added

* Ruby 2.6 backports

  * Range
    * `cover?` (with `Range` argument)

### Changed

Requiring features for a particular version of Ruby or `latest` is un-deprecated but
instead simply warned in verbose mode.

## [3.16.1](https://github.com/marcandre/backports/ … ...v3.16.1) - \ 
2020-02-16

### Deprecated

Officially deprecate requiring features for a particular version of Ruby, \ 
`latest`, `std_lib` or `rails` backports

### Fixed

`matrix` library when loaded in 2.7.0 [#141]

## [3.16.0](https://github.com/marcandre/backports/ … ...v3.16.0) - \ 
2020-02-06

### Added

* Ruby 2.7 backports

  * Array
    * `intersection`

  * Comparable
    * `clamp` (with range)

  * Complex
    * `<=>`

  * Enumerable
    * `filter_map`
    * `tally`

  * Enumerator
    * `produce` (class method)

  * Time
    * `floor`, `ceil`