ilog 0.4.3 → 0.4.4

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: 6ab9d54f6334ff533be98327dac5eeb43a2d94e8397af21fbb7246f88c6c25e3
4
- data.tar.gz: 1a12e4e20f4febf3022240ad09e2f3651df5b878e66fde9662670e3317074608
3
+ metadata.gz: 18e73d51995d9c3182fc1c40392746311cc47bd41139316eb097fd22e2a23716
4
+ data.tar.gz: 0e839b7a29decd8c352c0c4d1f379ea2750498ea67dd72de7d7071df5199efca
5
5
  SHA512:
6
- metadata.gz: c929c5afe469fa70e3d0b627a4b29cc8cafb1391e04242905d8862392852d5129ac586763b27d96aaddaf06cb4cecdc1a6e4de7ac5e8bb5cf97071cf3862097a
7
- data.tar.gz: db4a65ea3e1c5240ae32fca42b77e5ccb35852f0cbe5d262e7c866bee43f6a8822e9e891a802d2f53970d62363f2a0add59a1d043192f5fc9aea915bcc5d8a17
6
+ metadata.gz: 6453b49cc4ff16763e448bcd129e2d4a506ed20b10f82904dc3284d7defe3ecf6b88b4628fb281a57cd6f52e3bf6de41174676aed36a1a131e9208e6993fdc24
7
+ data.tar.gz: f56f6edffb66db6b19dbb318840054e47ccc4b52232103b64762794d4e24743bc489e94301d944d517e43fc427c0ca9c7fd2a54dffcebe93cd77e439e099642c
@@ -9,7 +9,7 @@ module Ilog
9
9
  def call(params)
10
10
  set_database params[:domain]
11
11
  post = ::Post.find(params[:id])
12
- post.namespace = params[:domain]
12
+ post.namespace = get_database params[:domain]
13
13
  file = post.get_asset(params)
14
14
  puts file.to_s
15
15
  self.headers.merge!({ 'Content-Type' => MIME::Types.type_for(file.path).first.content_type })
@@ -11,7 +11,7 @@ module Ilog
11
11
  req = request.env['HTTP_ACCEPT']
12
12
  if req.include? 'application/json'
13
13
  post = ::Post.find(params[:id])
14
- Post.namespace = get_namespace params[:domain]
14
+ Post.namespace = set_database params[:domain]
15
15
  self.format = :json
16
16
  self.body = post.to_json(:include => ::Post::DIMENSIONS + ::Post::GROUPINGS, :methods => [:content])
17
17
  else
@@ -37,7 +37,7 @@ module Ilog
37
37
  data[index] = JSON.parse(piece.to_json(:include => ['title', 'slug', 'timestamp', 'peoples', 'keywords', 'thumbnail'], :methods => [:kind, :uniq]))
38
38
  if (item.id == timestamp.id)
39
39
  post = Object.const_get(timestamp.timestampable_type.capitalize).find(timestamp.timestampable_id)
40
- post.namespace = get_namespace params[:domain]
40
+ post.namespace = get_database params[:domain]
41
41
  data[index][:content] = post.content
42
42
  data[index][:view] = 'post_body'
43
43
  end
data/lib/ilog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ilog
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
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.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - captainhusaynpinguin