site_framework 4.3.2 → 4.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/site_framework/routing/default_constraint.rb +4 -0
- data/lib/site_framework/routing/site_constraint.rb +3 -0
- data/lib/site_framework/version.rb +1 -1
- metadata +40 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44ad8ddacc28821061c19f35b55abecb5a10f386
|
4
|
+
data.tar.gz: ea488fc6dcd94cab4f93ee16752ff011772aa978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512c1a68d5a5cd83cc351048f99910a3fe261d423fd3e394ae83dfe9fed101709d888f227cd64b7c3793e64ddae8d50a0c179a740c4d788671d907db7deee660
|
7
|
+
data.tar.gz: d116559bdf959e06b2424c7a256494eb928a0a4c98e06afd97d118a557a9768de1a53c0c3fe34c9a449307b2ddb9372ce2f38cd283578026e9dfc39111f70492
|
data/Rakefile
CHANGED
@@ -15,6 +15,10 @@ class SiteFramework::Routing::DefaultConstraint
|
|
15
15
|
|
16
16
|
@domain_name = request.host
|
17
17
|
|
18
|
+
|
19
|
+
logger.debug("[DEFAULT] REQUEST HOST: #{request.host}")
|
20
|
+
|
21
|
+
|
18
22
|
if @mathced = @default_domains.include?(@domain_name)
|
19
23
|
logger.debug('Loading default site configuration')
|
20
24
|
patch_request(request)
|
@@ -23,6 +23,9 @@ class SiteFramework::Routing::SiteConstraint
|
|
23
23
|
return true if @domain_obj
|
24
24
|
return false if @domain_obj == false
|
25
25
|
|
26
|
+
logger.debug("[SITE] REQUEST HOST: #{request.host}")
|
27
|
+
logger.debug("DOMAIN: #{domain(request.host)}")
|
28
|
+
|
26
29
|
if @domain_obj = domain(request.host)
|
27
30
|
@domain_name = request.host
|
28
31
|
logger.debug("'#{@domain_name}' matched.")
|
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.3
|
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-08-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: A site framework for Ruby on Rails web framework inspired by Django site
|
56
70
|
fremework. The idea of this gem to transparently make Rails facilities to work with
|
57
71
|
different domains.
|
@@ -148,37 +162,37 @@ specification_version: 4
|
|
148
162
|
summary: A site framework for Ruby on Rails web framework inspired by Django site
|
149
163
|
fremework
|
150
164
|
test_files:
|
151
|
-
- spec/models/site_framework/site_spec.rb
|
152
|
-
- spec/models/site_framework/domain_spec.rb
|
153
165
|
- spec/spec_helper.rb
|
154
|
-
- spec/dummy/public/422.html
|
155
|
-
- spec/dummy/public/500.html
|
156
|
-
- spec/dummy/public/404.html
|
157
|
-
- spec/dummy/public/favicon.ico
|
158
|
-
- spec/dummy/Rakefile
|
159
166
|
- spec/dummy/config.ru
|
160
|
-
- spec/dummy/
|
167
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
168
|
+
- spec/dummy/app/assets/javascripts/application.js
|
169
|
+
- spec/dummy/app/helpers/application_helper.rb
|
170
|
+
- spec/dummy/app/controllers/application_controller.rb
|
171
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
172
|
+
- spec/dummy/Rakefile
|
173
|
+
- spec/dummy/bin/rails
|
174
|
+
- spec/dummy/bin/bundle
|
175
|
+
- spec/dummy/bin/rake
|
176
|
+
- spec/dummy/config/initializers/inflections.rb
|
177
|
+
- spec/dummy/config/initializers/secret_token.rb
|
178
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
179
|
+
- spec/dummy/config/initializers/mime_types.rb
|
161
180
|
- spec/dummy/config/initializers/session_store.rb
|
162
181
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
163
182
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
164
|
-
- spec/dummy/config/
|
165
|
-
- spec/dummy/config/initializers/inflections.rb
|
166
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
167
|
-
- spec/dummy/config/initializers/secret_token.rb
|
168
|
-
- spec/dummy/config/database.yml
|
169
|
-
- spec/dummy/config/boot.rb
|
183
|
+
- spec/dummy/config/application.rb
|
170
184
|
- spec/dummy/config/environments/production.rb
|
171
|
-
- spec/dummy/config/environments/test.rb
|
172
185
|
- spec/dummy/config/environments/development.rb
|
186
|
+
- spec/dummy/config/environments/test.rb
|
187
|
+
- spec/dummy/config/environment.rb
|
188
|
+
- spec/dummy/config/database.yml
|
189
|
+
- spec/dummy/config/boot.rb
|
173
190
|
- spec/dummy/config/locales/en.yml
|
174
191
|
- spec/dummy/config/routes.rb
|
175
|
-
- spec/dummy/
|
176
|
-
- spec/dummy/
|
177
|
-
- spec/dummy/
|
178
|
-
- spec/dummy/
|
179
|
-
- spec/dummy/app/helpers/application_helper.rb
|
180
|
-
- spec/dummy/app/controllers/application_controller.rb
|
181
|
-
- spec/dummy/bin/rails
|
182
|
-
- spec/dummy/bin/rake
|
183
|
-
- spec/dummy/bin/bundle
|
192
|
+
- spec/dummy/public/500.html
|
193
|
+
- spec/dummy/public/404.html
|
194
|
+
- spec/dummy/public/422.html
|
195
|
+
- spec/dummy/public/favicon.ico
|
184
196
|
- spec/dummy/README.rdoc
|
197
|
+
- spec/models/site_framework/domain_spec.rb
|
198
|
+
- spec/models/site_framework/site_spec.rb
|