rogerdpack-sane 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/enumerable-extra.rb +12 -0
  2. metadata +1 -1
@@ -3,6 +3,17 @@ module Enumerable
3
3
 
4
4
  alias old_map map
5
5
  alias old_collect collect
6
+ =begin unused as it clashes with rails' own #sum
7
+ apparently
8
+ C:\dev\ruby\bridal>ruby test\functional\store_controller_test.rb
9
+ test/functional/../test_helper
10
+ C:/dev/ruby/bridal/config/../lib/sane-0.1.4/lib/enumerable-extra.rb:12:in `+': can't convert String into Array (TypeError)
11
+ from C:/dev/ruby/bridal/config/../lib/sane-0.1.4/lib/enumerable-extra.rb:12:in `sum'
12
+ from C:/dev/ruby/bridal/config/../lib/sane-0.1.4/lib/enumerable-extra.rb:12:in `each'
13
+ from C:/dev/ruby/bridal/config/../lib/sane-0.1.4/lib/enumerable-extra.rb:12:in `sum'
14
+ from C:/dev/ruby/bridal/vendor/rails/actionpack/lib/action_controller/layout.rb:189:in `layout_list'
15
+
16
+ 2.1
6
17
 
7
18
  # Returns the numeric total of the elements of +enum+, using +total+ as
8
19
  # an accumulator (0 by default). Raises an error if any of the elements
@@ -12,6 +23,7 @@ module Enumerable
12
23
  each{ |val| total += val }
13
24
  total
14
25
  end
26
+ =end
15
27
 
16
28
  # Returns a new array containing the results of running +method+ once for
17
29
  # every element in the enumerable object. If both arguments and a block
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogerdpack-sane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack