avo 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29db1a99beb18986ee980778dbb597ac90a9f6bd6a19d5637eb0bbb23b9746b5
4
- data.tar.gz: 06e9dbe72271c02c16bd8044136d266bd3201a59e2a76f5414d7bda36cbccfa4
3
+ metadata.gz: 81319fedf91d17d5190b4de08caa7f151d18979c8632a16a21d6285262dae78e
4
+ data.tar.gz: 7d26c60ea6c5dce920688b7532bbe8fa656b2e4ba3e7183f64d27cd96399eedb
5
5
  SHA512:
6
- metadata.gz: 5a1f0160738e84c316d4bcf4a73b23eae7db4a125d933cff30461818ce68bd2f9b028156902f5a4ef49e5c24746d4db0f7d1e8ed1b6b287eeac22692d17ccfb9
7
- data.tar.gz: d74cb9f952f83f02fa7c038b12ea18c25340e58f2064e3723956af1928d6504af1a1d3c8e1221b4024281fab083e52aab7fe3c2aaa7a8c6249cd0026625334dc
6
+ metadata.gz: d3b0ad73f4e737a9f56638563628ae3d97f532a7a26620af107a58c677afa034919926dc86a6e66378cb08c948c69596c4b35da4dac76dbe3d0f9fd40d7b2273
7
+ data.tar.gz: 8e8baad056d30fd13aedf9c99236ada3a53bcdb37140f4ffe542f77cacba5cb6ea58a19fec67f45bc2ec087fb3c9264b050a5362042fb9acfb186c3740d8893a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (0.4.9)
4
+ avo (0.4.10)
5
5
  countries
6
6
  httparty
7
7
  i18n-js
@@ -18,7 +18,7 @@ module Avo
18
18
  respond_to do |format|
19
19
  format.html { raise exception }
20
20
  format.json { render json: {
21
- errors: exception.record.present? ? exception.record.errors : [],
21
+ errors: exception.respond_to?(:record) && exception.record.present? ? exception.record.errors : [],
22
22
  message: exception.message,
23
23
  traces: exception.backtrace,
24
24
  }, status: ActionDispatch::ExceptionWrapper.status_code_for_exception(exception.class.name) }
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = '0.4.9'
2
+ VERSION = '0.4.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-16 00:00:00.000000000 Z
12
+ date: 2021-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails