ilog 0.2.0 → 0.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b54420038336ddade9ba63545c8e1bd942350ba122a39e37789ddfa3f2885b
|
4
|
+
data.tar.gz: 4fd63ec5554d93020c3fcef18ebdbfb2575e69cebf7c11103788398561067167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da962c1c5cfd56521e91bc726e84acfbe330e5152fb75692baabe5fb6a0953f19c7fe433d836af1fd4840f0ae7cac64ac4e28ccdf061c06c87d5eaad357043d
|
7
|
+
data.tar.gz: 883fc29e8e89bf353c2f2734d6bbd928c7c8726ce1bfba92e46c96c1d413e0d293b412bb93febb0e21cb816f30fa5c3a25aa54dcd95b26eaeca952a75f167839
|
data/lib/ilog/configuration.rb
CHANGED
@@ -3,7 +3,7 @@ module Ilog
|
|
3
3
|
module Index
|
4
4
|
class Digital
|
5
5
|
include Ilog::Action
|
6
|
-
expose :namespace
|
6
|
+
expose :namespace, :host
|
7
7
|
def set_database database
|
8
8
|
tmp_config = ActiveRecord::Base.connection_config
|
9
9
|
tmp_config[:database] = database
|
@@ -13,6 +13,7 @@ module Ilog
|
|
13
13
|
@database = Ilog.configuration.namespaces[params[:domain]]
|
14
14
|
self.set_database @database
|
15
15
|
@namespace = params[:domain]
|
16
|
+
@host = Ilog.configuration.host
|
16
17
|
req = request.env['HTTP_ACCEPT']
|
17
18
|
if req.include? 'application/json'
|
18
19
|
post = ::Post.find(params[:id])
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
11
11
|
<script>
|
12
12
|
Window.Config = {
|
13
|
-
"host": "
|
13
|
+
"host": "<%= host %>",
|
14
14
|
"title": "My Blog",
|
15
15
|
"profile": { "avatar": "", "author": "", "status": "", "website": "", "email": "", "location": "" },
|
16
16
|
"digital": { "uri": "<%= namespace %>" },
|
data/lib/ilog/version.rb
CHANGED