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 +4 -4
- data/lib/dato/local/field_type/file.rb +13 -10
- data/lib/dato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb70e8b8f1d16624079236e54b0f1170d8e1aa13e526dfd18f2ff1644a5613c8
|
4
|
+
data.tar.gz: adc3c473a1e5374ab75b39fb3d27016fa111732501ba03f39e06c5a548d04343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
|
data/lib/dato/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|