notifiable-rails 0.7.0 → 0.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b843067cda62548261968c12431aad83391c2d75
4
- data.tar.gz: 5e5e619c4d7c11b68bcc2f97aab583f36a8d9178
3
+ metadata.gz: d94e321ae2b6cdd5cb650f00076bf9c704849ff6
4
+ data.tar.gz: ae6831bcea81f4ea893373c083282eb2fe8ee9b4
5
5
  SHA512:
6
- metadata.gz: f06f4d7858fe9c8c93741f86fd5617185fa32c23010ff4693c73999bad5f2587dcf13484ba35a664c420f036be1a70e5708489529d00d236d60c7051eee1d1b9
7
- data.tar.gz: b008058ba0f76d25db7f11bd9a2076eb95f7ce0be99e995f39d76d72f3898b4dcc167d164429917ccef6e0f2a8e7a29dc78c5f5838effc14782706ab6fe446a8
6
+ metadata.gz: 15eebde71c555f7e678cb94bed12b0de6f10b818da1e3e25416102ba578205338471d137e850406bc388c0e3c39ed7486201909ddc8a19c7be09e3639c8afe28
7
+ data.tar.gz: 1e71e6c32c77b2a04ed63dff6d9e12ce570fbff0ffd7d17fb77e62271d5781f244547f04cc77fe87c300ae50dd6857359c8986b962e682551e76c56f11c41c4a
@@ -19,7 +19,7 @@ module Notifiable
19
19
  if @device_token.update_attributes(notifiable_params)
20
20
  head :status => :ok
21
21
  else
22
- render :json => { :errors => @device_token.errors.full_messages }, :status => :internal_server_error
22
+ render :json => { :errors => @device_token.errors.full_messages }, :status => :unprocessable_entity
23
23
  end
24
24
  end
25
25
 
@@ -32,7 +32,7 @@ module Notifiable
32
32
  elsif @device_token.destroy
33
33
  head :status => :ok
34
34
  else
35
- render :json => { :errors => @device_token.errors.full_messages }, :status => :internal_server_error
35
+ render :json => { :errors => @device_token.errors.full_messages }, :status => :unprocessable_entity
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba