marcandre-backports 1.3.1 → 1.4.0
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 +8 -0
- data/README.rdoc +2 -0
- data/VERSION.yml +2 -2
- data/lib/backports.rb +1 -1
- data/lib/backports/proc.rb +4 -0
- metadata +3 -2
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
|
@@ -69,6 +69,8 @@ Compatible with Ruby 1.8 & 1.9.
|
|
|
69
69
|
* +cycle+
|
|
70
70
|
* Fixnum
|
|
71
71
|
* <tt>odd?</tt>, <tt>even?</tt>
|
|
72
|
+
* Prox
|
|
73
|
+
* +yield+
|
|
72
74
|
|
|
73
75
|
Finally, there is no need to <tt>require 'enumerator'</tt> in older Ruby, and +Enumerator+ can be accessed directly (instead of <tt>Enumerable::Enumerator</tt>)
|
|
74
76
|
|
data/VERSION.yml
CHANGED
data/lib/backports.rb
CHANGED
|
@@ -10,6 +10,6 @@ module Kernel
|
|
|
10
10
|
end unless method_defined? :require_relative
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
%w(object module array enumerable string symbol fixnum hash).each do |lib|
|
|
13
|
+
%w(object module array enumerable string symbol fixnum hash proc).each do |lib|
|
|
14
14
|
require_relative "backports/#{lib}"
|
|
15
15
|
end
|
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.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Marc-Andr\xC3\xA9 Lafortune"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-04-
|
|
12
|
+
date: 2009-04-21 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -35,6 +35,7 @@ files:
|
|
|
35
35
|
- lib/backports/hash.rb
|
|
36
36
|
- lib/backports/module.rb
|
|
37
37
|
- lib/backports/object.rb
|
|
38
|
+
- lib/backports/proc.rb
|
|
38
39
|
- lib/backports/string.rb
|
|
39
40
|
- lib/backports/symbol.rb
|
|
40
41
|
- test/array_test.rb
|