seo_sensei 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seo_sensei/resource.rb +9 -9
- data/lib/seo_sensei/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b11732e3c9b743cc999b9e9e4d3b52ca0af9a69f2fa3e3592a4e7d1dee7cb88
|
4
|
+
data.tar.gz: 934087732ba032a38bc37d09d79125c741aba62751e44d6c90259f89cb537afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41af511808da760723e03e764400e882b0c20d4d3a50567fca0ad56b999f20d247f3a1896923a35d2bd79975e625d9087cea457ded63d070a153f203f6a3bdae
|
7
|
+
data.tar.gz: 2025b0a82ca5173c7eb86fb4a615d7a7d6282403322a187ba65c8e5d38862dd5d1ff1506a36e1ee58909bec5e696da81412065e958c6832454cf26fdeba0e142
|
data/lib/seo_sensei/resource.rb
CHANGED
@@ -11,15 +11,15 @@ module SeoSensei
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def title
|
14
|
-
@translation[
|
14
|
+
@translation[:title]
|
15
15
|
end
|
16
16
|
|
17
17
|
def description
|
18
|
-
@translation[
|
18
|
+
@translation[:description]
|
19
19
|
end
|
20
20
|
|
21
21
|
def keywords
|
22
|
-
@translation[
|
22
|
+
@translation[:keywords]
|
23
23
|
end
|
24
24
|
|
25
25
|
def use_image?
|
@@ -30,7 +30,7 @@ module SeoSensei
|
|
30
30
|
if use_obj_image?
|
31
31
|
@obj.seo_image_url
|
32
32
|
elsif use_translation_image?
|
33
|
-
@translation[
|
33
|
+
@translation[:seo_image_url]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -38,7 +38,7 @@ module SeoSensei
|
|
38
38
|
if use_obj_image?
|
39
39
|
@obj.seo_image_dimensions[:width].to_s
|
40
40
|
elsif use_translation_image?
|
41
|
-
@translation[
|
41
|
+
@translation[:seo_image_width]
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
@@ -46,7 +46,7 @@ module SeoSensei
|
|
46
46
|
if use_obj_image?
|
47
47
|
@obj.seo_image_dimensions[:height].to_s
|
48
48
|
elsif use_translation_image?
|
49
|
-
@translation[
|
49
|
+
@translation[:seo_image_height]
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -59,9 +59,9 @@ module SeoSensei
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def use_translation_image?
|
62
|
-
!@translation[
|
63
|
-
!@translation[
|
64
|
-
!@translation[
|
62
|
+
!@translation[:seo_image_url].nil? &&
|
63
|
+
!@translation[:seo_image_width].nil? &&
|
64
|
+
!@translation[:seo_image_height].nil?
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/lib/seo_sensei/version.rb
CHANGED