backports 2.5.0 → 2.5.1
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/.gitignore +8 -0
- data/VERSION.yml +3 -3
- data/backports.gemspec +109 -110
- data/lib/backports/1.9.1/file.rb +1 -0
- metadata +8 -8
data/.gitignore
ADDED
data/VERSION.yml
CHANGED
data/backports.gemspec
CHANGED
|
@@ -1,130 +1,129 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "2.5.
|
|
7
|
+
s.name = "backports"
|
|
8
|
+
s.version = "2.5.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Marc-Andr\303\251 Lafortune"]
|
|
12
|
-
s.date =
|
|
13
|
-
s.description =
|
|
14
|
-
|
|
15
|
-
s.email = %q{github@marc-andre.ca}
|
|
12
|
+
s.date = "2012-03-30"
|
|
13
|
+
s.description = " Essential backports that enable some of the really nice features of ruby 1.8.7, ruby 1.9 and rails from ruby 1.8.6 and earlier.\n"
|
|
14
|
+
s.email = "github@marc-andre.ca"
|
|
16
15
|
s.extra_rdoc_files = [
|
|
17
16
|
"LICENSE",
|
|
18
|
-
|
|
17
|
+
"README.rdoc"
|
|
19
18
|
]
|
|
20
19
|
s.files = [
|
|
21
20
|
".document",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
21
|
+
".gitignore",
|
|
22
|
+
".irbrc",
|
|
23
|
+
"CHANGELOG.rdoc",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.rdoc",
|
|
26
|
+
"Rakefile",
|
|
27
|
+
"VERSION.yml",
|
|
28
|
+
"backports.gemspec",
|
|
29
|
+
"lib/backports.rb",
|
|
30
|
+
"lib/backports/1.8.7.rb",
|
|
31
|
+
"lib/backports/1.8.7/argf.rb",
|
|
32
|
+
"lib/backports/1.8.7/array.rb",
|
|
33
|
+
"lib/backports/1.8.7/binding.rb",
|
|
34
|
+
"lib/backports/1.8.7/dir.rb",
|
|
35
|
+
"lib/backports/1.8.7/enumerable.rb",
|
|
36
|
+
"lib/backports/1.8.7/enumerator.rb",
|
|
37
|
+
"lib/backports/1.8.7/env.rb",
|
|
38
|
+
"lib/backports/1.8.7/fixnum.rb",
|
|
39
|
+
"lib/backports/1.8.7/float.rb",
|
|
40
|
+
"lib/backports/1.8.7/gc.rb",
|
|
41
|
+
"lib/backports/1.8.7/hash.rb",
|
|
42
|
+
"lib/backports/1.8.7/integer.rb",
|
|
43
|
+
"lib/backports/1.8.7/io.rb",
|
|
44
|
+
"lib/backports/1.8.7/kernel.rb",
|
|
45
|
+
"lib/backports/1.8.7/method.rb",
|
|
46
|
+
"lib/backports/1.8.7/module.rb",
|
|
47
|
+
"lib/backports/1.8.7/numeric.rb",
|
|
48
|
+
"lib/backports/1.8.7/object_space.rb",
|
|
49
|
+
"lib/backports/1.8.7/proc.rb",
|
|
50
|
+
"lib/backports/1.8.7/process.rb",
|
|
51
|
+
"lib/backports/1.8.7/range.rb",
|
|
52
|
+
"lib/backports/1.8.7/regexp.rb",
|
|
53
|
+
"lib/backports/1.8.7/string.rb",
|
|
54
|
+
"lib/backports/1.8.7/struct.rb",
|
|
55
|
+
"lib/backports/1.8.7/symbol.rb",
|
|
56
|
+
"lib/backports/1.8.8.rb",
|
|
57
|
+
"lib/backports/1.8.rb",
|
|
58
|
+
"lib/backports/1.9.1.rb",
|
|
59
|
+
"lib/backports/1.9.1/array.rb",
|
|
60
|
+
"lib/backports/1.9.1/dir.rb",
|
|
61
|
+
"lib/backports/1.9.1/enumerable.rb",
|
|
62
|
+
"lib/backports/1.9.1/enumerator.rb",
|
|
63
|
+
"lib/backports/1.9.1/env.rb",
|
|
64
|
+
"lib/backports/1.9.1/file.rb",
|
|
65
|
+
"lib/backports/1.9.1/float.rb",
|
|
66
|
+
"lib/backports/1.9.1/hash.rb",
|
|
67
|
+
"lib/backports/1.9.1/integer.rb",
|
|
68
|
+
"lib/backports/1.9.1/io.rb",
|
|
69
|
+
"lib/backports/1.9.1/kernel.rb",
|
|
70
|
+
"lib/backports/1.9.1/math.rb",
|
|
71
|
+
"lib/backports/1.9.1/numeric.rb",
|
|
72
|
+
"lib/backports/1.9.1/proc.rb",
|
|
73
|
+
"lib/backports/1.9.1/range.rb",
|
|
74
|
+
"lib/backports/1.9.1/regexp.rb",
|
|
75
|
+
"lib/backports/1.9.1/stdlib.rb",
|
|
76
|
+
"lib/backports/1.9.1/stdlib/prime.rb",
|
|
77
|
+
"lib/backports/1.9.1/string.rb",
|
|
78
|
+
"lib/backports/1.9.1/symbol.rb",
|
|
79
|
+
"lib/backports/1.9.2.rb",
|
|
80
|
+
"lib/backports/1.9.2/array.rb",
|
|
81
|
+
"lib/backports/1.9.2/complex.rb",
|
|
82
|
+
"lib/backports/1.9.2/dir.rb",
|
|
83
|
+
"lib/backports/1.9.2/enumerable.rb",
|
|
84
|
+
"lib/backports/1.9.2/float.rb",
|
|
85
|
+
"lib/backports/1.9.2/hash.rb",
|
|
86
|
+
"lib/backports/1.9.2/kernel.rb",
|
|
87
|
+
"lib/backports/1.9.2/match_data.rb",
|
|
88
|
+
"lib/backports/1.9.2/random.rb",
|
|
89
|
+
"lib/backports/1.9.2/random/MT19937.rb",
|
|
90
|
+
"lib/backports/1.9.2/random/bits_and_bytes.rb",
|
|
91
|
+
"lib/backports/1.9.2/random/implementation.rb",
|
|
92
|
+
"lib/backports/1.9.2/random/load.rb",
|
|
93
|
+
"lib/backports/1.9.2/stdlib.rb",
|
|
94
|
+
"lib/backports/1.9.2/stdlib/matrix.rb",
|
|
95
|
+
"lib/backports/1.9.2/stdlib/matrix/eigenvalue_decomposition.rb",
|
|
96
|
+
"lib/backports/1.9.2/stdlib/matrix/lup_decomposition.rb",
|
|
97
|
+
"lib/backports/1.9.2/stdlib/set.rb",
|
|
98
|
+
"lib/backports/1.9.3.rb",
|
|
99
|
+
"lib/backports/1.9.3/file.rb",
|
|
100
|
+
"lib/backports/1.9.3/io.rb",
|
|
101
|
+
"lib/backports/1.9.3/string.rb",
|
|
102
|
+
"lib/backports/1.9.rb",
|
|
103
|
+
"lib/backports/basic_object.rb",
|
|
104
|
+
"lib/backports/force/array_map.rb",
|
|
105
|
+
"lib/backports/force/enumerable_map.rb",
|
|
106
|
+
"lib/backports/force/hash_select.rb",
|
|
107
|
+
"lib/backports/force/string_length.rb",
|
|
108
|
+
"lib/backports/force/string_size.rb",
|
|
109
|
+
"lib/backports/rails.rb",
|
|
110
|
+
"lib/backports/rails/array.rb",
|
|
111
|
+
"lib/backports/rails/enumerable.rb",
|
|
112
|
+
"lib/backports/rails/hash.rb",
|
|
113
|
+
"lib/backports/rails/kernel.rb",
|
|
114
|
+
"lib/backports/rails/module.rb",
|
|
115
|
+
"lib/backports/rails/string.rb",
|
|
116
|
+
"lib/backports/tools.rb",
|
|
117
|
+
"test/README"
|
|
118
118
|
]
|
|
119
|
-
s.homepage =
|
|
120
|
-
s.rdoc_options = ["--title", "Backports library", "--main", "README.rdoc", "--line-numbers", "--inline-source"]
|
|
119
|
+
s.homepage = "http://github.com/marcandre/backports"
|
|
120
|
+
s.rdoc_options = ["--charset=UTF-8", "--title", "Backports library", "--main", "README.rdoc", "--line-numbers", "--inline-source"]
|
|
121
121
|
s.require_paths = ["lib"]
|
|
122
|
-
s.rubyforge_project =
|
|
123
|
-
s.rubygems_version =
|
|
124
|
-
s.summary =
|
|
122
|
+
s.rubyforge_project = "backports"
|
|
123
|
+
s.rubygems_version = "1.8.11"
|
|
124
|
+
s.summary = "Backports of Ruby 1.8.7+ for older ruby."
|
|
125
125
|
|
|
126
126
|
if s.respond_to? :specification_version then
|
|
127
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
128
127
|
s.specification_version = 3
|
|
129
128
|
|
|
130
129
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/backports/1.9.1/file.rb
CHANGED
|
@@ -25,6 +25,7 @@ class File
|
|
|
25
25
|
rescue StandardError
|
|
26
26
|
def open_with_options_hash(file, mode = nil, perm = Backports::Undefined, options = Backports::Undefined)
|
|
27
27
|
mode, perm = Backports.combine_mode_perm_and_option(mode, perm, options)
|
|
28
|
+
perm ||= 0666 # Avoid error on Rubinius, see issue #52
|
|
28
29
|
if block_given?
|
|
29
30
|
open_without_options_hash(file, mode, perm){|f| yield f}
|
|
30
31
|
else
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: backports
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 25
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 2.5.
|
|
9
|
+
- 1
|
|
10
|
+
version: 2.5.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "Marc-Andr\xC3\xA9 Lafortune"
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-03-
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2012-03-30 00:00:00 Z
|
|
20
19
|
dependencies: []
|
|
21
20
|
|
|
22
21
|
description: " Essential backports that enable some of the really nice features of ruby 1.8.7, ruby 1.9 and rails from ruby 1.8.6 and earlier.\n"
|
|
@@ -30,6 +29,7 @@ extra_rdoc_files:
|
|
|
30
29
|
- README.rdoc
|
|
31
30
|
files:
|
|
32
31
|
- .document
|
|
32
|
+
- .gitignore
|
|
33
33
|
- .irbrc
|
|
34
34
|
- CHANGELOG.rdoc
|
|
35
35
|
- LICENSE
|
|
@@ -126,12 +126,12 @@ files:
|
|
|
126
126
|
- lib/backports/rails/string.rb
|
|
127
127
|
- lib/backports/tools.rb
|
|
128
128
|
- test/README
|
|
129
|
-
has_rdoc: true
|
|
130
129
|
homepage: http://github.com/marcandre/backports
|
|
131
130
|
licenses: []
|
|
132
131
|
|
|
133
132
|
post_install_message:
|
|
134
133
|
rdoc_options:
|
|
134
|
+
- --charset=UTF-8
|
|
135
135
|
- --title
|
|
136
136
|
- Backports library
|
|
137
137
|
- --main
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
requirements: []
|
|
162
162
|
|
|
163
163
|
rubyforge_project: backports
|
|
164
|
-
rubygems_version: 1.
|
|
164
|
+
rubygems_version: 1.8.11
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 3
|
|
167
167
|
summary: Backports of Ruby 1.8.7+ for older ruby.
|