workarea-api-storefront 4.5.0 → 4.5.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66392daf9d5f67fb4d7a33d5d614e2c618f706ad6a5d529c8a1878778b90ff6
|
4
|
+
data.tar.gz: b6a0563760e55b88468015bc12a805f444e505f9344c4ae6e2e67bc891671fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b21316e71b8b5c3d77d8651bf7cd43c5e331cda556cdf6e54f7803ac22e2a2d32e079b33d0be1fd57c6b54a3f9940f64b41fccefb19c8941292fe40ae49d52c
|
7
|
+
data.tar.gz: 749f8b7f245f9e9774decf9a033ef90566ff256d93d8c649403885ce17ebe4f8f6e7a1bad3d2bf8639e82c5e35635702daee520e4f68ad29ac6f737695b497ec
|
@@ -85,6 +85,27 @@ module Workarea
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
def test_and_document_update_failure
|
89
|
+
description 'Failure to update a checkout'
|
90
|
+
route storefront_api.checkout_path(':id')
|
91
|
+
explanation <<-EOS
|
92
|
+
This is an example of what occurs when you fail to send in the correct parameters for your checkout.
|
93
|
+
EOS
|
94
|
+
|
95
|
+
record_request do
|
96
|
+
patch storefront_api.checkout_path(@order),
|
97
|
+
as: :json,
|
98
|
+
params: {
|
99
|
+
email: 'susanb@workarea.com',
|
100
|
+
shipping_address: address.except(:first_name),
|
101
|
+
billing_address: address.except(:last_name),
|
102
|
+
shipping_service: 'Express'
|
103
|
+
}
|
104
|
+
|
105
|
+
assert_equal(422, response.status)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
88
109
|
def test_and_document_complete
|
89
110
|
description 'Completing a checkout'
|
90
111
|
route storefront_api.complete_checkout_path(':id')
|
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.required_ruby_version = '>= 2.3.0'
|
16
16
|
|
17
|
-
s.add_dependency 'workarea', '~> 3.x', '>= 3.
|
18
|
-
s.add_dependency 'responders', '~>
|
17
|
+
s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
|
18
|
+
s.add_dependency 'responders', '~> 3.0.0'
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-api-storefront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 3.x
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.5.x
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: 3.x
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.5.x
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: responders
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 3.0.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 3.0.0
|
47
47
|
description: This provides a storefront JSON REST API for the Workarea Commerce Platform.
|
48
48
|
Useful for building apps, kiosks, etc.
|
49
49
|
email:
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.0.
|
277
|
+
rubygems_version: 3.0.3
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Storefront JSON REST API for the Workarea Commerce Platform
|