backports 1.7.0 → 1.7.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.
@@ -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 ).
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 7
4
- :patch: 0
4
+ :patch: 1
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{backports}
5
- s.version = "1.7.0"
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-05-31}
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 = [
@@ -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: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
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-05-31 00:00:00 -04:00
12
+ date: 2009-08-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15