sequel_validation_exceptions 0.2 → 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.
@@ -25,17 +25,17 @@ module Sequel
25
25
  def save! *columns
26
26
  success = save *columns
27
27
  if !success
28
- raise ValidationException.new(errors), "Could not save #{id.nil? ? 'new' : ''} #{self.class.name} model #{id} due to failing validation: #{errors.inspect}\nmodel was: #{inspect}"
28
+ raise ValidationException.new(errors), "Could not save #{id.nil? ? 'new' : ''} #{self.class.name} model #{id} due to failing validation: #{errors.inspect}\n\tmodel was: #{inspect}"
29
29
  end
30
30
  end
31
31
 
32
32
  def update! *columns
33
33
  success = update *columns
34
34
  if !success
35
- raise ValidationException.new(errors), "Could not update #{id.nil? ? 'new' : ''} #{self.class.name} model #{id} due to failing validation: #{errors.inspect}\nmodel was: #{inspect}"
35
+ raise ValidationException.new(errors), "Could not update #{id.nil? ? 'new' : ''} #{self.class.name} model #{id} due to failing validation: #{errors.inspect}\n\tmodel was: #{inspect}"
36
36
  end
37
37
  end
38
38
  end
39
39
  end
40
40
  end
41
- end
41
+ end
metadata CHANGED
@@ -1,64 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sequel_validation_exceptions
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- version: "0.2"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Misha Conway
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-08-30 00:00:00 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
18
13
  dependencies: []
19
-
20
14
  description:
21
15
  email: MishaAConway@gmail.com
22
16
  executables: []
23
-
24
17
  extensions: []
25
-
26
18
  extra_rdoc_files: []
27
-
28
- files:
19
+ files:
29
20
  - lib/sequel_validation_exceptions.rb
30
21
  homepage:
31
22
  licenses: []
32
-
33
23
  post_install_message:
34
24
  rdoc_options: []
35
-
36
- require_paths:
25
+ require_paths:
37
26
  - lib
38
- required_ruby_version: !ruby/object:Gem::Requirement
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
39
32
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
47
- required_rubygems_version: !ruby/object:Gem::Requirement
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
48
38
  none: false
49
- requirements:
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- hash: 3
53
- segments:
54
- - 0
55
- version: "0"
56
39
  requirements: []
57
-
58
40
  rubyforge_project: nowarning
59
- rubygems_version: 1.8.8
41
+ rubygems_version: 1.8.24
60
42
  signing_key:
61
43
  specification_version: 3
62
44
  summary: Adds save!, update!, create!, and find_or_create! to sequel models.
63
45
  test_files: []
64
-