ilog 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18e73d51995d9c3182fc1c40392746311cc47bd41139316eb097fd22e2a23716
4
- data.tar.gz: 0e839b7a29decd8c352c0c4d1f379ea2750498ea67dd72de7d7071df5199efca
3
+ metadata.gz: 4a4752364f44bb7034936c2de7310e865fe84d3603d07ec04146bfba7bd9da53
4
+ data.tar.gz: 2ee95f0dbf5e9c13a2c3b7c4d9a2e69207a828eccbcca876136b42d0f51ceff4
5
5
  SHA512:
6
- metadata.gz: 6453b49cc4ff16763e448bcd129e2d4a506ed20b10f82904dc3284d7defe3ecf6b88b4628fb281a57cd6f52e3bf6de41174676aed36a1a131e9208e6993fdc24
7
- data.tar.gz: f56f6edffb66db6b19dbb318840054e47ccc4b52232103b64762794d4e24743bc489e94301d944d517e43fc427c0ca9c7fd2a54dffcebe93cd77e439e099642c
6
+ metadata.gz: cb51115614dc0e745136b66d670168b4d306c36c9a55c885ba0ee71ff9b8a1a72ecbace46410543e4741db6778aeea1ec67a534ed851abd868d7d0887376b371
7
+ data.tar.gz: 978f934243659f140278817cef7509be446f0fc2a94cedd48e009b47c5b97195c3ab56a07543e2aa9cc03c39b8a0953a28fffeb7d1d439392f8ab78edcf75a36
@@ -9,13 +9,17 @@ module Ilog
9
9
  expose :namespace, :vue_config
10
10
  def call(params)
11
11
  set_database params[:domain]
12
+
13
+ # variable set for front-end vue
12
14
  @vue_config = Ilog.configuration
15
+
16
+ # rest of action
13
17
  @namespace = get_namespace params[:domain]
14
18
  req = request.env['HTTP_ACCEPT']
15
19
 
16
20
  if req.include? 'application/json'
17
21
  post = ::Post.find(params[:id])
18
- post.namespace = @namespace
22
+ post.namespace = get_database params[:domain]
19
23
  self.format = :json
20
24
  self.body = post.to_json(:include => ::Post::DIMENSIONS + ::Post::GROUPINGS, :methods => [:content])
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module Ilog
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ilog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - captainhusaynpinguin