trusty-multi-site-extension 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.markdown +4 -4
- data/app/models/site.rb +1 -1
- data/lib/multi_site/engine.rb +5 -0
- data/trusty-multi-site-extension.gemspec +1 -1
- metadata +6 -14
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDlkMDNiZTJkNDE1Njc4OWM5NTA3ODkxYzMxNmRlODhlNGQyODZkMw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
Y2YyYmMxNjlkMjMxOWU5NGQzYjlhMzlkNWU3N2YxYTc0ZDNlYTIzZQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTFlYmY0ODdmMDYzNTM5ZWViZmY0MjMxZGQwNzQ3NDgwNzMwZDEyNjc2Nzhl
|
10
|
+
MDRlMGM4MjdjMzgxYTViYWMyYzNhNDllMjc4YjU2OTBmNjU1YWEwNzZlMjli
|
11
|
+
MmI2OTc3NzJhODYxM2MwYzU5YjI5OGVkOTVjNjNlNzMxYjZjNDk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzI3OGNlZDU3ODMzNDU4NzYxNzgwZWYyZDFmY2M3NWY5NGQyN2NjYTlmZGNm
|
14
|
+
NDVkN2RhY2RiNDhjYWUzZjRmZTUwZjU3OWQyM2M0YWJmZDg1MzAwYzdhNTY1
|
15
|
+
OTM0NTEyMGE5M2JkOGZiZjViYzMyZTIzNWI4NDQ1NzY5ZTU5NDc=
|
data/README.markdown
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Created by Sean Cribbs, November 2007. Inspired by the original virtual_domain behavior.
|
4
4
|
|
5
|
-
Multi Site allows you to host multiple websites on a single
|
5
|
+
Multi Site allows you to host multiple websites on a single TrustyCMS installation.
|
6
6
|
|
7
7
|
## (Forked) ##
|
8
8
|
|
@@ -30,7 +30,7 @@ There are no absolute requirements but you will need to install our submenu exte
|
|
30
30
|
|
31
31
|
This differs from the original in that it will create a default site if none exists, but this should happen invisibly.
|
32
32
|
|
33
|
-
This version of multi_site does cause failures in
|
33
|
+
This version of multi_site does cause failures in Trusty's main tests, usually when a site is required but the tests don't supply it. I will probably add a 'lax mode' at some point that doesn't mind if no site is defined.
|
34
34
|
|
35
35
|
### Scoped resources ###
|
36
36
|
|
@@ -48,7 +48,7 @@ If a site-scoped class includes any calls to `validates_uniqueness_of`, those to
|
|
48
48
|
|
49
49
|
**Please Note:** a `site_scoped` class must be watched by the `UserActionObserver` in order to get the before_validation hook that sets the site id.
|
50
50
|
|
51
|
-
There is, or will soon be, more about this [in the wiki](
|
51
|
+
There is, or will soon be, more about this [in the wiki](https://github.com/pgharts/trusty-multi-site-extension) and one day I'll get round to posting some [proper documentation](http://spanner.org/radiant/multi_site).
|
52
52
|
|
53
53
|
|
54
54
|
|
@@ -57,7 +57,7 @@ There is, or will soon be, more about this [in the wiki](http://wiki.github.com/
|
|
57
57
|
The [scoped_admin](http://github.com/spanner/radiant-scoped-admin-extension) extension uses this method to confine layouts, snippets and (some)
|
58
58
|
users to sites. It only takes four lines of code and two partials.
|
59
59
|
|
60
|
-
We've also shrunk the [paperclipped_multi_site](
|
60
|
+
We've also shrunk the [paperclipped_multi_site](https://github.com/pgharts/trusty-clipped-extension) extension to a one-liner.
|
61
61
|
|
62
62
|
Our [reader](http://github.com/spanner/radiant-reader-extension) extension - which handles the mechanics of site membership - is site scoped if this extension is present. It includes a useful `fake_site_scope` class that drops a warning in the log if site-scoping is not possible but otherwise lets the extension work in a single-site installation.
|
63
63
|
|
data/app/models/site.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# The site class includes - in find_for_host - some key retrieval and creation logic that is called from ApplicationController to set the current site context.
|
2
|
-
# Otherwise it's just another
|
2
|
+
# Otherwise it's just another Trusty data model.
|
3
3
|
|
4
4
|
class Site < ActiveRecord::Base
|
5
5
|
acts_as_list
|
data/lib/multi_site/engine.rb
CHANGED
@@ -4,7 +4,7 @@ require "trusty-multi-site-extension"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "trusty-multi-site-extension"
|
7
|
-
s.version = "1.0.
|
7
|
+
s.version = "1.0.2"
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Eric Sipple"]
|
10
10
|
s.date = %q{2014-10-07}
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-multi-site-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Eric Sipple
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: acts_as_list
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: trusty-snippets-extension
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: trusty-cms
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -65,6 +58,8 @@ executables: []
|
|
65
58
|
extensions: []
|
66
59
|
extra_rdoc_files: []
|
67
60
|
files:
|
61
|
+
- README.markdown
|
62
|
+
- Rakefile
|
68
63
|
- app/assets/images/admin/move_higher.png
|
69
64
|
- app/assets/images/admin/move_lower.png
|
70
65
|
- app/assets/images/admin/move_to_bottom.png
|
@@ -112,8 +107,6 @@ files:
|
|
112
107
|
- lib/tasks/scoped_admin_extension_tasks.rake
|
113
108
|
- lib/trusty-multi-site-extension.rb
|
114
109
|
- multi_site_extension.rb
|
115
|
-
- Rakefile
|
116
|
-
- README.markdown
|
117
110
|
- spec/controllers/extended_site_controller_spec.rb
|
118
111
|
- spec/datasets/site_pages_dataset.rb
|
119
112
|
- spec/datasets/sites_dataset.rb
|
@@ -128,27 +121,26 @@ files:
|
|
128
121
|
- trusty-multi-site-extension.gemspec
|
129
122
|
homepage: https://github.com/pgharts/trusty-multi-site-extension
|
130
123
|
licenses: []
|
124
|
+
metadata: {}
|
131
125
|
post_install_message:
|
132
126
|
rdoc_options: []
|
133
127
|
require_paths:
|
134
128
|
- lib
|
135
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
-
none: false
|
137
130
|
requirements:
|
138
131
|
- - ! '>='
|
139
132
|
- !ruby/object:Gem::Version
|
140
133
|
version: '0'
|
141
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
135
|
requirements:
|
144
136
|
- - ! '>='
|
145
137
|
- !ruby/object:Gem::Version
|
146
138
|
version: '0'
|
147
139
|
requirements: []
|
148
140
|
rubyforge_project:
|
149
|
-
rubygems_version:
|
141
|
+
rubygems_version: 2.4.5
|
150
142
|
signing_key:
|
151
|
-
specification_version:
|
143
|
+
specification_version: 4
|
152
144
|
summary: Extends Trusty CMS Layouts to support multiple sites, defined by domain
|
153
145
|
test_files:
|
154
146
|
- spec/controllers/extended_site_controller_spec.rb
|