toast 0.8.6 → 0.8.7

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.
@@ -114,7 +114,7 @@ module Toast
114
114
  :content_type => @associate_config_out.media_type
115
115
  }
116
116
 
117
- rescue ActiveRecord::RecordInvalid => e
117
+ rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved => e
118
118
  # model validation failed
119
119
  raise PayloadInvalid.new(e.message)
120
120
  end
@@ -110,7 +110,7 @@ module Toast
110
110
  :content_type => @config_out.media_type
111
111
  }
112
112
 
113
- rescue ActiveRecord::RecordInvalid => e
113
+ rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved => e
114
114
  # model validation failed
115
115
  raise PayloadInvalid.new(e.message)
116
116
  end
data/lib/toast/record.rb CHANGED
@@ -62,7 +62,7 @@ module Toast
62
62
  :content_type => @config_out.media_type
63
63
  }
64
64
 
65
- rescue ActiveRecord::RecordInvalid => e
65
+ rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved => e
66
66
  # model validation failed
67
67
  raise PayloadInvalid.new(e.message)
68
68
  end
data/lib/toast/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Toast
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.7'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toast
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 6
10
- version: 0.8.6
9
+ - 7
10
+ version: 0.8.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - "robokopp (Robert Anni\xC3\xA9s)"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-21 00:00:00 Z
18
+ date: 2012-10-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails