README.md in polyfill-1.6.0 vs README.md in polyfill-1.7.0
- old
+ new
@@ -1,9 +1,9 @@
# Polyfill
-[![Version](https://badge.fury.io/rb/polyfill.svg)](https://rubygems.org/gems/polyfill)
-[![Build](https://travis-ci.org/AaronLasseigne/polyfill.svg?branch=master)](https://travis-ci.org/AaronLasseigne/polyfill)
+[![Version](https://img.shields.io/gem/v/polyfill.svg?style=flat-square)](https://rubygems.org/gems/polyfill)
+[![Build](https://img.shields.io/travis/AaronLasseigne/polyfill.svg?style=flat-square)](https://travis-ci.org/AaronLasseigne/polyfill)
Polyfill implements newer Ruby features into older versions. If the Ruby
version already supports the polyfill then calling it does nothing. This is
designed to allow gem maintainers to use newer methods and gain their
advantages while retaining backwards compatibility. It can also be used for
@@ -26,11 +26,11 @@
## Installation
Add it to your Gemfile:
```ruby
-gem 'polyfill', '~> 1.6'
+gem 'polyfill', '~> 1.7'
```
Or install it manually:
```sh
@@ -128,15 +128,15 @@
### 2.6
| | Object | Method | Changes |
|:-:| ---------------- | -------------------------- | ------- |
-| ✗ | Array | #difference | New
+| ✓ | Array | #difference | New
| ✗ | | #filter | New (alias of `select`)
| ✗ | | #filter! | New (alias of `select!`)
| ✗ | | #to_h | Accepts a block that maps elements to new key/value pairs.
-| ✗ | | #union | New
+| ✓ | | #union | New
| ✗ | Binding | #source_location | New
| ✗ | Coverage | .line_stub | New
| ✗ | | .result | Accepts new optional keyword arguments, `:clear` and `:stop`.
| ✗ | | .start | Accepts a new optional keyword argument, `:oneshot_line`.
| ✗ | Dir | #children | New
@@ -147,23 +147,23 @@
| ✗ | | #to_h | Accepts a block that maps elements to new key/value pairs.
| ✗ | Enumerator::Lazy | #filter | New (alias of `select`)
| ✗ | ENV | #to_h | Accepts a block that maps elements to new key/value pairs.
| ✗ | ERB | .new | Accepts new optional keyword arguments, `:eoutvar` and `:trim_mode`.
| ✗ | Exception | #full_message | Accepts new optional keyword arguments, `:highlight` and `:order`.
-| ✗ | File | .binread | Does not invoke external commands even if the path starts with `|`.
-| ✗ | | .binwrite | Does not invoke external commands even if the path starts with `|`.
-| ✗ | | .foreach | Does not invoke external commands even if the path starts with `|`.
-| ✗ | | .read | Does not invoke external commands even if the path starts with `|`.
-| ✗ | | .readlines | Does not invoke external commands even if the path starts with `|`.
-| ✗ | | .write | Does not invoke external commands even if the path starts with `|`.
+| ✗ | File | .binread | Does not invoke external commands even if the path starts with `\|`.
+| ✗ | | .binwrite | Does not invoke external commands even if the path starts with `\|`.
+| ✗ | | .foreach | Does not invoke external commands even if the path starts with `\|`.
+| ✗ | | .read | Does not invoke external commands even if the path starts with `\|`.
+| ✗ | | .readlines | Does not invoke external commands even if the path starts with `\|`.
+| ✗ | | .write | Does not invoke external commands even if the path starts with `\|`.
| ✗ | FileUtils | #cp_lr | New
| ✗ | Hash | #filter | New (alias of `select`)
| ✗ | | #filter! | New (alias of `select!`)
| ✓ | | #merge | Accepts multiple arguments.
-| ✗ | | #merge! | Accepts multiple arguments.
+| ✓ | | #merge! | Accepts multiple arguments.
| ✗ | | #to_h | Accepts a block that maps elements to new key/value pairs.
-| ✗ | | #update | Accepts multiple arguments.
+| ✓ | | #update | Accepts multiple arguments.
| ✗ | Kernel | #BigDecimal | Accepts a new optional keyword argument, `:exception`.
| ✗ | | #Complex | Accepts a new optional keyword argument, `:exception`.
| ✗ | | #exec | Does not close non-standard file descriptors.
| ✗ | | #Float | Accepts a new optional keyword argument, `:exception`.
| ✗ | | #Integer | Accepts a new optional keyword argument, `:exception`.
@@ -186,11 +186,10 @@
| ✗ | | #write_timeout | New
| ✗ | | #write_timeout= | New
| ✗ | NilClass | #=~ | New
| ✗ | NoMethodError | .new | Accepts new optional keyword arguments, `:receiver` and `:key`.
| ✗ | Numeric | #step | Now returns an instance of the Enumerator::ArithmeticSequence class rather than one of the Enumerator class.
-| ✗ | Object | #=~ | Warns that it is deprecated.
| ✗ | OpenStruct | #to_h | Accepts a block that maps keys and values to new keys and values.
| ✗ | Proc | #<< | New
| ✗ | | #>> | New
| ✗ | | .call | No longer changes `$SAFE`.
| ✗ | Random | .bytes | New
@@ -198,12 +197,11 @@
| ✗ | | #=== | Now uses `cover?` instead of `include?`.
| ✗ | | #cover? | Accepts a Range.
| ✗ | | #step | Now returns an instance of the Enumerator::ArithmeticSequence class rather than one of the Enumerator class.
| ✗ | RSS::Parser | .parse | Accepts options as a Hash. Options are `:ignore_unknown_element`, `:parser_class`, and `:validate`.
| ✗ | Set | #filter! | New (alias of `select!`)
-| ✗ | String | #crypt | Warns that it is deprecated.
-| ✗ | | #split | Yields each substring to a block if given.
+| ✓ | String | #split | Yields each substring to a block if given.
| ✗ | Struct | #filter | New (alias of `select`)
| ✗ | | #to_h | Accepts a block that maps keys and values to new keys and values.
| ✗ | Time | #+ | Preserves the timezone.
| ✗ | | #- | Preserves the timezone.
| ✗ | | .new | Accepts a timezone object as well as a UTC offset string.
@@ -485,10 +483,9 @@
| ✗ | | #mlsd | New
| ✗ | Net::HTTP | #open_timeout | Now has a default value of `60`.
| ✓ | Numeric | #negative? | New
| ✓ | | #positive? | New
| ✗ | Object | #define_singleton_method | Now requires a method body, `Proc`, `Method`, or a block.
-| ✗ | | #timeout | Warns that it is deprecated.
| ✗ | ObjectSpace | .count_symbols | New
| ✗ | | .count_imemo_objects | New
| ✗ | | .internal_class_of | New
| ✗ | | .internal_super_of | New
| ✗ | OpenSSL::SSL::SSLSocket | #accept_nonblock | Accepts a new keyword argument, `exception`.