marcandre-backports 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION.yml +1 -1
- data/backports.gemspec +2 -2
- data/lib/backports/enumerable.rb +1 -1
- metadata +4 -3
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Packable --- History
|
2
2
|
|
3
|
+
== Version 1.7.1 - August 20, 2009
|
4
|
+
|
5
|
+
Enumerable#take and Enumerable#first(n) are now returning as soon as possible. Previously, #each was yielding one element too many. See redmine issue #1554.
|
6
|
+
|
3
7
|
== Version 1.7 - May 27, 2009
|
4
8
|
|
5
9
|
Porting all 1.8.7 features to rubinius was quite enlightening (http://blog.marc-andre.ca/2009/05/schizo-ruby-puzzle.html ).
|
data/VERSION.yml
CHANGED
data/backports.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{backports}
|
5
|
-
s.version = "1.7.
|
5
|
+
s.version = "1.7.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Marc-Andr\303\251 Lafortune"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-08-20}
|
10
10
|
s.description = %q{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.}
|
11
11
|
s.email = %q{github@marc-andre.ca}
|
12
12
|
s.extra_rdoc_files = [
|
data/lib/backports/enumerable.rb
CHANGED
@@ -218,8 +218,8 @@ module Enumerable
|
|
218
218
|
raise ArgumentError, "attempt to take negative size: #{n}" if n < 0
|
219
219
|
returning([]) do |array|
|
220
220
|
each do |elem|
|
221
|
-
break if array.size >= n
|
222
221
|
array << elem
|
222
|
+
break if array.size >= n
|
223
223
|
end unless n <= 0
|
224
224
|
end
|
225
225
|
end unless method_defined? :take
|
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.7.
|
4
|
+
version: 1.7.1
|
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-
|
12
|
+
date: 2009-08-20 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- test/test_helper.rb
|
74
74
|
has_rdoc: true
|
75
75
|
homepage: http://github.com/marcandre/backports
|
76
|
+
licenses:
|
76
77
|
post_install_message:
|
77
78
|
rdoc_options:
|
78
79
|
- --charset=UTF-8
|
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
100
|
requirements: []
|
100
101
|
|
101
102
|
rubyforge_project: backports
|
102
|
-
rubygems_version: 1.
|
103
|
+
rubygems_version: 1.3.5
|
103
104
|
signing_key:
|
104
105
|
specification_version: 2
|
105
106
|
summary: Backports or ruby 1.8.7+ & rails for older ruby.
|