sane 0.9.5 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/TODO ADDED
@@ -0,0 +1 @@
1
+ merge with facets where possible!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.10.0
@@ -0,0 +1,7 @@
1
+ module Enumerable
2
+ def ave
3
+ sum = 0
4
+ self.each{|value| sum += value}
5
+ return sum.to_f/self.length
6
+ end
7
+ end
data/sane.gemspec CHANGED
@@ -5,16 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sane}
8
- s.version = "0.9.5"
8
+ s.version = "0.10.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roger Pack"]
12
- s.date = %q{2009-11-17}
12
+ s.date = %q{2009-11-23}
13
13
  s.description = %q{Helper methods for ruby to make it easier to work with out of the box--things that are missing from core but should be there}
14
14
  s.email = ["rogerdpack@gmail.com"]
15
15
  s.extra_rdoc_files = [
16
16
  "ChangeLog",
17
- "README"
17
+ "README",
18
+ "TODO"
18
19
  ]
19
20
  s.files = [
20
21
  "ChangeLog",
@@ -24,6 +25,7 @@ Gem::Specification.new do |s|
24
25
  "lib/_dbg.rb",
25
26
  "lib/sane.rb",
26
27
  "lib/sane/add_regexes.rb",
28
+ "lib/sane/array_ave.rb",
27
29
  "lib/sane/bugs.rb",
28
30
  "lib/sane/enumerable-extra.rb",
29
31
  "lib/sane/float.rb",
data/spec/test_sane.spec CHANGED
@@ -85,6 +85,10 @@ describe TestSane do
85
85
  it "should return false if you call File.executable? non_existent_file" do
86
86
  assert !File.executable?('nonexistent')
87
87
  end
88
+
89
+ it "should have ave method" do
90
+ [1,2,3].ave.should == 2
91
+ end
88
92
 
89
93
 
90
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-17 00:00:00 -07:00
12
+ date: 2009-11-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,7 @@ extensions: []
52
52
  extra_rdoc_files:
53
53
  - ChangeLog
54
54
  - README
55
+ - TODO
55
56
  files:
56
57
  - ChangeLog
57
58
  - README
@@ -60,6 +61,7 @@ files:
60
61
  - lib/_dbg.rb
61
62
  - lib/sane.rb
62
63
  - lib/sane/add_regexes.rb
64
+ - lib/sane/array_ave.rb
63
65
  - lib/sane/bugs.rb
64
66
  - lib/sane/enumerable-extra.rb
65
67
  - lib/sane/float.rb
@@ -71,6 +73,7 @@ files:
71
73
  - sane.gemspec
72
74
  - spec/test_sane.spec
73
75
  - todo
76
+ - TODO
74
77
  has_rdoc: true
75
78
  homepage: http://github.com/rogerdpack/sane_ruby
76
79
  licenses: []