polyfill 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bd877508c8ce8e1361edc7a6110a52e4aba47c286002b4856e65a09eb1d9946
4
- data.tar.gz: a6714f4cad4877c2e3ca70ffa5d34dbd88ce7b1bcd8085aa3e5d706701051bd4
3
+ metadata.gz: bcb65ec1a2b12eb469ae658312c4ee051659eebc2c98472f405e54bacb056624
4
+ data.tar.gz: 7dbe6372b7b71485037aec4c264188f3c82265317191c435de6b5c0847a11f1a
5
5
  SHA512:
6
- metadata.gz: 75accf09cefb4d4a646cfdbdf2470766003a8eabdfc415cb2d3060e97dd7a188e15b65e9f874750138bebe4ae68ce3ee01753f2132d1be7dfff0ddf94d3e9d2e
7
- data.tar.gz: d8a7b0903aed5160246fd64b72d28aec498d104e0912112e9fe8d5e2e110296bca265dde0850c311554c88d2d143fe2dbe7d1badb81a43ffeea075a60d766af2
6
+ metadata.gz: 42582e00e4e9c187611589fd8f9a632023ed7514c129bd7be19506f636d778888f626f4d32d943fdd749880eadb800ee2414e2d28e711859946b1966ce3fcd20
7
+ data.tar.gz: 6d91941964ac11e86fb11bbf0443b4323872d633c7c2c9a813b7fadfe69705524e13018a3efbef630188395afe6578252ca1da6cb5d5851cf6f4c19de3a42b2d
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.1
3
+ - 2.5.3
4
4
  - 2.4.4
5
5
  - 2.3.7
6
6
  - 2.2.10
@@ -1,4 +1,13 @@
1
- # [1.3.0][] (2018-09-09)
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.4'
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
- | | Array | #append | New (alias for `push`)
138
- | | | #prepend | New (alias for `unshift`)
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
- | | Set | #=== | New (alias of `include?`)
213
+ | | Set | #=== | New (alias of `include?`)
214
214
  | ✗ | | #reset | New
215
- | | | #to_s | New (alias of `inspect`)
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
@@ -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
@@ -0,0 +1,13 @@
1
+ module Polyfill
2
+ module V2_5
3
+ module Array
4
+ def append(*args)
5
+ push(*args)
6
+ end
7
+
8
+ def prepend(*args)
9
+ unshift(*args)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Polyfill
2
+ module V2_5
3
+ module Set
4
+ def ===(other)
5
+ include?(other)
6
+ end
7
+
8
+ def to_s
9
+ inspect
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Polyfill
2
- VERSION = Gem::Version.new('1.4.0'.freeze)
2
+ VERSION = Gem::Version.new('1.5.0'.freeze)
3
3
  end
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.0
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-09-09 00:00:00.000000000 Z
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
- rubyforge_project:
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.