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: 837e5016c615d68c84e770a07dbda43a710064d0
4
- data.tar.gz: 332d2d238b919e11075f25aa138d69ffd7f39926
3
+ metadata.gz: 6147c84db82fe6f09dd37ac221064f32acbc8c56
4
+ data.tar.gz: 1c15fa8f2ebc86f23573ca3b6cbba1e95d954dc7
5
5
  SHA512:
6
- metadata.gz: 8973d21a898910927bfc74f1683faccff9d83e926579205d1eca8585196b4afe52a230f2191ee8881f3e9d88e072a8d0bf3d0134fb808957b3727950174b8d81
7
- data.tar.gz: 0a726fd7956bb053df96c438e911c893af119086506aabf091c7ac24b58ca8ade1ddf94eff6c4accd23b25cba3cf762baf444ab81062fd3dc7cb431d2aa9b196
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? @domain_name
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 = domain(request.host)
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
@@ -1,3 +1,3 @@
1
1
  module SiteFramework
2
- VERSION = '4.3.0'
2
+ VERSION = '4.3.1'
3
3
  end
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.0
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-05-11 00:00:00.000000000 Z
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.4.5.1
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