page_structured_data 0.1.4 → 0.1.5

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: caecea8674b2a1a804c733ede3c83657d96cc2eabf8f58b46a433a4d7e43b731
4
- data.tar.gz: b53f5785a48de2835d11c21128e040aa738cb155053e23470dc37062c3181cc4
3
+ metadata.gz: c876eb5e9c0b0038fdedc9c6d20830d93d329d6694ed708e7129743c530f1495
4
+ data.tar.gz: eced8b242aa8c2459288de2896df762a40e4da7286bda30b524838c33f5c65f3
5
5
  SHA512:
6
- metadata.gz: 81d9c8f0d0cd138c6a0d1e295e08784de43d0162fb772ac7183bf1001f20228dfdaf2044f6cac9a5c6883a475c019742a54aed9972dc35d893260b65f01ca935
7
- data.tar.gz: 5e5cf941f5fc7c1e70596a0880516fdd2d209f2adc65de61c914063793eb3f50eba8ecc673c653c3d52efc9e1c270160318f2a9ab521cc8c89c59333a814c790
6
+ metadata.gz: c1e6fb70adc060f12755f37e1148203b6db346ae38d1fa114b6b39566fce0cfa29cd1d55740f650bcee56c33d36f7813aada5d1bc83f044cc85af4d2b6207257
7
+ data.tar.gz: ed1c65bbbe73bad4e0e0cd6a1dcfdd09be615ad44eaed67ac6beb1f3f03dc953e34ee164cbe1f34452ec891b3c55f8bf0859a106f96df4cc5ece542a7f97279c
@@ -25,8 +25,8 @@ module PageStructuredData
25
25
 
26
26
  def page_title
27
27
  result = title_with_hierarchies.join(separator)
28
- if PageStructuredData.base_app_name.present?
29
- result += separator + PageStructuredData.base_app_name
28
+ if base_app_name.present?
29
+ result += separator + base_app_name
30
30
  end
31
31
  result
32
32
  end
@@ -40,6 +40,14 @@ module PageStructuredData
40
40
 
41
41
  private
42
42
 
43
+ def base_app_name
44
+ PageStructuredData.base_app_name
45
+ end
46
+
47
+ def default_image_url
48
+ PageStructuredData.default_image_url
49
+ end
50
+
43
51
  def separator
44
52
  ' - '
45
53
  end
@@ -4,7 +4,9 @@
4
4
  - if page&.image.present?
5
5
  - image = page.image
6
6
  - else
7
- - image = PageStructuredData.default_image_url
7
+ - image = page.default_image_url
8
+
9
+ title = title
8
10
 
9
11
  meta{name="title" content=title}
10
12
  meta{name="description" content=description}
@@ -1,3 +1,3 @@
1
1
  module PageStructuredData
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_structured_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jey Geethan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails