backports 1.10.1 → 1.10.2
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.
- data/CHANGELOG.rdoc +1 -1
- data/VERSION.yml +1 -1
- data/backports.gemspec +1 -1
- data/lib/backports/1.8.7.rb +1 -1
- data/lib/backports/1.8.7/argf.rb +2 -2
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/VERSION.yml
CHANGED
data/backports.gemspec
CHANGED
data/lib/backports/1.8.7.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + "/tools")
|
|
2
|
-
%w(module kernel array enumerable enumerator string symbol integer numeric fixnum hash proc binding dir io method regexp struct float object_space argf gc env process).each do |lib|
|
|
2
|
+
%w(module kernel array enumerable enumerator string symbol integer numeric fixnum hash proc binding dir io method range regexp struct float object_space argf gc env process).each do |lib|
|
|
3
3
|
Backports.require_relative "1.8.7/#{lib}"
|
|
4
4
|
end
|
data/lib/backports/1.8.7/argf.rb
CHANGED
|
@@ -45,10 +45,10 @@ class << ARGF
|
|
|
45
45
|
end unless method_defined? :each_char
|
|
46
46
|
|
|
47
47
|
# No official documentation...
|
|
48
|
-
alias_method :getbyte, :getc
|
|
48
|
+
alias_method :getbyte, :getc unless method_defined? :getbyte
|
|
49
49
|
|
|
50
50
|
# No official documentation...
|
|
51
|
-
alias_method :readbyte, :readchar
|
|
51
|
+
alias_method :readbyte, :readchar unless method_defined? :readbyte
|
|
52
52
|
|
|
53
53
|
# No official documentation...
|
|
54
54
|
def lines(*args)
|