marcandre-backports 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/backports/string.rb +7 -7
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 6
4
- :patch: 3
4
+ :patch: 4
@@ -68,13 +68,13 @@ class String
68
68
 
69
69
  make_block_optional :each_byte, :each, :each_line, :test_on => "abc"
70
70
 
71
- unless ("abc".gsub(/./) rescue false)
72
- def gsub_with_optional_block(*arg, &block)
73
- return to_enum(:gsub_with_optional_block, *arg, &block) unless block_given? || arg.size > 1
74
- gsub_without_optional_block(*arg, &block)
75
- end
76
- alias_method_chain :gsub, :optional_block
77
- end
71
+ # unless ("abc".gsub(/./) rescue false)
72
+ # def gsub_with_optional_block(*arg, &block)
73
+ # return to_enum(:gsub_with_optional_block, *arg, &block) unless block_given? || arg.size > 1
74
+ # gsub_without_optional_block(*arg, &block)
75
+ # end
76
+ # alias_method_chain :gsub, :optional_block
77
+ # end
78
78
 
79
79
  # Standard in ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/String.html]
80
80
  unless method_defined? :each_char
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marcandre-backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Marc-Andr\xC3\xA9 Lafortune"