sum_sum 0.0.1 → 0.0.2

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.
Files changed (5) hide show
  1. data/CHANGES.md +13 -0
  2. data/LICENSE +20 -0
  3. data/README.md +39 -0
  4. data/lib/sum_sum/version.rb +1 -1
  5. metadata +5 -2
@@ -0,0 +1,13 @@
1
+ ### dev
2
+
3
+ [full changelog](http://github.com/yolk/sum_sum/compare/v0.0.2...master)
4
+
5
+ ### 0.0.2 / 2011-01-27
6
+
7
+ [full changelog](http://github.com/yolk/sum_sum/compare/v0.0.1...v0.0.2)
8
+
9
+ * Added some documentation
10
+
11
+ ### 0.0.1 / 2011-01-27
12
+
13
+ * Initial version
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Yolk Sebastian Munz & Julia Soergel GbR
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ SumSum
2
+ =============
3
+
4
+ SumSum allows you to generate simple reports on the count of values in hashes.
5
+
6
+ Installation
7
+ -------
8
+
9
+ gem install sum_sum
10
+
11
+
12
+ Basic Usage
13
+ -------
14
+
15
+ sum_sum = SumSum.new(:type, :name, :version)
16
+
17
+ sum_sum.add(:type => :Browser, :name => :Firefox, :version => "3.6.13")
18
+ sum_sum.add(:type => :Browser, :name => :Safari, :version => "5.0.3")
19
+ sum_sum.add(:type => :Browser, :name => :Firefox, :version => "3.6.12")
20
+ sum_sum.add(:type => :Browser, :name => :Chrome, :version => "5.0")
21
+
22
+ sum[:Browser].count
23
+ => 4
24
+ sum[:Browser].keys
25
+ => [:Firefox, :Safari, :Chrome]
26
+ sum[:Browser][:Firefox].count
27
+ => 2
28
+ sum[:Browser][:Firefox].share
29
+ => 0.5
30
+ sum[:Browser][:Firefox]["3.6.13"].share
31
+ => 0.5
32
+
33
+
34
+ BlaBla
35
+ -------
36
+
37
+ Copyright (c) <%= Date.today.year %> Yolk Sebastian Munz & Julia Soergel GbR
38
+
39
+ Beyond that, the implementation is licensed under the MIT License.
@@ -1,3 +1,3 @@
1
1
  class SumSum < Hash
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sebastian Munz
@@ -89,9 +89,12 @@ extra_rdoc_files: []
89
89
  files:
90
90
  - .gitignore
91
91
  - .rvmrc
92
+ - CHANGES.md
92
93
  - Gemfile
93
94
  - Gemfile.lock
94
95
  - Guardfile
96
+ - LICENSE
97
+ - README.md
95
98
  - Rakefile
96
99
  - lib/sum_sum.rb
97
100
  - lib/sum_sum/version.rb