site_logic 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/config/routes.rb +1 -8
- data/site_logic.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.9
|
data/config/routes.rb
CHANGED
@@ -1,11 +1,4 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
-
class SiteConstraint
|
3
|
-
def initialize; end
|
4
|
-
def matches?(request)
|
5
|
-
request.subdomain != 'admin' && Site.exists?(:conditions => {:domain => request.host})
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
2
|
class RedirectConstraint
|
10
3
|
def initialize; end
|
11
4
|
def matches?(request)
|
@@ -19,7 +12,7 @@ Rails.application.routes.draw do
|
|
19
12
|
get ':source_url', :to => 'redirects#show'
|
20
13
|
end
|
21
14
|
|
22
|
-
constraints(
|
15
|
+
scope :constraints => lambda{ |r| ! r.path.include?('admin') && Site.exists?(:conditions => {:domain => r.host}) } do
|
23
16
|
root :to => 'pages#show', :via => 'get'
|
24
17
|
get '*path' => 'pages#show'
|
25
18
|
end
|
data/site_logic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{site_logic}
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bantik"]
|
12
|
-
s.date = %q{2011-08-
|
12
|
+
s.date = %q{2011-08-30}
|
13
13
|
s.description = %q{An engine for search-engine-optimized content management.}
|
14
14
|
s.email = %q{corey@seologic.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_logic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 9
|
10
|
+
version: 1.6.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bantik
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-30 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|