spree_multi_store 1.0.0 → 1.0.1

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: e04a1b3c2537beca45a3f71d694ab398b4beb627a8b1a7df529d2219720053fd
4
- data.tar.gz: 3faad6a5bf518fa4a3939bee2475ee0799a5d545fed6dedd0b72521ef9c0ffae
3
+ metadata.gz: 118a401b69de56e937a48e383aff50b83f5eba7783b871236400d0cefd027ac4
4
+ data.tar.gz: cfb12d44e9b56d0ddf1565e2d224ecba7da0555c94f4ad88224a61898f54908c
5
5
  SHA512:
6
- metadata.gz: '0508c322500915fcd34e1c8f1d004020d2075c7abd27615b5b607a08374ced3eb074a64ab4fe1fbe4a764f4d46ebd64d65be80dc0b08c2147115a7c7f601eda5'
7
- data.tar.gz: 4746391eeae2143b67e1fca2d70fac6853b00db0c8acc172f66fba4e7d84b94a2d1dd48cabbe8f6f723e63231f3d1ea4f04b46fd0217c3b8b151f648bfc4fdba
6
+ metadata.gz: 1baa87b1abf4cc44bcd79b5345f02893859d135abfcc385c4267b3853f7631bb437a92f0f573f45bc14b6a47e4099b980b71d86b4f9fcb4292b16501282bf0f6
7
+ data.tar.gz: 01c11d2ef5e009c775a924dda50eb1aa5720917b495e2c17c1c9d8042a041df56bf6e868b46d4aef041df68d8ead4a5a2070cd5f756c32699250da79a21190b7
@@ -8,6 +8,10 @@ module Spree
8
8
  formatted_custom_domain || formatted_url
9
9
  end
10
10
 
11
+ def storefront_url
12
+ formatted_custom_domain || super
13
+ end
14
+
11
15
  def can_be_deleted?
12
16
  self.class.where.not(id: id).any?
13
17
  end
@@ -1,3 +1,8 @@
1
+ # Multi-store setup
2
+ # You need to set a wildcard `root_domain` on the store to enable multi-store setup
3
+ # all new stores will be created in a subdomain of the root domain, eg. store1.localhost, store2.localhost, etc.
4
+ Spree.root_domain = ENV.fetch('SPREE_ROOT_DOMAIN', 'localhost')
5
+
1
6
  Rails.application.config.after_initialize do
2
7
  Spree::Dependencies.current_store_finder = 'Spree::Stores::FindCurrent'
3
8
 
@@ -11,9 +16,4 @@ Rails.application.config.after_initialize do
11
16
  if defined?(Spree::Admin)
12
17
  Spree.admin.partials.product_form_sidebar << 'spree/admin/products/form/stores'
13
18
  end
14
-
15
- # Multi-store setup
16
- # You need to set a wildcard `root_domain` on the store to enable multi-store setup
17
- # all new stores will be created in a subdomain of the root domain, eg. store1.localhost, store2.localhost, etc.
18
- Spree.root_domain = ENV.fetch('SPREE_ROOT_DOMAIN', 'localhost')
19
19
  end
@@ -1,5 +1,9 @@
1
1
  module Spree
2
2
  module MultiStore
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'.freeze
4
+
5
+ def gem_version
6
+ Gem::Version.new(VERSION)
7
+ end
4
8
  end
5
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_multi_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vendo Connect Inc.
@@ -99,9 +99,9 @@ licenses:
99
99
  - AGPL-3.0-or-later
100
100
  metadata:
101
101
  bug_tracker_uri: https://github.com/spree/spree_multi_store/issues
102
- changelog_uri: https://github.com/spree/spree_multi_store/releases/tag/v1.0.0
102
+ changelog_uri: https://github.com/spree/spree_multi_store/releases/tag/v1.0.1
103
103
  documentation_uri: https://docs.spreecommerce.org/
104
- source_code_uri: https://github.com/spree/spree_multi_store/tree/v1.0.0
104
+ source_code_uri: https://github.com/spree/spree_multi_store/tree/v1.0.1
105
105
  post_install_message: |
106
106
  --------------------------------------------------------------
107
107
  Thank you for installing Spree Multi-Store!