html_to 0.7.0 → 0.7.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: 945d0a2a34a669ead1e062b571c88d906e47a3c9a4c2680fdef542374b35c646
4
- data.tar.gz: cc9c891b010fb627d4f6dcc14f0a9a1eb6ee0527c926dbeb6290b13c79a25604
3
+ metadata.gz: b6ecaa0e2c84c8fe46d7fe6aebbe6296769474158cdff0e79cf4d4dae0e6f972
4
+ data.tar.gz: 95feea233e1b7331df54c0b1c8d75c02280f74d57fdf7d09145649569e884d22
5
5
  SHA512:
6
- metadata.gz: 2f89275b24e49d19ab756d8bb750ca90105d7705ea7543305e01d2759dc33be8378083dcf49151b8bd22736a1052ef28c5e8d3b71fbde18b8b04c9db91373a89
7
- data.tar.gz: '028fad20941e6ddf36ed8214f4a2a1980b70d0392ac3a493ffe51297f57605210864762b614a22b3dc3e203d7e789ff5bc1757b726a6cb6cb0f9c28afc1d2278'
6
+ metadata.gz: f059096bd2178e8c3c187a8c486d95c83e96856ea2c858644edd6e34544685dfdea7fabe55e28ac0729606358af886cb70046ba41523ea9e36053c186547b9f4
7
+ data.tar.gz: 4dce00f4a795dc43d106b5411588f56ed6326a1eb4383cc9e3612dcd9257feeac1675c66347d88398fe0191addefea3381b1c1f8d558c1a23e2a2fa6b238132c
data/html_to.gemspec CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'html_to'
5
- s.version = '0.7.0'
5
+ s.version = '0.7.1'
6
6
  s.date = '2021-04-07'
7
7
  s.summary = 'Html-To transforms html to other format'
8
8
  s.description = 'Simple gem for transforms html page through chromium headless.'
@@ -1,7 +1,14 @@
1
1
  class HtmlTo::ShareUploader < CarrierWave::Uploader::Base
2
2
  include CarrierWave::MiniMagick
3
+
4
+ raise 'Message from html_to: Rails.application.config.asset_host not present' if Rails.application.config.asset_host.nil?
5
+
3
6
  def store_dir
4
7
  "storage/#{model.class.base_class.name.underscore}/#{model.id}/share"
5
8
  end
9
+
10
+ def url
11
+ "#{Rails.application.config.asset_host}#{super}"
12
+ end
6
13
  process resize_to_limit: [1200, 630]
7
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chekryzhov Viktor