batch 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/batch.gemspec +1 -1
  2. data/lib/batch.rb +4 -1
  3. metadata +4 -7
data/batch.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "batch"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.summary = "Iterate Enumerables with progress reporting."
5
5
  s.authors = ["Damian Janowski", "Michel Martens"]
6
6
  s.email = ["djanowski@dimaion.com", "michel@soveran.com"]
data/lib/batch.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Batch
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
 
4
4
  attr :enumerable
5
5
 
@@ -18,6 +18,9 @@ class Batch
18
18
  yield(item)
19
19
  print "."
20
20
 
21
+ rescue Interrupt
22
+ break
23
+
21
24
  rescue Exception => e
22
25
  print "E"
23
26
  @errors << [item, e]
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 1
10
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Damian Janowski
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-05-10 00:00:00 -03:00
18
+ date: 2010-07-18 00:00:00 -03:00
20
19
  default_executable:
21
20
  dependencies: []
22
21
 
@@ -52,7 +51,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- hash: 3
56
54
  segments:
57
55
  - 0
58
56
  version: "0"
@@ -61,14 +59,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
59
  requirements:
62
60
  - - ">="
63
61
  - !ruby/object:Gem::Version
64
- hash: 3
65
62
  segments:
66
63
  - 0
67
64
  version: "0"
68
65
  requirements: []
69
66
 
70
67
  rubyforge_project:
71
- rubygems_version: 1.3.7.pre.1
68
+ rubygems_version: 1.3.7
72
69
  signing_key:
73
70
  specification_version: 3
74
71
  summary: Iterate Enumerables with progress reporting.