README.md in polyfill-0.4.0 vs README.md in polyfill-0.5.0
- old
+ new
@@ -15,10 +15,12 @@
- [Caveat Emptor](#caveat-emptor)
- [Installation](#installation)
- [Goals](#goals)
- [Usage](#usage)
- [Implementation Table](#implementation-table)
+ - [2.3 to 2.4](#23-to-24)
+ - [2.2 to 2.3](#22-to-23)
## Caveat Emptor
Not all features can be perfectly implemented. This is a best effort
implementation but it's best to always test thoroughly across versions.
@@ -30,11 +32,11 @@
## Installation
Add it to your Gemfile:
```ruby
-gem 'polyfill', '0.4.0'
+gem 'polyfill', '0.5.0'
```
Or install it manually:
```sh
@@ -73,10 +75,17 @@
```ruby
using Polyfill(Numeric: :all)
```
+Updates can be stopped at a specific version by pass it via `:version`. The
+version selected must be formatted as "MAJOR.MINOR".
+
+```ruby
+using Polyfill(version: '2.3', Numeric: :all)
+```
+
Methods can be included in the same way. Prior to Ruby 2.4, refinements did
not work on modules. In order to get methods you'll need to include them after
the module. Calling `using` on a module will add it to all core Ruby classes
that include it. The methods will only be included if they are needed by the
Ruby version running the code.
@@ -192,9 +201,44 @@
| | #upcase! | No |
| Thread | #report\_on\_exception | No |
| | .report\_on\_exception | No |
| TracePoint | #callee_id | No |
| Warning | #warn | No |
+
+### 2.2 to 2.3
+
+| Object | Method | Implemented | Notes |
+| ---------------- | ------------------------ | ----------- | ----- |
+| ARGF | #read_nonblock | No |
+| Array | #bsearch_index | No |
+| | #dig | No |
+| Comparable | #== | No |
+| Enumerable | #chunk | No |
+| | #chunk_while | Yes |
+| | #grep_v | No |
+| | #slice_before | No |
+| Enumerator::Lazy | #grep_v | No |
+| File | .mkfifo | No |
+| Hash | #< | No |
+| | #<= | No |
+| | #> | No |
+| | #>= | No |
+| | #dig | No |
+| | #fetch_values | No |
+| | #to_proc | No |
+| IO | #advise | No |
+| Kernel | #loop | No |
+| Module | #deprecate_constant | No |
+| NameError | #receiver | No |
+| Numeric | #negative? | No |
+| | #positive? | No |
+| Queue | #close | No |
+| String | #+@ | No |
+| | #-@ | No |
+| | .new | Yes |
+| Struct | #dig | No |
+| Thread | #name | No |
+| | #name= | No |
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/AaronLasseigne/polyfill.
Please read the [contributing file](CONTRIBUTING.md) prior to pull requests.