rescue_each 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.gemspec
2
2
  pkg
3
+ coverage
data/Rakefile CHANGED
@@ -36,3 +36,25 @@ desc "Open an IRB session with this library loaded"
36
36
  task :console do
37
37
  sh "irb -rrubygems -I lib -r rescue_each.rb"
38
38
  end
39
+
40
+ begin
41
+ require 'rcov/rcovtask'
42
+ Rcov::RcovTask.new do |t|
43
+ t.libs << "test"
44
+ t.rcov_opts = [
45
+ "--exclude '^(?!lib)'"
46
+ ]
47
+ t.test_files = FileList[
48
+ 'test/**/*_test.rb'
49
+ ]
50
+ t.output_dir = 'coverage'
51
+ t.verbose = true
52
+ end
53
+ task :rcov do
54
+ system "open coverage/index.html"
55
+ end
56
+ rescue LoadError
57
+ task :rcov do
58
+ raise "You must install the 'rcov' gem"
59
+ end
60
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
data/lib/rescue_each.rb CHANGED
@@ -1,4 +1,5 @@
1
- require 'active_support'
1
+ require 'active_support/core_ext/array'
2
+ require 'active_support/core_ext/hash'
2
3
 
3
4
  module RescueEach
4
5
 
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  gem 'test-unit'
3
+ gem 'activesupport'
3
4
  require 'test/unit'
4
- require 'active_support'
5
5
  require 'active_support/test_case'
6
6
  require 'active_record'
7
7
  require 'rescue_each'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rescue_each
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 3
9
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jason Weathered
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-02 00:00:00 +10:00
18
+ date: 2010-07-10 00:00:00 +10:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: activesupport
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -33,9 +36,11 @@ dependencies:
33
36
  name: activerecord
34
37
  prerelease: false
35
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
41
  - - ">="
38
42
  - !ruby/object:Gem::Version
43
+ hash: 3
39
44
  segments:
40
45
  - 0
41
46
  version: "0"
@@ -69,23 +74,27 @@ rdoc_options:
69
74
  require_paths:
70
75
  - lib
71
76
  required_ruby_version: !ruby/object:Gem::Requirement
77
+ none: false
72
78
  requirements:
73
79
  - - ">="
74
80
  - !ruby/object:Gem::Version
81
+ hash: 3
75
82
  segments:
76
83
  - 0
77
84
  version: "0"
78
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
+ none: false
79
87
  requirements:
80
88
  - - ">="
81
89
  - !ruby/object:Gem::Version
90
+ hash: 3
82
91
  segments:
83
92
  - 0
84
93
  version: "0"
85
94
  requirements: []
86
95
 
87
96
  rubyforge_project:
88
- rubygems_version: 1.3.6
97
+ rubygems_version: 1.3.7
89
98
  signing_key:
90
99
  specification_version: 3
91
100
  summary: Rescue multiple exceptions when enumerating over Enumerable or ActiveRecord objects