spree_api 3.7.9 → 3.7.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree_api might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a51b557172e05ed70e620ea24cc37418750ae8049ceb650d037ea8057bc54baa
|
4
|
+
data.tar.gz: 5fc424cc9a56d991de332f5eca40cb0910c9d20971a56614c7bc1c3f4dbeecfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1df6df7fda6ea6212b4f75759e9e47480945af34453881264031ae9ddadc80aa3fa89fb8f91f47842c9263652ed945814d0bfba7bfeb4fc1fe463633118a85
|
7
|
+
data.tar.gz: 411d354a7f0b06621909d05fb331d9adc0ad6edef8fa9b889c96631504695f628aced3b6937d51d1a8631876d56b5576843ff011be80ef4395d8fedfa2e31d57
|
@@ -5,6 +5,8 @@ module Spree
|
|
5
5
|
class OrderStatusController < ::Spree::Api::V2::BaseController
|
6
6
|
include Spree::Api::V2::Storefront::OrderConcern
|
7
7
|
|
8
|
+
before_action :ensure_order_token
|
9
|
+
|
8
10
|
def show
|
9
11
|
render_serialized_payload { serialize_resource(resource) }
|
10
12
|
end
|
@@ -33,6 +35,10 @@ module Spree
|
|
33
35
|
def resource_serializer
|
34
36
|
Spree::Api::Dependencies.storefront_cart_serializer.constantize
|
35
37
|
end
|
38
|
+
|
39
|
+
def ensure_order_token
|
40
|
+
raise ActiveRecord::RecordNotFound unless order_token
|
41
|
+
end
|
36
42
|
end
|
37
43
|
end
|
38
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-rspec
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.7.
|
33
|
+
version: 3.7.10
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.7.
|
40
|
+
version: 3.7.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rabl
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,7 +329,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
- !ruby/object:Gem::Version
|
330
330
|
version: '0'
|
331
331
|
requirements: []
|
332
|
-
|
332
|
+
rubyforge_project:
|
333
|
+
rubygems_version: 2.7.3
|
333
334
|
signing_key:
|
334
335
|
specification_version: 4
|
335
336
|
summary: Spree's API
|