thecore 1.5.7 → 1.5.8

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
  SHA1:
3
- metadata.gz: 822acad7aa2aac17558df3448f7c25638d327ec1
4
- data.tar.gz: 53cf077246c2e299745d4e5974c60db0da960a1b
3
+ metadata.gz: 15452c0600033c6c982e51cb2e9cfb11530d1974
4
+ data.tar.gz: 61c8bd7462ee6ccd73fc5e8abaffda83eeaa07cf
5
5
  SHA512:
6
- metadata.gz: b52958082a54de54201d31e14a478ef2bab49107ef0a05892436cc2a33a68cf7e1b98935849f486c307cb86560a3bcb49753a158f41f7b16c50a6d7246f7f472
7
- data.tar.gz: f0a98eca6d9ac6dcd3f0de8bbce13aca35a4c4a04e161c8ebbcb08ef3160da7ffce6bf840e5cd6afe5cf66c7b8d078d0c23efe92d2d62101e055b36c78acb30f
6
+ metadata.gz: 956a5552ab9e7537ce5ef01f9405044d334ae4acd1d25a147703631f9c30afffad7a464d01b17a6f400bbd72585c9a2b8c13e5f3f0486e9b0a3e551e5bdee372
7
+ data.tar.gz: b748e1a02bd821a5092cc4bdc15220257c1ab0b118f0b1d572d5d71fdf7a1cb61104041f2b775c47a26af62e1a5d4b48c51fba796dd6c4ea1ba9ea9882e05c9a
@@ -1,6 +1,6 @@
1
1
  class Ckeditor::Picture < Ckeditor::Asset
2
2
  has_attached_file :data,
3
- url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
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',
4
4
  path: ':rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension',
5
5
  styles: { content: '800>', thumb: '118x100#' }
6
6
 
@@ -10,11 +10,11 @@ class Ckeditor::Picture < Ckeditor::Asset
10
10
 
11
11
  def url_content
12
12
  # url(:content)
13
- url = if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?
13
+ url_t = if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?
14
14
  "http://localhost:3000"
15
15
  else
16
16
  "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
17
17
  end
18
- "#{url}#{url(:content)}"
18
+ "#{url_t}#{url(:content)}"
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.5.7'.freeze
2
+ VERSION = '1.5.8'.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.7
4
+ version: 1.5.8
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-22 00:00:00.000000000 Z
11
+ date: 2018-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails