dato 0.6.7 → 0.6.8

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: 02431cad8a758c5f9b5f0c8576cd1722129e3cec6510babb951dbd71d7317ca9
4
- data.tar.gz: 2da8005445d251f7c30e077a99db126c99ee3fb01db702a793733969ec7c5ea8
3
+ metadata.gz: fb70e8b8f1d16624079236e54b0f1170d8e1aa13e526dfd18f2ff1644a5613c8
4
+ data.tar.gz: adc3c473a1e5374ab75b39fb3d27016fa111732501ba03f39e06c5a548d04343
5
5
  SHA512:
6
- metadata.gz: 7e7a32026b3397bd3f1513cfe96b964deec3548f39dfbb148ded6e2c6bc314ed73e0ec61ac39a8860c653f00d48a0b795bdaa9c0d24ec26241eadc5fba227419
7
- data.tar.gz: 192db48b4654a85974866561b0289aa7148456fa2c83e3c896b2caf9b9d0ffb63b383344916debcffdafddcdd45c69929eb5e140c83e84167349a9a00c029ade
6
+ metadata.gz: befc5c680415df287fcf424df969239f760a293946f3c802f33ad4f5490403c7007e9a936abea8f98abe19c264a2f400382c57e0cc794db95e77af829959761e
7
+ data.tar.gz: 03a8234742817f5f508440525c8f6feab9cd5aabc41400bdae30b7d7765cbb4ad9c411c0bc7e782d4d45bd5ef69f53a563b2ad00c053788c4dba625efc7bf5fc
@@ -10,16 +10,19 @@ module Dato
10
10
  def self.parse(upload_id, repo)
11
11
  if upload_id
12
12
  upload = repo.entities_repo.find_entity("upload", upload_id)
13
- new(
14
- upload.path,
15
- upload.format,
16
- upload.size,
17
- upload.width,
18
- upload.height,
19
- upload.alt,
20
- upload.title,
21
- repo.site.entity.imgix_host
22
- )
13
+
14
+ if upload
15
+ new(
16
+ upload.path,
17
+ upload.format,
18
+ upload.size,
19
+ upload.width,
20
+ upload.height,
21
+ upload.alt,
22
+ upload.title,
23
+ repo.site.entity.imgix_host
24
+ )
25
+ end
23
26
  end
24
27
  end
25
28
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.6.7'
3
+ VERSION = '0.6.8'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler