spree_api 3.6.0 → 3.6.1

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
2
  SHA256:
3
- metadata.gz: b872681ff1adf5f24447aaabddcfa62dc3ac3766d2eef67342db5bf41c355595
4
- data.tar.gz: 1972c1dbf3385557a1583d080bc18e8ba4ea72b5ac93626c617ae222fdc9a4d6
3
+ metadata.gz: 4a39d977b95f765c9dc7616d74f765a1a06d3945b29c1bf05f5eaa2e86c27fd2
4
+ data.tar.gz: c8fb2d16007b7f87ce9e13083ccfc55b805d7388131c3fffa1ccea34c3e4c936
5
5
  SHA512:
6
- metadata.gz: 4508c2038043caf29f658e8be3c6c139ce5b87a4cacbff3daf36abd39932744be8f3e786735abd22d4e705a8cd0a9874d1e90cd4c103de52c22aebfd843e8574
7
- data.tar.gz: 3f91e75eb0afca093d80668fceafaeb9224fdc1319569bc463919f57d507d6a6fbd46738746ad6eaa1bacaef6aa6f1b39ef1404115eac9fa78ce7787b12cfbeb
6
+ metadata.gz: f1530bd75fae1b5712d19ed88d492162fb94dfaeba1cd8a8954cc06cfec3e68a7a558e663ef63636bf7770e7b8667ecb713bca498ce925cf03efe9204d5b5025
7
+ data.tar.gz: 872c722cdabf721d80388cb27c12fa8f287235b1d557095d5890dd5895af5b551b96520a22b336206f35236eda55b2f741d061738dde2dfbcdfa1ed76bf4565c
@@ -3,6 +3,8 @@ require_dependency 'spree/api/controller_setup'
3
3
  module Spree
4
4
  module Api
5
5
  class BaseController < ActionController::Base
6
+ protect_from_forgery unless: -> { request.format.json? || request.format.xml? }
7
+
6
8
  include Spree::Api::ControllerSetup
7
9
  include Spree::Core::ControllerHelpers::Store
8
10
  include Spree::Core::ControllerHelpers::StrongParameters
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.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-12 00:00:00.000000000 Z
11
+ date: 2018-06-20 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: 3.6.0
19
+ version: 3.6.1
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: 3.6.0
26
+ version: 3.6.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rabl
29
29
  requirement: !ruby/object:Gem::Requirement