dm-noisy-failures 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,8 @@ module DataMapper
5
5
 
6
6
  def save
7
7
  unless self.save?
8
- error_message = self.errors.map { |e| "#{self.class}: #{e.join(', ')}" }.join("\n")
8
+ return if self.errors.empty?
9
+ error_message = self.errors.map { |e| "#{self.class}: #{e.join(', ')}" }.join("; ")
9
10
  raise SaveFailureError.new(error_message, self)
10
11
  end
11
12
  end
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  module NoisyFailures
3
- VERSION = "0.2"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ require "dm_noisy_failures"
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-noisy-failures
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- version: "0.2"
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Daniel Tao
@@ -32,8 +33,8 @@ dependencies:
32
33
  type: :runtime
33
34
  version_requirements: *id001
34
35
  description: |
35
- This library replaces the default behavior of DataMapper by raising exceptions *with
36
- descriptive error messages* whenever DB operations are not successfully completed.
36
+ This library replaces the default behavior of DataMapper by raising exceptions with
37
+ descriptive error messages whenever DB operations are not successfully completed.
37
38
 
38
39
  email:
39
40
  - daniel.tao@gmail.com
@@ -46,6 +47,7 @@ extra_rdoc_files: []
46
47
  files:
47
48
  - lib/data_mapper/noisy_failures/version.rb
48
49
  - lib/data_mapper/noisy_failures.rb
50
+ - lib/dm-noisy-failures.rb
49
51
  - lib/dm_noisy_failures.rb
50
52
  has_rdoc: true
51
53
  homepage: http://github.com/dtao/dm-noisy-failures