page_structured_data 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +3 -1
- data/app/views/page_structured_data/_meta_tags.html.erb +22 -0
- data/lib/page_structured_data/version.rb +1 -1
- metadata +11 -21
- data/app/views/page_structured_data/_meta_tags.html.slim +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f54fe0fb4f902e3b2c795720a871f085b2ce05489f06f16239cb92549c4961aa
|
|
4
|
+
data.tar.gz: a41c5888a2bdcad023a91546ffd40d7756c4909a86edf567579960929d9c7d6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbd5383be779c9c23302693f05685d606f40e82de5bc5bf75461a60d53ad0aa3db14f50446cbf6cbefe50c8c04925accdb4323f7734892093cbc2a1818083a97
|
|
7
|
+
data.tar.gz: 8103d194f775fea6308c8ce8defa7dfd6c8fe341c61dcfbd92dc873577c0a18be26292280ddfa5579ff10838826d73b7331081358cc1567e2960e41b9dff135f
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## 1.0.4 - 2026-05-06
|
|
8
|
+
|
|
9
|
+
- Replace the bundled Slim meta tags partial with ERB so applications are not required to use Slim.
|
|
10
|
+
- Remove the Slim runtime dependency.
|
|
11
|
+
- Add view-rendering tests for the meta tags partial.
|
|
12
|
+
|
|
13
|
+
## 1.0.3 - 2026-05-06
|
|
14
|
+
|
|
15
|
+
- Improve RubyGems metadata, documentation links, and public README presentation.
|
|
16
|
+
|
|
17
|
+
## 1.0.2 - 2026-05-06
|
|
18
|
+
|
|
19
|
+
- Fix dummy app compatibility with Rails 7.0 by replacing `config.autoload_lib`.
|
|
20
|
+
- Fix requiring `page_structured_data` before Rails has already been loaded.
|
|
21
|
+
- Add baseline tests for page title composition and JSON-LD output.
|
|
22
|
+
- Improve README documentation for installation, configuration, usage, and compatibility.
|
|
23
|
+
|
|
24
|
+
## 1.0.1
|
|
25
|
+
|
|
26
|
+
- Previous public release.
|
|
27
|
+
|
|
28
|
+
## 1.0.0
|
|
29
|
+
|
|
30
|
+
- Initial public release.
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# PageStructuredData
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/page_structured_data)
|
|
4
|
+
[](MIT-LICENSE)
|
|
5
|
+
|
|
3
6
|
PageStructuredData is a small Rails engine for rendering page-level SEO and social sharing metadata from one page object.
|
|
4
7
|
|
|
5
8
|
It helps Rails applications render:
|
|
@@ -15,7 +18,6 @@ It helps Rails applications render:
|
|
|
15
18
|
## Requirements
|
|
16
19
|
|
|
17
20
|
- Rails 7.0 or newer
|
|
18
|
-
- Slim 4.1 or newer
|
|
19
21
|
- A Ruby version supported by your Rails version
|
|
20
22
|
|
|
21
23
|
## Installation
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<% default_image_url = local_assigns[:default_image_url] %>
|
|
2
|
+
|
|
3
|
+
<% title = page&.page_title %>
|
|
4
|
+
<% description = page&.description %>
|
|
5
|
+
<% image = page&.image || default_image_url || nil %>
|
|
6
|
+
|
|
7
|
+
<title><%= title %></title>
|
|
8
|
+
|
|
9
|
+
<meta name="title" content="<%= title %>">
|
|
10
|
+
<meta name="description" content="<%= description %>">
|
|
11
|
+
<meta name="image" content="<%= image %>">
|
|
12
|
+
|
|
13
|
+
<meta property="og:title" content="<%= title %>">
|
|
14
|
+
<meta property="og:description" content="<%= description %>">
|
|
15
|
+
<meta property="og:image" content="<%= image %>">
|
|
16
|
+
|
|
17
|
+
<meta property="twitter:card" content="summary_large_image">
|
|
18
|
+
<meta property="twitter:title" content="<%= title %>">
|
|
19
|
+
<meta property="twitter:description" content="<%= description %>">
|
|
20
|
+
<meta property="twitter:image" content="<%= image %>">
|
|
21
|
+
|
|
22
|
+
<%= page&.json_lds&.html_safe %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: page_structured_data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jey Geethan
|
|
@@ -24,29 +24,16 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 7.0.0
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 4.1.0
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 4.1.0
|
|
41
|
-
description: This gem helps to create structured meta tags and ld+json schema for
|
|
42
|
-
rails applications. It is easy to use and can be incorporated into any existing
|
|
43
|
-
rails app.
|
|
27
|
+
description: PageStructuredData gives Rails applications a small page object and view
|
|
28
|
+
partial for rendering page titles, basic meta tags, Open Graph tags, Twitter card
|
|
29
|
+
tags, breadcrumb JSON-LD, and article JSON-LD.
|
|
44
30
|
email:
|
|
45
31
|
- opensource@rocketapex.com
|
|
46
32
|
executables: []
|
|
47
33
|
extensions: []
|
|
48
34
|
extra_rdoc_files: []
|
|
49
35
|
files:
|
|
36
|
+
- CHANGELOG.md
|
|
50
37
|
- MIT-LICENSE
|
|
51
38
|
- README.md
|
|
52
39
|
- Rakefile
|
|
@@ -63,7 +50,7 @@ files:
|
|
|
63
50
|
- app/src/page_structured_data/page_types/blog_posting.rb
|
|
64
51
|
- app/src/page_structured_data/page_types/news_article.rb
|
|
65
52
|
- app/views/layouts/page_structured_data/application.html.erb
|
|
66
|
-
- app/views/page_structured_data/_meta_tags.html.
|
|
53
|
+
- app/views/page_structured_data/_meta_tags.html.erb
|
|
67
54
|
- config/routes.rb
|
|
68
55
|
- lib/page_structured_data.rb
|
|
69
56
|
- lib/page_structured_data/engine.rb
|
|
@@ -76,7 +63,10 @@ metadata:
|
|
|
76
63
|
allowed_push_host: https://rubygems.org
|
|
77
64
|
homepage_uri: https://github.com/RocketApex/page_structured_data
|
|
78
65
|
source_code_uri: https://github.com/RocketApex/page_structured_data
|
|
79
|
-
|
|
66
|
+
documentation_uri: https://github.com/RocketApex/page_structured_data#readme
|
|
67
|
+
bug_tracker_uri: https://github.com/RocketApex/page_structured_data/issues
|
|
68
|
+
changelog_uri: https://github.com/RocketApex/page_structured_data/blob/main/CHANGELOG.md
|
|
69
|
+
rubygems_mfa_required: 'true'
|
|
80
70
|
post_install_message:
|
|
81
71
|
rdoc_options: []
|
|
82
72
|
require_paths:
|
|
@@ -95,5 +85,5 @@ requirements: []
|
|
|
95
85
|
rubygems_version: 3.3.7
|
|
96
86
|
signing_key:
|
|
97
87
|
specification_version: 4
|
|
98
|
-
summary:
|
|
88
|
+
summary: Render SEO, social, and JSON-LD metadata for Rails pages
|
|
99
89
|
test_files: []
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
- default_image_url = local_assigns[:default_image_url]
|
|
2
|
-
|
|
3
|
-
- title = page&.page_title
|
|
4
|
-
- description = page&.description
|
|
5
|
-
- image = page&.image || default_image_url || nil
|
|
6
|
-
|
|
7
|
-
title = title
|
|
8
|
-
|
|
9
|
-
meta{name="title" content=title}
|
|
10
|
-
meta{name="description" content=description}
|
|
11
|
-
meta{name="image" content=image}
|
|
12
|
-
|
|
13
|
-
meta{property="og:title" content=title}
|
|
14
|
-
meta{property="og:description" content=description}
|
|
15
|
-
meta{property="og:image" content=image}
|
|
16
|
-
|
|
17
|
-
meta{property="twitter:card" content="summary_large_image"}
|
|
18
|
-
meta{property="twitter:title" content=title}
|
|
19
|
-
meta{property="twitter:description" content=description}
|
|
20
|
-
meta{property="twitter:image" content=image}
|
|
21
|
-
|
|
22
|
-
= page&.json_lds&.html_safe
|