counted_each 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -12
- data/VERSION +1 -1
- data/counted_each.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
= counted_each
|
2
2
|
|
3
|
-
|
3
|
+
A extension for core Array class adding a #counted_each method that outputs count and time to finish iteration to STDERR (or a different IO Stream).
|
4
4
|
|
5
|
-
==
|
6
|
-
|
7
|
-
* Fork the project.
|
8
|
-
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
future version unintentionally.
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
-
* Send me a pull request. Bonus points for topic branches.
|
5
|
+
== Usage:
|
14
6
|
|
15
|
-
|
7
|
+
require 'counted_each'
|
8
|
+
|
9
|
+
# optional, default is STDERR
|
10
|
+
CountedEach::Config.output = STDOUT
|
11
|
+
|
12
|
+
(0..5000).to_a.counted_each do
|
13
|
+
sleep(0.001)
|
14
|
+
end
|
16
15
|
|
17
|
-
Copyright (c) 2010 bauersman. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/counted_each.gemspec
CHANGED