counted_each 0.0.2 → 0.0.3

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 (4) hide show
  1. data/README.rdoc +10 -12
  2. data/VERSION +1 -1
  3. data/counted_each.gemspec +1 -1
  4. metadata +2 -2
data/README.rdoc CHANGED
@@ -1,17 +1,15 @@
1
1
  = counted_each
2
2
 
3
- Description goes here.
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
- == Note on Patches/Pull Requests
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
- == Copyright
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.2
1
+ 0.0.3
data/counted_each.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{counted_each}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["bauersman"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - bauersman