ruby-backports 0.0.2 → 0.0.3

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/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to ruby-backports version 0.0.2
5
+ This documentation refers to ruby-backports version 0.0.3
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -0,0 +1,24 @@
1
+ require 'digest'
2
+
3
+ class Digest::Base
4
+
5
+ if RUBY_RELEASE_DATE < '2006-10-25'
6
+ unless method_defined?(:_backports_file)
7
+ alias_method :_backports_original_file, :file if method_defined?(:file)
8
+
9
+ def file(name)
10
+ File.open(name, 'rb') { |f|
11
+ buf = ''
12
+ while f.read(16384, buf)
13
+ update buf
14
+ end
15
+ }
16
+
17
+ self
18
+ end
19
+
20
+ alias_method :_backports_file, :file
21
+ end
22
+ end
23
+
24
+ end
@@ -4,7 +4,7 @@ module Backports
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 2
7
+ TINY = 3
8
8
 
9
9
  class << self
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -27,6 +27,7 @@ files:
27
27
  - lib/backports.rb
28
28
  - lib/backports/version.rb
29
29
  - lib/backports/dir.rb
30
+ - lib/backports/digest.rb
30
31
  - lib/backports/tempfile.rb
31
32
  - COPYING
32
33
  - README