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

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


Branch: CURRENT, Version: 3.25.0, Package name: ruby32-backports-3.25.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:

Filesize: 137.5 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-10 16:01:46 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.25.0

3.25.0 (2024-03-05)

Added

* MatchData#named_captures (with symbolize_keys option, Ruby 3.3)
* Range.reverse_each (Ruby 3.3)
* Range#overlap? (Ruby 3.3)
   2023-04-08 15:27:27 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-backports: update to 3.24.1

3.24.1 (2023-04-05)

* Fix Data.new to accept let positional parameters than needed.  Add missing
  test [Fixes #187]
   2023-03-17 15:27:47 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.24.0

3.24.0 (2023-03-07)

Added

* Class#attached_object (Ruby 3.2)
* Data (Ruby 3.2)
* Enumerator.product and Enumerator::Product (Ruby 3.2)
* Hash#shift (with correct behavior when empty) (Ruby 3.2)
* Integer#ceildiv (Ruby 3.2)
* MatchData#byteoffset (Ruby 3.2)
* Symbol#start_with? (Ruby 2.7)

Fixed

* Class#descendants (removed, as it was not actually added in Ruby 3.1,
  sorry)
   2022-02-12 13:12:32 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-backports: update to 3.23.0

3.23.0 (2021-12-28)

Added

* Integer.try_convert (Ruby 3.1)
* Symbol.end_with? (Ruby 2.7) [#171]

3.22.1 (2021-12-27)

Added

* Ruby 3.1 backports:

Array

* intersect?

Class

* descendants
* subclasses

Enumerable

* compact
* tally (with hash argument)

File

* dirname (with depth argument)

MatchData

* match
* match_length

Struct

* keyword_init?
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   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