dm-noisy-failures 0.2.2 → 0.2.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: af6533166df1f2eff9c76fd166884bd722b7ba78
4
+ data.tar.gz: b2802233b262804f1614f79fd21d5937056c90b3
5
+ SHA512:
6
+ metadata.gz: e48d61034cc6428724f3fb1e1cc2d31f2ad94be0075d806dad62523f2252f88a88f23fd6ba5780b724fbcaa03169d71fcef3c95ceaf755c4b88f95f46d771c86
7
+ data.tar.gz: 3305414ae4dab3f432a21eca9ba3cadea5b33b6474439e2ffda06627e38ac17199ac59247067f78be6eb52d057c56be7565974a6432b627a8b5dba3f79205435
@@ -4,13 +4,13 @@ module DataMapper
4
4
  alias_method :destroy?, :destroy
5
5
 
6
6
  def save
7
- return if self.save? || self.errors.empty?
7
+ return true if self.save? || self.errors.empty?
8
8
  error_message = self.errors.map { |e| "#{self.class}: #{e.join(', ')}" }.join("; ")
9
9
  raise SaveFailureError.new(error_message, self)
10
10
  end
11
11
 
12
12
  def destroy
13
- return if self.destroy?
13
+ return true if self.destroy?
14
14
  error_message = "#{self.class}: Unable to destroy, probably due to associated records."
15
15
  raise SaveFailureError.new(error_message, self)
16
16
  end
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  module NoisyFailures
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-noisy-failures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Daniel Tao
@@ -14,57 +13,51 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: data_mapper
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
- description: ! 'This library replaces the default behavior of DataMapper by raising
31
- exceptions with
32
-
33
- descriptive error messages whenever DB operations are not successfully completed.
34
-
35
- '
27
+ description: This library replaces the default behavior of DataMapper by raising exceptions
28
+ with descriptive error messages whenever DB operations are not successfully completed.
36
29
  email:
37
30
  - daniel.tao@gmail.com
38
31
  executables: []
39
32
  extensions: []
40
33
  extra_rdoc_files: []
41
34
  files:
35
+ - lib/dm-noisy-failures.rb
42
36
  - lib/dm_noisy_failures.rb
43
- - lib/data_mapper/noisy_failures/version.rb
44
37
  - lib/data_mapper/noisy_failures.rb
45
- - lib/dm-noisy-failures.rb
38
+ - lib/data_mapper/noisy_failures/version.rb
46
39
  homepage: http://github.com/dtao/dm-noisy-failures
47
- licenses: []
40
+ licenses:
41
+ - MIT
42
+ metadata: {}
48
43
  post_install_message:
49
44
  rdoc_options: []
50
45
  require_paths:
51
46
  - lib
52
47
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
48
  requirements:
55
- - - ! '>='
49
+ - - '>='
56
50
  - !ruby/object:Gem::Version
57
51
  version: '0'
58
52
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  requirements: []
65
58
  rubyforge_project:
66
- rubygems_version: 1.8.25
59
+ rubygems_version: 2.0.3
67
60
  signing_key:
68
- specification_version: 3
61
+ specification_version: 4
69
62
  summary: Noisy (and descriptive) failures for DataMapper
70
63
  test_files: []