spree_dashboard 6.0.0.rc5 → 6.0.0.rc7

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: 77bed7f0364426203abf341b0df5378932f37192aa064d3ed8c3c0a8d721d491
4
- data.tar.gz: 5b19aad48496bddcd9b0cbf5fdad6e7c72c929384e14837fb531c464a7d04c5b
3
+ metadata.gz: 5af38bdebde3f39b4381a994fc05118647702ff6c2c55db70cad67a378c0568f
4
+ data.tar.gz: 509f69ca46795978713b5813a3185fd487daae6b66ea75ece7b84f4500540878
5
5
  SHA512:
6
- metadata.gz: 59dbf58b6a4d0692357f8df3b9c5d09065316283edc37550e005214ca41ad68aaf3f5a47dc56d8d805b30411384fc4662634d6ff1e841f6a81e672c664c77422
7
- data.tar.gz: 3ad198fe864e753f8e65b24c89ad2b59921cd2d299c4858a00d67dc56badb2f4b73b17fee5f101f11f99a2ffd5c06cca233261ab2a1be76f4cabc1d4ca804537
6
+ metadata.gz: d4eab6b85ce61f7a5511dd8bb52f84ee80aee91da3ea7d703551ef31c8a1d40c4dd7043e4179fc50e708b2d210a21a2897391971749caeaa5be25ab624a28798
7
+ data.tar.gz: 35ec4e0444e51a28b249878f333add2a773da490ca47fe633bd9e271cc644e91d4e2e079eb9c7f11afefb5209499e039f35cbce6e26fb3513ee7cd38093303d0
@@ -24,6 +24,12 @@ module Spree
24
24
  # <script> tags must load, which is exactly that request shape.
25
25
  skip_after_action :verify_same_origin_request
26
26
 
27
+ # A back-office panel has no business in a search index. The header
28
+ # covers every response this controller sends, shell and assets alike,
29
+ # whatever the shell's own markup says; the shells carry a matching
30
+ # <meta name="robots"> for deployments that serve them from elsewhere.
31
+ before_action :mark_not_indexable
32
+
27
33
  def show
28
34
  root = dist_root
29
35
  return head :not_found unless root
@@ -41,6 +47,10 @@ module Spree
41
47
 
42
48
  private
43
49
 
50
+ def mark_not_indexable
51
+ response.headers['X-Robots-Tag'] = 'noindex, nofollow'
52
+ end
53
+
44
54
  # @return [String, nil] directory holding the built bundle
45
55
  def dist_path
46
56
  raise NotImplementedError, "#{self.class} must implement #dist_path"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.rc5
4
+ version: 6.0.0.rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vendo Connect Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-10-22 00:00:00.000000000 Z
12
+ date: 2026-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 6.0.0.rc5
20
+ version: 6.0.0.rc7
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 6.0.0.rc5
27
+ version: 6.0.0.rc7
28
28
  description: Serves a built Spree React Dashboard with your Rails server, simplest
29
29
  way to deploy Spree API + Dashboard
30
30
  email: hello@spreecommerce.org
@@ -47,9 +47,9 @@ licenses:
47
47
  - BSD-3-Clause
48
48
  metadata:
49
49
  bug_tracker_uri: https://github.com/spree/spree/issues
50
- changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.rc5
50
+ changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.rc7
51
51
  documentation_uri: https://spreecommerce.org/docs/developer/dashboard/deployment
52
- source_code_uri: https://github.com/spree/spree/tree/v6.0.0.rc5
52
+ source_code_uri: https://github.com/spree/spree/tree/v6.0.0.rc7
53
53
  post_install_message:
54
54
  rdoc_options: []
55
55
  require_paths: