spree_api 2.1.7 → 2.1.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee56f5456d4df4fb13dcef73b99f9ab8733cb003
|
|
4
|
+
data.tar.gz: 846249f3da9cc1b974e48cdc341e93e37ff3e2f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b735b3169096065a462c68aee1ba924a76aa70d84bb94ac365c9ca272992e4f9a09b258c8fa293f7bdc61d568aac0085e7b40312db349e23ec3765bd46d6363f
|
|
7
|
+
data.tar.gz: 58cb49ff72f40ff6a8d7d593dd62e7620687d5b1a3da4e7b28789d3d03b10909a89014de15a4c7c21efe7955b4c1aaa9845d695d0a29748f25d9c32e37e11db2
|
|
@@ -110,10 +110,6 @@ module Spree
|
|
|
110
110
|
send(method_name) if respond_to?(method_name, true)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
def before_payment
|
|
114
|
-
@order.payments.destroy_all if request.put?
|
|
115
|
-
end
|
|
116
|
-
|
|
117
113
|
def next!(options={})
|
|
118
114
|
if @order.valid? && @order.next
|
|
119
115
|
render 'spree/api/orders/show', status: options[:status] || 200
|
|
@@ -111,6 +111,13 @@ module Spree
|
|
|
111
111
|
option_value.name.should == "Option Value"
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
it "permits the correct attributes" do
|
|
115
|
+
controller.should_receive(:permitted_option_value_attributes)
|
|
116
|
+
api_put :update, :id => option_value.id, :option_value => {
|
|
117
|
+
:name => ""
|
|
118
|
+
}
|
|
119
|
+
end
|
|
120
|
+
|
|
114
121
|
it "cannot update an option value with invalid attributes" do
|
|
115
122
|
api_put :update, :id => option_value.id, :option_value => {
|
|
116
123
|
:name => ""
|
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: 2.1.
|
|
4
|
+
version: 2.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Bigg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree_core
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.1.
|
|
19
|
+
version: 2.1.8
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 2.1.
|
|
26
|
+
version: 2.1.8
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rabl
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
254
254
|
version: '0'
|
|
255
255
|
requirements: []
|
|
256
256
|
rubyforge_project:
|
|
257
|
-
rubygems_version: 2.2.
|
|
257
|
+
rubygems_version: 2.2.2
|
|
258
258
|
signing_key:
|
|
259
259
|
specification_version: 4
|
|
260
260
|
summary: Spree's API
|