marcandre-backports 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,13 @@
1
1
  = Packable --- History
2
2
 
3
+ == Version 1.4 - April 21, 2009
4
+
5
+ * String
6
+ * +rpartition+
7
+
8
+ * Proc
9
+ * +yield+
10
+
3
11
  == Version 1.3 - April 17, 2009
4
12
 
5
13
  * Enumerable
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 3
4
- :patch: 1
3
+ :minor: 4
4
+ :patch: 0
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
@@ -0,0 +1,4 @@
1
+ class Proc
2
+ # Standard in ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Proc.html]
3
+ alias_method :yield, :call unless method_defined? :yield
4
+ 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.3.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-20 00:00:00 -07:00
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