polyfill 0.10.0 → 1.0.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
  SHA1:
3
- metadata.gz: 2646789bd043984386ed6b20e9b260c905ba2101
4
- data.tar.gz: 72dfeaf1acf7aa11b821f18651512bae78094375
3
+ metadata.gz: 7a96e791fce1f6c398fbd95778155ac3b1776a56
4
+ data.tar.gz: bf4bbd4993ee7223e401b20c82e609f842156e3c
5
5
  SHA512:
6
- metadata.gz: 0fe36a6f7dbf6b62c02de9c30b93f41b311fb22f878c8b0e20f7ab22df7e98b224b662523dd8f9742fe10043fe2420c6517ef03f97d75691d94746135018dd75
7
- data.tar.gz: a8b54f02711346857c1dd759356617ea4454ab39305c549ecb5509060dd819ba6bd54b7793e062cd1e0d75a00fd01241155c5e42c4e5d67ba97e8c949040cf42
6
+ metadata.gz: c659eeef9dfb1ba1e6596bdf384f714415e6b049bed9c0da1bc9568dce5afa4b7bf37be50290b1cc2fda4b61398549bc6ba5108c33b8f82876f34db2ef51c812
7
+ data.tar.gz: 13eabaaa7097fbb3c319183631b62ad2a99a34cdd1b2963340a88c1a838a4398c64866c8d6e57e468cfaad3e4ee93ce5d2e5db03b2b37fc6ca7415d770b819e3
@@ -1,4 +1,8 @@
1
- # [0.10.0][]
1
+ # [1.0.0][] (2017-05-15)
2
+
3
+ - Bumped to show stablization of the API
4
+
5
+ # [0.10.0][] (2017-05-15)
2
6
 
3
7
  - v2.3 Numeric#negative?
4
8
  - v2.3 Numeric#positive?
@@ -161,6 +165,7 @@
161
165
  - v2.4 String#concat?
162
166
  - v2.4 String#prepend?
163
167
 
168
+ [1.0.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.10.0...v1.0.0
164
169
  [0.10.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.9.0...v0.10.0
165
170
  [0.9.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.8.0...v0.9.0
166
171
  [0.8.0]: https://github.com/AaronLasseigne/polyfill/compare/v0.7.0...v0.8.0
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Polyfill
2
2
 
3
+ [![Version](https://badge.fury.io/rb/polyfill.svg)](https://rubygems.org/gems/polyfill)
3
4
  [![Build](https://travis-ci.org/AaronLasseigne/polyfill.svg?branch=master)](https://travis-ci.org/AaronLasseigne/polyfill)
4
5
 
5
6
  Polyfill implements newer Ruby features into older versions. If the Ruby
@@ -10,7 +11,6 @@ code that would like newer features but is not completely ready to upgrade
10
11
  Ruby versions. The polyfills are built using refinements so there is **no
11
12
  monkey patching** that may cause issues outside of your use.
12
13
 
13
- - [Caveat Emptor](#caveat-emptor)
14
14
  - [Installation](#installation)
15
15
  - [Goals](#goals)
16
16
  - [Usage](#usage)
@@ -21,21 +21,12 @@ monkey patching** that may cause issues outside of your use.
21
21
  - [2.3](#23)
22
22
  - [2.2](#22)
23
23
 
24
- ## Caveat Emptor
25
-
26
- Not all features can be perfectly implemented. This is a best effort
27
- implementation but it's best to always test thoroughly across versions.
28
- This project is also currently pre-1.0. Breaking changes may occur on
29
- any release. Once a stable API is built it will be moved to 1.0.0.
30
-
31
- See the [implementation table](#implementation-table) for specifics about what has been implemented.
32
-
33
24
  ## Installation
34
25
 
35
26
  Add it to your Gemfile:
36
27
 
37
28
  ```ruby
38
- gem 'polyfill', '0.10.0'
29
+ gem 'polyfill', '~> 1.0'
39
30
  ```
40
31
 
41
32
  Or install it manually:
@@ -121,7 +121,7 @@ def Polyfill(options = {}) # rubocop:disable Style/MethodName
121
121
 
122
122
  instance_methods, class_methods =
123
123
  if methods == :all
124
- [:all, :all]
124
+ %i[all all]
125
125
  else
126
126
  methods
127
127
  .partition { |m| m.start_with?('#') }
@@ -2,7 +2,7 @@ module Polyfill
2
2
  module V2_4
3
3
  module Regexp
4
4
  def match?(string, position = 0)
5
- !!(string[position..-1] =~ self)
5
+ !!(string[position..-1] =~ self) # rubocop:disable Style/InverseMethods
6
6
  end
7
7
  end
8
8
  end
@@ -95,7 +95,7 @@ module Polyfill
95
95
  end
96
96
 
97
97
  def match?(pattern, position = 0)
98
- !!(self[position..-1] =~ pattern)
98
+ !!(self[position..-1] =~ pattern) # rubocop:disable Style/InverseMethods
99
99
  end
100
100
 
101
101
  def prepend(*others)
@@ -16,7 +16,7 @@ module Polyfill
16
16
  end
17
17
 
18
18
  def match?(pattern, position = 0)
19
- !!(self[position..-1] =~ pattern)
19
+ !!(self[position..-1] =~ pattern) # rubocop:disable Style/InverseMethods
20
20
  end
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Polyfill
2
- VERSION = '0.10.0'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'polyfill/version'
@@ -23,7 +24,7 @@ Gem::Specification.new do |spec|
23
24
  spec.require_paths = ['lib']
24
25
 
25
26
  spec.add_development_dependency 'bundler', '~> 1.14'
26
- spec.add_development_dependency 'rake', '~> 10.0'
27
- spec.add_development_dependency 'rspec', '~> 3.5'
28
- spec.add_development_dependency 'rubocop', '~> 0.47.1'
27
+ spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.6'
29
+ spec.add_development_dependency 'rubocop', '~> 0.48.1'
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyfill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.5'
47
+ version: '3.6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.5'
54
+ version: '3.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.47.1
61
+ version: 0.48.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.47.1
68
+ version: 0.48.1
69
69
  description:
70
70
  email:
71
71
  - aaron.lasseigne@gmail.com