imagesite 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/imagesite.gemspec +1 -1
- data/lib/image_site/image.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1804fe40fa021349a53a85319947999865463535
|
4
|
+
data.tar.gz: ad38b2c60ec98742080219ef4edc50d9fac4aaa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45b33bd47fdb0735faa8509e49bbae790b66bd40b61e207f57b33daaeed067b8a167f9d880b944e8ec8969ba666a0f5fbed90bb7658ce12cd533cc2c12d0f883
|
7
|
+
data.tar.gz: 9432e3eb6f1950d49828753f0be5f4d79e05e9807010ddce62d70a1e4473ca8a781b8daeb61d961f17e443a36e5d656ca47d8a3e119ea959f84ac5999492e084
|
data/Gemfile.lock
CHANGED
data/imagesite.gemspec
CHANGED
data/lib/image_site/image.rb
CHANGED
@@ -42,7 +42,8 @@ module ImageSite
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def title
|
45
|
-
|
45
|
+
title = dc(:title)
|
46
|
+
title && title.first || nil
|
46
47
|
end
|
47
48
|
|
48
49
|
NEWLINE = "\xE2\x80\xA8".force_encoding('ASCII-8BIT')
|
@@ -52,7 +53,7 @@ module ImageSite
|
|
52
53
|
end
|
53
54
|
|
54
55
|
def tags
|
55
|
-
|
56
|
+
dc(:subject) || []
|
56
57
|
end
|
57
58
|
|
58
59
|
def relative_html
|
@@ -78,6 +79,10 @@ module ImageSite
|
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
82
|
+
def dc(property)
|
83
|
+
xmp && xmp.dc && xmp.dc.respond_to?(property) && xmp.dc.send(property)
|
84
|
+
end
|
85
|
+
|
81
86
|
def xmp
|
82
87
|
@xmp ||= XMP.parse exif
|
83
88
|
end
|