polyfill 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +11 -1
- data/README.md +5 -5
- data/lib/polyfill/v2_5.rb +2 -0
- data/lib/polyfill/v2_5/array.rb +13 -0
- data/lib/polyfill/v2_5/set.rb +13 -0
- data/lib/polyfill/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcb65ec1a2b12eb469ae658312c4ee051659eebc2c98472f405e54bacb056624
|
4
|
+
data.tar.gz: 7dbe6372b7b71485037aec4c264188f3c82265317191c435de6b5c0847a11f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42582e00e4e9c187611589fd8f9a632023ed7514c129bd7be19506f636d778888f626f4d32d943fdd749880eadb800ee2414e2d28e711859946b1966ce3fcd20
|
7
|
+
data.tar.gz: 6d91941964ac11e86fb11bbf0443b4323872d633c7c2c9a813b7fadfe69705524e13018a3efbef630188395afe6578252ca1da6cb5d5851cf6f4c19de3a42b2d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
# [1.
|
1
|
+
# [1.5.0][] (2018-12-30)
|
2
|
+
|
3
|
+
## Added
|
4
|
+
|
5
|
+
- v2.5 Array#append
|
6
|
+
- v2.5 Array#prepend
|
7
|
+
- v2.5 Set#===
|
8
|
+
- v2.5 Set#to_s
|
9
|
+
|
10
|
+
# [1.4.0][] (2018-09-09)
|
2
11
|
|
3
12
|
## Added
|
4
13
|
|
@@ -248,6 +257,7 @@ incorrect type was passed:
|
|
248
257
|
- v2.4 String#concat?
|
249
258
|
- v2.4 String#prepend?
|
250
259
|
|
260
|
+
[1.5.0]: https://github.com/AaronLasseigne/polyfill/compare/v1.4.0...v1.5.0
|
251
261
|
[1.4.0]: https://github.com/AaronLasseigne/polyfill/compare/v1.3.0...v1.4.0
|
252
262
|
[1.3.0]: https://github.com/AaronLasseigne/polyfill/compare/v1.2.0...v1.3.0
|
253
263
|
[1.2.0]: https://github.com/AaronLasseigne/polyfill/compare/v1.1.0...v1.2.0
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ monkey patching** that may cause issues outside of your use.
|
|
27
27
|
Add it to your Gemfile:
|
28
28
|
|
29
29
|
```ruby
|
30
|
-
gem 'polyfill', '~> 1.
|
30
|
+
gem 'polyfill', '~> 1.5'
|
31
31
|
```
|
32
32
|
|
33
33
|
Or install it manually:
|
@@ -134,8 +134,8 @@ though they have techically changed. `FrozenError` is a subclass of
|
|
134
134
|
|
135
135
|
| | Object | Method | Changes |
|
136
136
|
|:-:| ---------------- | ------------------------ | ------- |
|
137
|
-
|
|
138
|
-
|
|
137
|
+
| ✓ | Array | #append | New (alias for `push`)
|
138
|
+
| ✓ | | #prepend | New (alias for `unshift`)
|
139
139
|
| ✓ | BigDecimal | #clone | Returns the receiver itself instead of making a new instance.
|
140
140
|
| ✓ | | #dup | Returns the receiver itself instead of making a new instance.
|
141
141
|
| ✓ | Dir | .children | New
|
@@ -210,9 +210,9 @@ though they have techically changed. `FrozenError` is a subclass of
|
|
210
210
|
| ✗ | Range | .initialize | No longer hides exceptions when comparing begin and end with `<=>` and raise a "bad value for range" `ArgumentError` but instead lets the exception from the `<=>` call go through.
|
211
211
|
| ✗ | Random | #urandom | Renamed from `raw_seed`.
|
212
212
|
| ✗ | SecureRandom | .alphanumeric | New
|
213
|
-
|
|
213
|
+
| ✓ | Set | #=== | New (alias of `include?`)
|
214
214
|
| ✗ | | #reset | New
|
215
|
-
|
|
215
|
+
| ✓ | | #to_s | New (alias of `inspect`)
|
216
216
|
| ✓ | String | #casecmp | Returns `nil` for non-string arguments instead of raising a `TypeError`.
|
217
217
|
| ✓ | | #casecmp? | Returns `nil` for non-string arguments instead of raising a `TypeError`.
|
218
218
|
| ✓ | | #delete_prefix | New
|
data/lib/polyfill/v2_5.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require_relative 'v2_5/array'
|
1
2
|
require_relative 'v2_5/dir'
|
2
3
|
require_relative 'v2_5/enumerable'
|
3
4
|
require_relative 'v2_5/hash'
|
@@ -8,6 +9,7 @@ require_relative 'v2_5/struct'
|
|
8
9
|
require_relative 'v2_5/time'
|
9
10
|
|
10
11
|
require_relative 'v2_5/big_decimal'
|
12
|
+
require_relative 'v2_5/set'
|
11
13
|
|
12
14
|
module Polyfill
|
13
15
|
module V2_5
|
data/lib/polyfill/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyfill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Lasseigne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -124,12 +124,14 @@ files:
|
|
124
124
|
- lib/polyfill/v2_4/string_io.rb
|
125
125
|
- lib/polyfill/v2_4/symbol.rb
|
126
126
|
- lib/polyfill/v2_5.rb
|
127
|
+
- lib/polyfill/v2_5/array.rb
|
127
128
|
- lib/polyfill/v2_5/big_decimal.rb
|
128
129
|
- lib/polyfill/v2_5/dir.rb
|
129
130
|
- lib/polyfill/v2_5/enumerable.rb
|
130
131
|
- lib/polyfill/v2_5/hash.rb
|
131
132
|
- lib/polyfill/v2_5/integer.rb
|
132
133
|
- lib/polyfill/v2_5/kernel.rb
|
134
|
+
- lib/polyfill/v2_5/set.rb
|
133
135
|
- lib/polyfill/v2_5/string.rb
|
134
136
|
- lib/polyfill/v2_5/struct.rb
|
135
137
|
- lib/polyfill/v2_5/time.rb
|
@@ -154,8 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
156
|
- !ruby/object:Gem::Version
|
155
157
|
version: '0'
|
156
158
|
requirements: []
|
157
|
-
|
158
|
-
rubygems_version: 2.7.6
|
159
|
+
rubygems_version: 3.0.1
|
159
160
|
signing_key:
|
160
161
|
specification_version: 4
|
161
162
|
summary: Adds newer Ruby methods to older versions.
|