api_me 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d231552f1f01427534c97b10b0bf6f0ccd54a809
4
- data.tar.gz: f433eb66eedb11efeef02161681414b340058773
2
+ SHA256:
3
+ metadata.gz: 13972ff9aba7a136befeba0bbc99baff56bd5b48882de8fb62c439a3eeafde7b
4
+ data.tar.gz: 4742b40b1123e162ff279abbeea1410f99550bc8d0468f5136c882b4a7ac2af7
5
5
  SHA512:
6
- metadata.gz: 815219a71fb808545bba8bd1e683f021e4ac35fb7407a057c09dfe5da030b5f0307de1845023ff931801fc0ebeace911abef85501523b2e181edc77cf2b36b68
7
- data.tar.gz: 955c5ccabd618242121da6b91fb510534b0898eac7f2d8ade26d5097a38037099f6c8effd58095ba5c605f09cc599ac8910635cf73edefd71274d78bd7808213
6
+ metadata.gz: b4214d4d9a69499ec77ffe564e328d68b99ec3dfba66e61916ce22c94108591999c5ece0b61aa6e1d27134cefd5b9bb35d380dacf600342942b5cf8367102014
7
+ data.tar.gz: 989b0117ab862e775848bf30010c800bec998c3e0c3497abfefc5e70eda83e19358f5dbfdeb1bccc252779c21a2f5143d0733ac086e2627b6a0e13b8a6313d45
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 2.5.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_me (0.9.2)
4
+ api_me (0.9.3)
5
5
  active_model_serializers (~> 0.10.0)
6
6
  activerecord (>= 4.1.16)
7
7
  activesupport (>= 4.1.16)
@@ -150,4 +150,4 @@ DEPENDENCIES
150
150
  sqlite3 (~> 1.3.7)
151
151
 
152
152
  BUNDLED WITH
153
- 1.16.1
153
+ 1.16.3
data/lib/api_me.rb CHANGED
@@ -96,7 +96,7 @@ module ApiMe
96
96
  authorize @object
97
97
  @object.update!(object_params)
98
98
 
99
- render status: 204, nothing: true
99
+ head 204
100
100
  rescue ActiveRecord::RecordInvalid => e
101
101
  handle_errors(e)
102
102
  end
@@ -105,7 +105,7 @@ module ApiMe
105
105
  @object = find_resource
106
106
  authorize @object
107
107
  @object.destroy
108
- render status: 204, nothing: true
108
+ head 204
109
109
  rescue ActiveRecord::RecordInvalid => e
110
110
  handle_errors(e)
111
111
  end
@@ -147,7 +147,7 @@ module ApiMe
147
147
  end
148
148
 
149
149
  def resource_not_found
150
- render status: 404, nothing: true
150
+ head 404
151
151
  end
152
152
 
153
153
  def model_klass
@@ -1,3 +1,3 @@
1
1
  module ApiMe
2
- VERSION = '0.9.2'.freeze
2
+ VERSION = '0.9.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Clopton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-13 00:00:00.000000000 Z
12
+ date: 2018-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.2.2
255
+ rubygems_version: 2.7.6
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Api Me