spree_multi_domain 3.0.1 → 3.0.2

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.
Files changed (4) hide show
  1. data/README.md +33 -0
  2. data/config/routes.rb +7 -0
  3. data/db/seeds.rb +2 -0
  4. metadata +14 -18
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ Multi Domain Store
2
+ ==================
3
+
4
+ This extension allows a single Spree instance to have several customer facing stores, with a single shared backend administration system (i.e. multi-store, single-vendor).
5
+
6
+ Current features:
7
+ ------------------
8
+
9
+ 1. **Store** model which has the following attributes:
10
+
11
+ 1.1 name - The display name for the store.
12
+
13
+ 1.2 domains - a line separated list of fully qualified domain names used to associate a customers session with a particular store (you can use localhost and/or IP addresses too).
14
+
15
+ 1.3 code - which is a abbreviated version of the store's name (used as the layout directory name, and also helpful for separating partials by store).
16
+
17
+ 1.4 default - one store should be marked a default as a fallback in case the URL being used to access the site cannot be matched against any of the configured stores.
18
+
19
+ 2. Stores and domains can be maintained via the configuration section of the Admin interface
20
+
21
+ 2. Each store can have it's own layout(s) - these layouts should be located in your site's theme extension in the app/views/layouts/_store#code_/ directory. So, if you have a store with
22
+ a code of "alpha" you should store it's default layout in app/views/layouts/alpha/spree_application.html.erb
23
+
24
+ 3. Each product can be assigned to one or more stores.
25
+
26
+ 4. All orders are associated with the store / domain that they were placed on.
27
+
28
+ 5. Google analytics trackers can be associated with a store.
29
+
30
+ Features To-do
31
+ --------------
32
+
33
+ 1. Taxonomies - associate stores with taxonomies.
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ Rails.application.routes.draw do
2
+
3
+ namespace :admin do
4
+ resources :stores
5
+ end
6
+
7
+ end
data/db/seeds.rb ADDED
@@ -0,0 +1,2 @@
1
+ # Use this file to load your own seed data from extensions.
2
+ # See the db/seeds.rb file in the Spree core for some ideas on what you can do here.
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_multi_domain
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
4
  prerelease: false
6
5
  segments:
7
6
  - 3
8
7
  - 0
9
- - 1
10
- version: 3.0.1
8
+ - 2
9
+ version: 3.0.2
11
10
  platform: ruby
12
- authors: []
13
-
11
+ authors:
12
+ - Brian Quinn
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-09-03 00:00:00 -05:00
17
+ date: 2010-09-13 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: spree_core
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
- - - "="
25
+ - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: -1848229955
30
27
  segments:
31
28
  - 0
32
29
  - 30
@@ -35,8 +32,8 @@ dependencies:
35
32
  version: 0.30.0.beta1
36
33
  type: :runtime
37
34
  version_requirements: *id001
38
- description:
39
- email:
35
+ description: Multiple Spree stores on different domains - single unified backed for processing orders.
36
+ email: brian@railsdog.com
40
37
  executables: []
41
38
 
42
39
  extensions: []
@@ -44,6 +41,7 @@ extensions: []
44
41
  extra_rdoc_files: []
45
42
 
46
43
  files:
44
+ - README.md
47
45
  - lib/spree_multi_domain/engine.rb
48
46
  - lib/spree_multi_domain.rb
49
47
  - lib/spree_multi_domain_hooks.rb
@@ -62,8 +60,10 @@ files:
62
60
  - app/views/admin/trackers/_index_rows.html.erb
63
61
  - app/views/admin/trackers/_store.html.erb
64
62
  - app/views/shared/_google_analytics.html.erb
63
+ - db/seeds.rb
64
+ - config/routes.rb
65
65
  has_rdoc: true
66
- homepage:
66
+ homepage: http://spreecommerce.com
67
67
  licenses: []
68
68
 
69
69
  post_install_message:
@@ -72,29 +72,25 @@ rdoc_options: []
72
72
  require_paths:
73
73
  - lib
74
74
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
75
  requirements:
77
76
  - - ">="
78
77
  - !ruby/object:Gem::Version
79
- hash: 57
80
78
  segments:
81
79
  - 1
82
80
  - 8
83
81
  - 7
84
82
  version: 1.8.7
85
83
  required_rubygems_version: !ruby/object:Gem::Requirement
86
- none: false
87
84
  requirements:
88
85
  - - ">="
89
86
  - !ruby/object:Gem::Version
90
- hash: 3
91
87
  segments:
92
88
  - 0
93
89
  version: "0"
94
90
  requirements:
95
91
  - none
96
- rubyforge_project:
97
- rubygems_version: 1.3.7
92
+ rubyforge_project: spree_multi_domain
93
+ rubygems_version: 1.3.6
98
94
  signing_key:
99
95
  specification_version: 3
100
96
  summary: Adds multiple site support to Spree