polyfill 0.9.0 → 0.10.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +22 -8
- data/README.md +5 -3
- data/lib/polyfill/v2_3.rb +1 -0
- data/lib/polyfill/v2_3/numeric.rb +13 -0
- data/lib/polyfill/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2646789bd043984386ed6b20e9b260c905ba2101
|
4
|
+
data.tar.gz: 72dfeaf1acf7aa11b821f18651512bae78094375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fe36a6f7dbf6b62c02de9c30b93f41b311fb22f878c8b0e20f7ab22df7e98b224b662523dd8f9742fe10043fe2420c6517ef03f97d75691d94746135018dd75
|
7
|
+
data.tar.gz: a8b54f02711346857c1dd759356617ea4454ab39305c549ecb5509060dd819ba6bd54b7793e062cd1e0d75a00fd01241155c5e42c4e5d67ba97e8c949040cf42
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# [0.10.0][]
|
2
|
+
|
3
|
+
- v2.3 Numeric#negative?
|
4
|
+
- v2.3 Numeric#positive?
|
5
|
+
|
1
6
|
# [0.9.0][] (2017-05-05)
|
2
7
|
|
3
8
|
## Added
|
@@ -156,6 +161,7 @@
|
|
156
161
|
- v2.4 String#concat?
|
157
162
|
- v2.4 String#prepend?
|
158
163
|
|
164
|
+
[0.10.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.9.0...v0.10.0
|
159
165
|
[0.9.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.8.0...v0.9.0
|
160
166
|
[0.8.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.7.0...v0.8.0
|
161
167
|
[0.7.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.6.0...v0.7.0
|
data/CONTRIBUTING.md
CHANGED
@@ -31,7 +31,7 @@ These are the steps that you'll need to follow for submitting code:
|
|
31
31
|
|
32
32
|
The goal is to produce code that is identical to the real method. To
|
33
33
|
ensure that nothing breaks and the new code is good we need tests! One
|
34
|
-
of the best places to find examples is the [Ruby Spec Suite]. If
|
34
|
+
of the best places to find examples is the [Ruby Spec Suite]. If they
|
35
35
|
have tests for the new functionality then make sure those same cases
|
36
36
|
are covered.
|
37
37
|
|
@@ -58,14 +58,28 @@ bring it up and we'll figure it out.
|
|
58
58
|
|
59
59
|
#### Lib
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
Instance methods can be added or updated directly in a module of the
|
62
|
+
same name. All class methods will be in a nested module named
|
63
|
+
`ClassMethods`. The class methods should be instance methods within
|
64
|
+
that module.
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
```ruby
|
67
|
+
module Polyfill
|
68
|
+
module V2_4
|
69
|
+
module Array
|
70
|
+
module ClassMethods
|
71
|
+
def example_class_method
|
72
|
+
# ...
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def example_instance_method
|
77
|
+
# ...
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
```
|
69
83
|
|
70
84
|
Reusing the names of core classes means that in your methods you'll
|
71
85
|
need to make sure you reference the top level class by preceding it
|
data/README.md
CHANGED
@@ -14,6 +14,8 @@ monkey patching** that may cause issues outside of your use.
|
|
14
14
|
- [Installation](#installation)
|
15
15
|
- [Goals](#goals)
|
16
16
|
- [Usage](#usage)
|
17
|
+
- [Polyfill](#polyfill-1)
|
18
|
+
- [Polyfill.get](#polyfillget)
|
17
19
|
- [Implementation Table](#implementation-table)
|
18
20
|
- [2.4](#24)
|
19
21
|
- [2.3](#23)
|
@@ -33,7 +35,7 @@ See the [implementation table](#implementation-table) for specifics about what h
|
|
33
35
|
Add it to your Gemfile:
|
34
36
|
|
35
37
|
```ruby
|
36
|
-
gem 'polyfill', '0.
|
38
|
+
gem 'polyfill', '0.10.0'
|
37
39
|
```
|
38
40
|
|
39
41
|
Or install it manually:
|
@@ -282,8 +284,8 @@ end
|
|
282
284
|
| | #mlst | No |
|
283
285
|
| | #mlsd | No |
|
284
286
|
| Net::HTTP | #open_timeout | No |
|
285
|
-
| Numeric | #negative? |
|
286
|
-
| | #positive? |
|
287
|
+
| Numeric | #negative? | Yes |
|
288
|
+
| | #positive? | Yes |
|
287
289
|
| Object | #define_singleton_method | No |
|
288
290
|
| | #timeout | No |
|
289
291
|
| ObjectSpace | .count_symbols | No |
|
data/lib/polyfill/v2_3.rb
CHANGED
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: 0.
|
4
|
+
version: 0.10.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: 2017-05-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/polyfill/v2_3/enumerator/lazy.rb
|
98
98
|
- lib/polyfill/v2_3/hash.rb
|
99
99
|
- lib/polyfill/v2_3/kernel.rb
|
100
|
+
- lib/polyfill/v2_3/numeric.rb
|
100
101
|
- lib/polyfill/v2_3/string.rb
|
101
102
|
- lib/polyfill/v2_3/struct.rb
|
102
103
|
- lib/polyfill/v2_4.rb
|