scrivito_seo_page_extender 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: 94f0d58ac638290307ba1bfe3c67a5942dd073b8
4
- data.tar.gz: f04339ee62aa9846aef828c4590ced1a8703ebfa
3
+ metadata.gz: f0a875d9e13a898e2e6706e9342647f6b9c788ad
4
+ data.tar.gz: d3066cf169a5bf7c26153311761a0d2230093df6
5
5
  SHA512:
6
- metadata.gz: a107f3b2f21ff2449a57737f90fa6d84256a7a24e4c2efd7888c4d100758219697107dc9baf6a1e22a93ffe843d5ee2aec9cbc2728f1aff88342c36c1d1b47c4
7
- data.tar.gz: f088c9ee84199ce0ce69c30e1b73827907145810ba42991f384b6b5c36653bc857d8271abe7e396a6b3bd57ec46dcaac6130cd1346aa8c8cdf06ef79f6d85b90
6
+ metadata.gz: c164e2f86bbdb741e409316dc6297961cf1cc816b3bbdf23f936c9f5e0ccb01bd0a28176ead9540fb6a75cc542a941b6f61f4ce049521d2cdb8c2d884a5ec547
7
+ data.tar.gz: 1df697773284fbb9b26327d77ad73c1e906ec8a6796907eae7ac6acd4c777703e9d358324aa2c274af40c018fcaebeea6000dcc64778138805bcec0f7045d456
data/README.md CHANGED
@@ -252,6 +252,7 @@ en:
252
252
  tc_creator: '<h3>Creator <small>Twitter name of the creator of this page e.g. @gertimon</small></h3>'
253
253
  tc_description: 'Description'
254
254
  tc_image: 'Image'
255
+ tc_image_alt: 'Image Description'
255
256
  tc_more_about: 'More about Twitter cards'
256
257
  tc_player_dimension: 'Dimension'
257
258
  tc_player_height: 'Height'
@@ -1,16 +1,16 @@
1
1
  module MetaDataExtender
2
2
  def self.included(base)
3
+ base.attribute :meta_author, :string
4
+ base.attribute :meta_copyright, :string
3
5
  base.attribute :meta_description, :string
4
- base.attribute :meta_keywords, :stringlist
5
- base.attribute :meta_author, :string
6
- base.attribute :meta_publisher, :string
7
- base.attribute :meta_copyright, :string
6
+ base.attribute :meta_keywords, :stringlist
7
+ base.attribute :meta_publisher, :string
8
8
 
9
- base.attribute :meta_canonical, :string
9
+ base.attribute :meta_canonical, :string
10
10
 
11
- base.attribute :meta_page_topic, :string
12
- base.attribute :meta_page_type, :string
13
- base.attribute :meta_audience, :multienum , values: ["all", "adult", "advanced", "artist", "business", "child", "college", "craft", "elementary", "elhi", "government", "grownup", "health", "high", "institution", "intermediate", "introductory", "law", "lawyer", "listeners", "military", "news", "older", "parent", "patient", "popular", "scholarly", "teacher", "tts", "viewers"]
14
- base.attribute :meta_robots, :multienum, values: ["noindex", "nofollow", "noarchive", "nosnippet", "noimageindex", "notranslate", "noodp"]
11
+ base.attribute :meta_audience, :multienum, values: %w[all adult advanced artist business child college craft elementary elhi government grownup health high institution intermediate introductory law lawyer listeners military news older parent patient popular scholarly teacher tts viewers]
12
+ base.attribute :meta_page_topic, :string
13
+ base.attribute :meta_page_type, :string
14
+ base.attribute :meta_robots, :multienum, values: %w[noindex nofollow noarchive nosnippet noimageindex notranslate noodp]
15
15
  end
16
- end
16
+ end
@@ -1,48 +1,48 @@
1
1
  module OpenGraphExtender
2
2
  def self.included(base)
3
- base.attribute :og_title, :string
4
- base.attribute :og_type, :enum, values: ['website','article','book','profile','music.song','music.album','music.playlist','music.radiostation','video.movie','video.episode','video.tv_show','video.other']
5
- base.attribute :og_locale, :string
6
- base.attribute :og_locale_alternate, :stringlist
7
- base.attribute :og_description, :string
8
- base.attribute :og_determiner, :string
9
-
10
- base.attribute :og_image, :reference
11
- base.attribute :og_audio, :reference
12
- base.attribute :og_video, :reference
13
-
14
- base.attribute :article_published_time, :date
3
+ base.attribute :og_description, :string
4
+ base.attribute :og_determiner, :string
5
+ base.attribute :og_locale, :string
6
+ base.attribute :og_locale_alternate, :stringlist
7
+ base.attribute :og_title, :string
8
+ base.attribute :og_type, :enum, values: ['website', 'article', 'blog', 'book', 'profile', 'music.song', 'music.album', 'music.playlist', 'music.radiostation', 'video.movie', 'video.episode', 'video.tv_show', 'video.other']
9
+
10
+ base.attribute :og_audio, :reference
11
+ base.attribute :og_image, :reference
12
+ base.attribute :og_video, :reference
13
+
14
+ base.attribute :article_author, :stringlist
15
15
  base.attribute :article_expiration_time, :date
16
- base.attribute :article_author, :stringlist
17
- base.attribute :article_section, :string
18
- base.attribute :article_tag, :stringlist
16
+ base.attribute :article_published_time, :date
17
+ base.attribute :article_section, :string
18
+ base.attribute :article_tag, :stringlist
19
19
 
20
- base.attribute :book_author, :stringlist
21
- base.attribute :book_isbn, :string
22
- base.attribute :book_release_date, :date
23
- base.attribute :book_tag, :stringlist
20
+ base.attribute :book_author, :stringlist
21
+ base.attribute :book_isbn, :string
22
+ base.attribute :book_release_date, :date
23
+ base.attribute :book_tag, :stringlist
24
24
 
25
- base.attribute :profile_first_name, :string
26
- base.attribute :profile_last_name, :string
27
- base.attribute :profile_username, :string
28
- base.attribute :profile_gender, :enum, values: ['male','female']
25
+ base.attribute :profile_first_name, :string
26
+ base.attribute :profile_gender, :enum, values: %w[male female]
27
+ base.attribute :profile_last_name, :string
28
+ base.attribute :profile_username, :string
29
29
 
30
30
  # Video Attributes
31
- base.attribute :video_actor, :stringlist
32
- base.attribute :video_actor_role, :string
33
- base.attribute :video_director, :stringlist
34
- base.attribute :video_writer, :stringlist
35
- base.attribute :video_duration, :string
36
- base.attribute :video_release_date, :date
37
- base.attribute :video_tag, :stringlist
38
- base.attribute :video_series, :string
31
+ base.attribute :video_actor, :stringlist
32
+ base.attribute :video_actor_role, :string
33
+ base.attribute :video_director, :stringlist
34
+ base.attribute :video_duration, :string
35
+ base.attribute :video_release_date, :date
36
+ base.attribute :video_series, :string
37
+ base.attribute :video_tag, :stringlist
38
+ base.attribute :video_writer, :stringlist
39
39
 
40
40
  # Music Attributes
41
- base.attribute :music_duration, :string
42
- base.attribute :music_musician, :stringlist
43
- base.attribute :music_album, :stringlist
44
- base.attribute :music_creator, :string
45
- base.attribute :music_song, :stringlist
41
+ base.attribute :music_album, :stringlist
42
+ base.attribute :music_creator, :string
43
+ base.attribute :music_duration, :string
44
+ base.attribute :music_musician, :stringlist
45
+ base.attribute :music_song, :stringlist
46
46
 
47
47
  def image_width
48
48
  self.og_image.meta_data[:width]
@@ -1,6 +1,6 @@
1
1
  module SitemapExtender
2
2
  def self.included(base)
3
- base.attribute :sitemap_frequency, :enum, values: ["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]
4
- base.attribute :sitemap_priority, :enum, values: ["0.1", "0.2", "0.3", "0.4", "0.5", "0.6", "0.7", "0.8", "0.9", "1.0"]
3
+ base.attribute :sitemap_frequency, :enum, values: %w[always hourly daily weekly monthly yearly never]
4
+ base.attribute :sitemap_priority, :enum, values: ['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1.0']
5
5
  end
6
- end
6
+ end
@@ -1,33 +1,33 @@
1
1
  module TwitterCardsExtender
2
2
  def self.included(base)
3
3
  # General Attributes
4
- base.attribute :tc_card, :enum, values: ["summary", "summary_large_image", "app", "player"]
5
- base.attribute :tc_creator, :string
6
- base.attribute :tc_site, :string
7
- base.attribute :tc_title, :string
8
- base.attribute :tc_description, :string
4
+ base.attribute :tc_card, :enum, values: %w[summary summary_large_image app player]
5
+ base.attribute :tc_creator, :string
6
+ base.attribute :tc_description, :string
7
+ base.attribute :tc_site, :string
8
+ base.attribute :tc_title, :string
9
9
 
10
10
  # Image and Gallery
11
- base.attribute :tc_image, :reference
12
- base.attribute :tc_image_alt, :reference
11
+ base.attribute :tc_image, :reference
12
+ base.attribute :tc_image_alt, :string
13
13
 
14
14
  # For type app
15
- base.attribute :tc_app_name_iphone, :string
16
- base.attribute :tc_app_name_ipad, :string
17
- base.attribute :tc_app_name_googleplay, :string
18
- base.attribute :tc_app_id_iphone, :string
19
- base.attribute :tc_app_id_ipad, :string
20
- base.attribute :tc_app_id_googleplay, :string
21
- base.attribute :tc_app_url_iphone, :string
22
- base.attribute :tc_app_url_ipad, :string
23
- base.attribute :tc_app_url_googleplay, :string
24
- base.attribute :tc_app_country, :string
15
+ base.attribute :tc_app_country, :string
16
+ base.attribute :tc_app_id_googleplay, :string
17
+ base.attribute :tc_app_id_ipad, :string
18
+ base.attribute :tc_app_id_iphone, :string
19
+ base.attribute :tc_app_name_googleplay, :string
20
+ base.attribute :tc_app_name_ipad, :string
21
+ base.attribute :tc_app_name_iphone, :string
22
+ base.attribute :tc_app_url_googleplay, :string
23
+ base.attribute :tc_app_url_ipad, :string
24
+ base.attribute :tc_app_url_iphone, :string
25
25
 
26
26
  # For type Player
27
- base.attribute :tc_player, :string
28
- base.attribute :tc_player_width, :string
29
- base.attribute :tc_player_height, :string
30
- base.attribute :tc_player_stream, :string
27
+ base.attribute :tc_player, :string
28
+ base.attribute :tc_player_height, :string
29
+ base.attribute :tc_player_stream, :string
31
30
  base.attribute :tc_player_stream_content_type, :string
31
+ base.attribute :tc_player_width, :string
32
32
  end
33
- end
33
+ end
@@ -4,6 +4,7 @@
4
4
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_title", name: "twitter:title" -%>
5
5
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_description", name: "twitter:description" -%>
6
6
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_image", name: "twitter:image" -%>
7
+ <%= render "seo_page_extender/meta_attribute", attribute: "tc_image_alt", name: "twitter:image:alt" -%>
7
8
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_app_name_iphone", name: "twitter:app:name:iphone" -%>
8
9
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_app_id_iphone", name: "twitter:app:id:iphone" -%>
9
10
  <%= render "seo_page_extender/meta_attribute", attribute: "tc_app_url_iphone", name: "twitter:url:iphone" -%>
@@ -30,6 +30,10 @@
30
30
  <%= scrivito_details_for t('scrivito_seo_page_extender.details.twitter_cards_extender.tc_image', default: 'Image') do %>
31
31
  <%= scrivito_tag(:div, obj, :tc_image) %>
32
32
  <% end %>
33
+
34
+ <%= scrivito_details_for t('scrivito_seo_page_extender.details.twitter_cards_extender.tc_image_alt', default: 'Image Description') do %>
35
+ <%= scrivito_tag(:div, obj, :tc_image_alt) %>
36
+ <% end %>
33
37
  </div>
34
38
 
35
39
  <div class="tab-panel" id="edit-twitter-card-app">
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoPageExtender
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_seo_page_extender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito_sdk