gretel-jsonld 0.2.0 → 0.3.0
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 +5 -5
- data/CHANGELOG.md +4 -0
- data/README.md +44 -37
- data/lib/gretel/jsonld/version.rb +1 -1
- metadata +18 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1e7bf55860ae8f21a3d5a931806e9c550cf4e1d31af9546703d86d125d14c00e
|
|
4
|
+
data.tar.gz: 3286dab9d4dbcc9b9e61a7e4528359ada4e3cb63e59af75a40c765497d2e3c68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79b86b733f968da7bca93b29a9ca65486783bb814ebf396d3906ae7ca9646d3b952c36f65a26c99ba191d4edc954ce7af855999b51a320f46ce9d50d7472564c
|
|
7
|
+
data.tar.gz: 16b507af8635110bece74b61f433cc401ae4bf2140414f0ab0ac3c73abb07c9eedc7cb7191b4988660c5d94b760f67c3f648c74cfcbe90530704ec1bafdae804
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
|
+
## [0.3.0](https://github.com/yasaichi/gretel-jsonld/releases/tag/v0.3.0) (July 22, 2026)
|
|
3
|
+
* [Test against Rails 6 through 8](https://github.com/yasaichi/gretel-jsonld/pull/18)
|
|
4
|
+
* [Drop support for Ruby 2.4 and earlier](https://github.com/yasaichi/gretel-jsonld/pull/16)
|
|
5
|
+
|
|
2
6
|
## [0.2.0](https://github.com/yasaichi/gretel-jsonld/releases/tag/v0.2.0) (November 25, 2017)
|
|
3
7
|
* [Write README](https://github.com/yasaichi/gretel-jsonld/pull/7)
|
|
4
8
|
* [Use `JSONLD` as module name instead of `Jsonld`](https://github.com/yasaichi/gretel-jsonld/pull/6)
|
data/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# gretel-jsonld
|
|
2
|
+
|
|
2
3
|
[](http://badge.fury.io/rb/gretel-jsonld)
|
|
3
|
-
[](https://github.com/yasaichi/gretel-jsonld/actions/workflows/ci.yml)
|
|
5
|
+
[](https://qlty.sh/gh/yasaichi/projects/gretel-jsonld)
|
|
6
|
+
[](https://qlty.sh/gh/yasaichi/projects/gretel-jsonld)
|
|
6
7
|
|
|
7
8
|
gretel-jsonld enables gretel gem to handle JSON-LD based breadcrumbs.
|
|
8
9
|
|
|
9
10
|
## Installation
|
|
11
|
+
|
|
10
12
|
Add this line to your application's `Gemfile`:
|
|
11
13
|
|
|
12
14
|
```ruby
|
|
@@ -14,11 +16,13 @@ gem 'gretel-jsonld'
|
|
|
14
16
|
```
|
|
15
17
|
|
|
16
18
|
And then execute:
|
|
19
|
+
|
|
17
20
|
```bash
|
|
18
21
|
$ bundle
|
|
19
22
|
```
|
|
20
23
|
|
|
21
24
|
## Usage
|
|
25
|
+
|
|
22
26
|
First, run the installation generator with:
|
|
23
27
|
|
|
24
28
|
```sh
|
|
@@ -63,36 +67,36 @@ This will generate the following breadcrumbs, marked up with JSON-LD (indented f
|
|
|
63
67
|
|
|
64
68
|
```html
|
|
65
69
|
<script type="application/ld+json">
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
{
|
|
71
|
+
"@context": "http://schema.org",
|
|
72
|
+
"@type": "BreadcrumbList",
|
|
73
|
+
"itemListElement": [
|
|
74
|
+
{
|
|
75
|
+
"@type": "ListItem",
|
|
76
|
+
"position": 1,
|
|
77
|
+
"item": {
|
|
78
|
+
"@id": "/",
|
|
79
|
+
"name": "Home"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"@type": "ListItem",
|
|
84
|
+
"position": 2,
|
|
85
|
+
"item": {
|
|
86
|
+
"@id": "/issues",
|
|
87
|
+
"name": "All issues"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"@type": "ListItem",
|
|
92
|
+
"position": 3,
|
|
93
|
+
"item": {
|
|
94
|
+
"@id": "/issues/46",
|
|
95
|
+
"name": "My Issue"
|
|
96
|
+
}
|
|
84
97
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"@type":"ListItem",
|
|
88
|
-
"position":3,
|
|
89
|
-
"item":{
|
|
90
|
-
"@id":"/issues/46",
|
|
91
|
-
"name":"My Issue"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
96
100
|
</script>
|
|
97
101
|
```
|
|
98
102
|
|
|
@@ -104,23 +108,26 @@ You can pass `jsonld_breadcrumbs` the same options as `breadcrumbs`:
|
|
|
104
108
|
<%= jsonld_breadcrumbs link_current_to_request_path: false %>
|
|
105
109
|
```
|
|
106
110
|
|
|
107
|
-
For further information, please see [gretel's documentation](https://github.com/
|
|
111
|
+
For further information, please see [gretel's documentation](https://github.com/WilHall/gretel/blob/develop/README.md#options).
|
|
108
112
|
|
|
109
113
|
## Supported versions
|
|
114
|
+
|
|
110
115
|
Note that gretel-jsonld doesn't support all versions of gretel, Ruby and Rails:
|
|
111
116
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
- gretel: gretel-jsonld supports **only 3.x** for now
|
|
118
|
+
- Ruby: gretel 3.x supports **1.9.3 or later**, but gretel-jsonld does **only 2.5 or later**
|
|
119
|
+
- Rails: gretel 3.x supports **3.1 or later**, but gretel-jsonld does **only 5 or later**
|
|
115
120
|
|
|
116
121
|
## Contributing
|
|
122
|
+
|
|
117
123
|
You should follow the steps below:
|
|
118
124
|
|
|
119
125
|
1. [Fork the repository](https://help.github.com/articles/fork-a-repo/)
|
|
120
126
|
2. Create a feature branch: `git checkout -b add-new-feature`
|
|
121
127
|
3. Commit your changes: `git commit -am 'Add new feature'`
|
|
122
128
|
4. Push the branch: `git push origin add-new-feature`
|
|
123
|
-
|
|
129
|
+
5. [Send us a pull request](https://help.github.com/articles/about-pull-requests/)
|
|
124
130
|
|
|
125
131
|
## License
|
|
132
|
+
|
|
126
133
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gretel-jsonld
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yasaichi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: gretel
|
|
@@ -94,6 +93,20 @@ dependencies:
|
|
|
94
93
|
- - ">="
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: rubocop-performance
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
|
98
111
|
name: simplecov
|
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -130,7 +143,6 @@ homepage: https://github.com/yasaichi/gretel-jsonld
|
|
|
130
143
|
licenses:
|
|
131
144
|
- MIT
|
|
132
145
|
metadata: {}
|
|
133
|
-
post_install_message:
|
|
134
146
|
rdoc_options: []
|
|
135
147
|
require_paths:
|
|
136
148
|
- lib
|
|
@@ -138,16 +150,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
138
150
|
requirements:
|
|
139
151
|
- - ">="
|
|
140
152
|
- !ruby/object:Gem::Version
|
|
141
|
-
version: 2.
|
|
153
|
+
version: '2.5'
|
|
142
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
155
|
requirements:
|
|
144
156
|
- - ">="
|
|
145
157
|
- !ruby/object:Gem::Version
|
|
146
158
|
version: '0'
|
|
147
159
|
requirements: []
|
|
148
|
-
|
|
149
|
-
rubygems_version: 2.5.2.1
|
|
150
|
-
signing_key:
|
|
160
|
+
rubygems_version: 4.0.16
|
|
151
161
|
specification_version: 4
|
|
152
162
|
summary: Gretel extension for supporting JSON-LD breadcrumbs
|
|
153
163
|
test_files: []
|