thecore 1.5.10 → 1.5.12

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: 580403c11e38449081dce92d7e70151983eff97e
4
- data.tar.gz: ac9c23565a536fd9919f5c3c10a34d4c234d2c02
3
+ metadata.gz: 0c9fe2b18518e2ed8efcfc3414a7400b1b59c253
4
+ data.tar.gz: 14bd24ca7b727957ba0815c0ac8b68b078314e37
5
5
  SHA512:
6
- metadata.gz: 24c6844ef504e808a20d0d7c619d081bd603e63f40f7e2363c938fc258f12e8520491ac6f7a2db7e7edd38fa42151d9783523d2e9097e346c385ee7a20aa72a3
7
- data.tar.gz: 79a5b6d7fa531ec18a8125871d2358be38673cd6f21ac5652355e7af792ce73872bc4ac0200121c354c443ce44b2a4b6ebea469dfd3d1437e0d9c53a7981c902
6
+ metadata.gz: 9eeb1a4b46f977582abb8868234a682ef1b9c4b9d4a42e077f8aae69835523b8a0b34f6f1d9c485183a8833ee9f2d7bea5ca3ad04f25f92e1b189a344bda32d9
7
+ data.tar.gz: 9842d34beb327d95edc0426e9e8c80842177ab86141357ab8c47576e62283e6b5ddc5f434344b4d2a11b32f128a381b9185856df58588f5edd706e16a97a31e2
@@ -1,6 +1,6 @@
1
1
  class Ckeditor::Picture < Ckeditor::Asset
2
2
  has_attached_file :data,
3
- url: ((ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}") + '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
3
+ url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
4
4
  path: ':rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension',
5
5
  styles: { content: '800>', thumb: '118x100#' }
6
6
 
@@ -10,7 +10,7 @@ class Ckeditor::Picture < Ckeditor::Asset
10
10
 
11
11
  def url_content
12
12
  # url(:content)
13
- url_t = (ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
14
- "#{url_t}#{url(:content)}"
13
+ # url_t = (ENV['RAILS_URL'].blank? || ) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
14
+ "#{ENV['RAILS_URL'].presence || "http://localhost:3000"}#{ENV['RAILS_RELATIVE_URL_ROOT'].presence}#{url(:content)}"
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.5.10'.freeze
2
+ VERSION = '1.5.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.10
4
+ version: 1.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-23 00:00:00.000000000 Z
11
+ date: 2018-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails