ruby-backports 0.0.3 → 0.0.4

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.3
5
+ This documentation refers to ruby-backports version 0.0.4
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -16,6 +16,14 @@ Get all backports suitable for you:
16
16
  require 'backports'
17
17
 
18
18
 
19
+ == LINKS
20
+
21
+ <b></b>
22
+ Documentation:: <http://prometheus.rubyforge.org/ruby-backports>
23
+ Source code:: <http://github.com/blackwinter/ruby-backports>
24
+ Rubyforge project:: <http://rubyforge.org/projects/prometheus>
25
+
26
+
19
27
  == AUTHORS
20
28
 
21
29
  * Jens Wille <mailto:jens.wille@uni-koeln.de>
@@ -2,7 +2,7 @@ require 'digest'
2
2
 
3
3
  class Digest::Base
4
4
 
5
- if RUBY_RELEASE_DATE < '2006-10-25'
5
+ unless method_defined?(:file)
6
6
  unless method_defined?(:_backports_file)
7
7
  alias_method :_backports_original_file, :file if method_defined?(:file)
8
8
 
data/lib/backports/dir.rb CHANGED
@@ -2,7 +2,7 @@ class Dir
2
2
 
3
3
  class << self
4
4
 
5
- if RUBY_RELEASE_DATE < '2007-02-15'
5
+ if Dir.method(:[]).arity == 1
6
6
  unless method_defined?(:_backports_original_brackets)
7
7
  alias_method :_backports_original_brackets, :[]
8
8
 
@@ -2,7 +2,7 @@ require 'tempfile'
2
2
 
3
3
  class Tempfile
4
4
 
5
- if RUBY_RELEASE_DATE < '2007-10-05'
5
+ unless Tempfile.new(['foo?', '!bar']).path =~ /!bar\z/
6
6
  unless method_defined?(:_backports_original_make_tmpname)
7
7
  alias_method :_backports_original_make_tmpname, :make_tmpname
8
8
 
@@ -4,7 +4,7 @@ module Backports
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 3
7
+ TINY = 4
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-27 00:00:00 +01:00
12
+ date: 2009-02-12 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,28 +24,28 @@ extra_rdoc_files:
24
24
  - ChangeLog
25
25
  - README
26
26
  files:
27
- - lib/backports.rb
28
- - lib/backports/version.rb
29
- - lib/backports/dir.rb
30
27
  - lib/backports/digest.rb
31
28
  - lib/backports/tempfile.rb
29
+ - lib/backports/version.rb
30
+ - lib/backports/dir.rb
31
+ - lib/backports.rb
32
+ - Rakefile
32
33
  - COPYING
33
- - README
34
34
  - ChangeLog
35
- - Rakefile
35
+ - README
36
36
  has_rdoc: true
37
37
  homepage: http://prometheus.rubyforge.org/ruby-backports
38
38
  post_install_message:
39
39
  rdoc_options:
40
+ - --line-numbers
41
+ - --inline-source
40
42
  - --title
41
43
  - ruby-backports Application documentation
42
- - --charset
43
- - UTF-8
44
44
  - --main
45
45
  - README
46
+ - --charset
47
+ - UTF-8
46
48
  - --all
47
- - --line-numbers
48
- - --inline-source
49
49
  require_paths:
50
50
  - lib
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements: []
64
64
 
65
65
  rubyforge_project: prometheus
66
- rubygems_version: 1.3.0
66
+ rubygems_version: 1.3.1
67
67
  signing_key:
68
68
  specification_version: 2
69
69
  summary: Backports of newer Ruby features to older versions.