site_framework 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6147c84db82fe6f09dd37ac221064f32acbc8c56
|
4
|
+
data.tar.gz: 1c15fa8f2ebc86f23573ca3b6cbba1e95d954dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db3115d284c3d2d52a3fcf2971890bfe857a298da6769a22b71b34985305b42876f92a26ffcfdaef6aa519541676d6d3d89b908e26eb82229edc9f586e5c2a01
|
7
|
+
data.tar.gz: 5d73b22978c0667418c1ab626d93c42ee98e2875d58b0908c0a78536a7353238a654fd76d096124e8d4b2f75687ef5f199a2e382d9f5e33edb8b11e41353f32a
|
@@ -10,9 +10,10 @@ class SiteFramework::Routing::DefaultConstraint
|
|
10
10
|
|
11
11
|
|
12
12
|
def matches?(request)
|
13
|
+
return true if @matched
|
13
14
|
@domain_name = request.host
|
14
15
|
|
15
|
-
if @default_domains.include?
|
16
|
+
if @mathced = @default_domains.include?(@domain_name)
|
16
17
|
logger.debug('Loading default site configuration')
|
17
18
|
patch_request(request)
|
18
19
|
true
|
@@ -20,10 +20,12 @@ class SiteFramework::Routing::SiteConstraint
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def matches?(request)
|
23
|
-
if domain_obj
|
23
|
+
return true if @domain_obj
|
24
|
+
|
25
|
+
if @domain_obj = domain(request.host)
|
24
26
|
@domain_name = request.host
|
25
27
|
logger.debug("'#{@domain_name}' matched.")
|
26
|
-
setup(domain_obj, request)
|
28
|
+
setup(@domain_obj, request)
|
27
29
|
initialize_site_default_state
|
28
30
|
|
29
31
|
true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.1
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: A site framework for Ruby on Rails web framework inspired by Django site
|