api_me 0.9.2 → 0.9.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.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile.lock +2 -2
- data/lib/api_me.rb +3 -3
- data/lib/api_me/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 13972ff9aba7a136befeba0bbc99baff56bd5b48882de8fb62c439a3eeafde7b
|
|
4
|
+
data.tar.gz: 4742b40b1123e162ff279abbeea1410f99550bc8d0468f5136c882b4a7ac2af7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4214d4d9a69499ec77ffe564e328d68b99ec3dfba66e61916ce22c94108591999c5ece0b61aa6e1d27134cefd5b9bb35d380dacf600342942b5cf8367102014
|
|
7
|
+
data.tar.gz: 989b0117ab862e775848bf30010c800bec998c3e0c3497abfefc5e70eda83e19358f5dbfdeb1bccc252779c21a2f5143d0733ac086e2627b6a0e13b8a6313d45
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
150
|
+
head 404
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def model_klass
|
data/lib/api_me/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
255
|
+
rubygems_version: 2.7.6
|
|
256
256
|
signing_key:
|
|
257
257
|
specification_version: 4
|
|
258
258
|
summary: Api Me
|