backports 3.11.3 → 3.11.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6221e2957392ceef7046212b4700e72a29c465e1
4
- data.tar.gz: cb89d81be38cee787dd485539c569b829239f4f9
3
+ metadata.gz: 34204ecd79e022cc9d1096bfb9a5fe1258fe288d
4
+ data.tar.gz: 8b91a3d894e3d6a7a846a411d133092855cdc360
5
5
  SHA512:
6
- metadata.gz: 95ed8884c48d73fd8a256a8349b1a6153f87c470b59192a68077007faf20d1060c4eab829e78593551ba83ed2c1167c883c2c06ff35e7c3313add7bbd061c0b9
7
- data.tar.gz: 3dfa16f8fb066bddc0aee4258fc0d3d21d23c518570e13a4fb5ce9b202a61768a11d621daf04900533c1343eeedcf7f4785862115263380a203f17e5e463bcb5
6
+ metadata.gz: da12841604ea64a39db7c6872981ff708180b8e0ad6b2c2185efeff54640cba276bdde9e2f7bad8e97f7b490be00d3c06ed5ea6a55592ba686c981865b0f7975
7
+ data.tar.gz: 9d6c0ec16579891f0a6322e6da92316cf74c3e747f3b4de686ed22dd1ed212061fd6ee0d6cd0b6f9bc7640f1424094b7ef14b1c792b3ac9a083512eab184eab2
@@ -25,7 +25,7 @@
25
25
  * +delete_suffix+, +delete_suffix!+
26
26
  * Struct
27
27
  * +new+ (with <code>keyword_init: true</code>)
28
- * <tt>require 'backports/latest'</tt> is now the right way to require everything
28
+ * <tt>require 'backports/latest'</tt> is now the way to require everything, but is discouraged
29
29
 
30
30
  == Version 3.10.0 - October 17, 2017
31
31
 
@@ -1,4 +1,4 @@
1
- = Backports Library {<img src="https://travis-ci.org/marcandre/backports.png?branch=master">}[https://travis-ci.org/marcandre/backports] {<img src="https://badge.fury.io/rb/backports.png" alt="Gem Version" />}[http://badge.fury.io/rb/backports]
1
+ = Backports Library {<img src="https://travis-ci.org/marcandre/backports.svg?branch=master">}[https://travis-ci.org/marcandre/backports] {<img src="https://badge.fury.io/rb/backports.svg" alt="Gem Version" />}[http://badge.fury.io/rb/backports]
2
2
 
3
3
  Yearning to use some of the new cool features in Ruby 2.5 while using 2.3.x? Have some legacy code in Ruby 1.8 but can't live without `flat_map`?
4
4
 
@@ -111,9 +111,9 @@ Compatible with Ruby itself, JRuby and Rubinius.
111
111
  * +compact+, +compact!+
112
112
  * +transform_values+, +transform_values!+
113
113
  * Regexp
114
- * +match?+
114
+ * +match?+ (slow)
115
115
  * String
116
- * +match?+
116
+ * +match?+ (slow)
117
117
  * FalseClass, Fixnum, Float, NilClass, TrueClass
118
118
  * +dup+
119
119
 
@@ -1,11 +1,7 @@
1
1
  unless Regexp.method_defined? :match?
2
2
  class Regexp
3
3
  def match?(*args)
4
- # Fiber to avoid setting $~
5
- f = Fiber.new do
6
- !match(*args).nil?
7
- end
8
- f.resume
4
+ !match(*args).nil?
9
5
  end
10
6
  end
11
7
  end
@@ -1,11 +1,7 @@
1
1
  unless String.method_defined? :match?
2
2
  class String
3
3
  def match?(*args)
4
- # Fiber to avoid setting $~
5
- f = Fiber.new do
6
- !match(*args).nil?
7
- end
8
- f.resume
4
+ !match(*args).nil?
9
5
  end
10
6
  end
11
7
  end
@@ -19,7 +19,7 @@ module Backports
19
19
  rescue LocalJumpError
20
20
  false
21
21
  end
22
- next if result.class.name =~ /Enumerator$/
22
+ next if result.class.name =~ /Enumerator/
23
23
  end
24
24
  require 'enumerator'
25
25
  arity = mod.instance_method(selector).arity
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.11.3" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.11.4" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.3
4
+ version: 3.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Essential backports that enable many of the nice features of Ruby 1.8.7
14
14
  up to 2.1.0 for earlier versions.