spree_api 6.0.0.beta3 → 6.0.0.beta4

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: d30acba1d9395e7575f92eefe7c86b5cd8c73eae44cceb1e178a853963e856c4
4
- data.tar.gz: 562e93949b2a3e5b124c06896821d26554329f0e332faa8f9de2d35b6d40dc71
3
+ metadata.gz: cbd216e65a6f6ce291a04b750595491f827262d4de353562ac43fa51d69c376e
4
+ data.tar.gz: ed6181390f17841dc63104e068e6812d936dc29d3896c8366ea27cebc6817274
5
5
  SHA512:
6
- metadata.gz: 401bbdc3ddb5eb121c8ad9eac1d5341aa130c0f1f61135e54b14c8eabe577c1845442f28e20e4bf608e35d5dc5f757b25b4b41697dd1010c78ae9f2ede161362
7
- data.tar.gz: e27e19331d0e63339aa5bd21586f1f4ed74b095689a3c31252faee126f9d896f3579cef931a6fa66afa5b6e0c001f7759f19838f3a2914de105090f598b4c2ae
6
+ metadata.gz: 50b7fd005e9f4c80d83c1be99a3e4abf9c84a947e5b801fae461a4596b3e5005a376c2fbb1a6e9aeea063492cdc3548116cfdca5621b551598fbcbac1635fb4c
7
+ data.tar.gz: '00699269b7d5c5c53d2154a32784c48a8e42a9a2759c05e387fb2218a5725249ab52179861f69b0afa217c5fe429a855fcc3077b9d21dce2efcfea6317cad20e'
@@ -14,10 +14,14 @@ module Spree
14
14
  skip_scope_check!
15
15
  skip_before_action :authenticate_admin!, only: [:show, :countries, :create]
16
16
 
17
+ # Only create checks the setup token, so only create needs the strict
18
+ # login budget against guessing. The status and countries reads stay
19
+ # on the general per-caller limit: sharing the login budget with them
20
+ # let an ordinary first visit and one reload lock the setup screen.
17
21
  rate_limit to: Spree::Api::Config[:rate_limit_login],
18
22
  within: Spree::Api::Config[:rate_limit_window].seconds,
19
23
  store: Rails.cache,
20
- only: [:show, :countries, :create],
24
+ only: :create,
21
25
  with: -> { render_rate_limited(limit: Spree::Api::Config[:rate_limit_login]) }
22
26
 
23
27
  # GET /api/v3/admin/auth/setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.beta3
4
+ version: 6.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vendo Connect Inc.
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 6.0.0.beta3
75
+ version: 6.0.0.beta4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 6.0.0.beta3
82
+ version: 6.0.0.beta4
83
83
  description: Spree Commerce Store / Admin API and HTTP webhooks
84
84
  email:
85
85
  - hello@spreecommerce.org
@@ -707,9 +707,9 @@ licenses:
707
707
  - BSD-3-Clause
708
708
  metadata:
709
709
  bug_tracker_uri: https://github.com/spree/spree/issues
710
- changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.beta3
710
+ changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.beta4
711
711
  documentation_uri: https://docs.spreecommerce.org/
712
- source_code_uri: https://github.com/spree/spree/tree/v6.0.0.beta3
712
+ source_code_uri: https://github.com/spree/spree/tree/v6.0.0.beta4
713
713
  post_install_message:
714
714
  rdoc_options: []
715
715
  require_paths: