mean 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -1
  2. data/README.rdoc +35 -17
  3. data/lib/mean.rb +1 -1
  4. metadata +1 -1
@@ -10,4 +10,8 @@
10
10
 
11
11
  === 0.0.2 2009-09-21
12
12
 
13
- * 0 major enhancements
13
+ * 0 major enhancements
14
+
15
+ === 0.1.0 2009-09-21
16
+ * 1 major enhancement:
17
+ * 0.1.0 release
@@ -6,7 +6,7 @@
6
6
 
7
7
  Monkeypatches Ruby's Array Class to add "sum" and "mean" methods.
8
8
 
9
- == FEATURES/PROBLEMS:
9
+ == FEATURES:
10
10
 
11
11
  * Find the mean of an array of integers
12
12
 
@@ -16,13 +16,31 @@ Monkeypatches Ruby's Array Class to add "sum" and "mean" methods.
16
16
 
17
17
  == SYNOPSIS:
18
18
 
19
- [1337, 1337, 31337].mean
20
- => 11337
19
+ $ python
20
+ >>> sum((1, 2, 3))
21
+ 6
21
22
 
22
- ** BONUS FUNCTIONALITY **
23
+ Hmm...
23
24
 
24
- [1, 2, 3].sum
25
+ $ irb
26
+ >> [1, 2, 3].sum
27
+ => NoMethodError: undefined method `sum' for [1, 2, 3]:Array
28
+
29
+ :-( :-( :-( :-(
30
+
31
+ Hmm...
32
+
33
+ >> require 'rubygems'
34
+ >> require 'mean'
35
+ >> [1, 2, 3].sum
25
36
  => 6
37
+
38
+ :-) :-) :-) :-)
39
+
40
+ $ [1, 2, 3].mean
41
+ => 2
42
+
43
+ :-D :-D :-D :-D !!!
26
44
 
27
45
  == INSTALL:
28
46
 
@@ -30,20 +48,20 @@ sudo gem install mean
30
48
 
31
49
  == LICENSE:
32
50
 
33
- (The WTFPL License)
51
+ (The WTFPL License)
34
52
 
35
- Copyright (c) 2009 Bryan Woods
53
+ Copyright (c) 2009 Bryan Woods
36
54
 
37
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
38
- Version 2, December 2004
55
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
56
+ Version 2, December 2004
39
57
 
40
- Copyright (C) 2004 Sam Hocevar
41
- 14 rue de Plaisance, 75014 Paris, France
42
- Everyone is permitted to copy and distribute verbatim or modified
43
- copies of this license document, and changing it is allowed as long
44
- as the name is changed.
58
+ Copyright (C) 2004 Sam Hocevar
59
+ 14 rue de Plaisance, 75014 Paris, France
60
+ Everyone is permitted to copy and distribute verbatim or modified
61
+ copies of this license document, and changing it is allowed as long
62
+ as the name is changed.
45
63
 
46
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
47
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
64
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
65
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
48
66
 
49
- 0. You just DO WHAT THE FUCK YOU WANT TO.
67
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
@@ -4,5 +4,5 @@ require "mean/sum"
4
4
  require "mean/mean"
5
5
 
6
6
  module Mean
7
- VERSION = '0.0.3'
7
+ VERSION = '0.1.0'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Woods