gretel-jsonld 1.0.0.rc1 → 1.0.0.rc2
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 +4 -0
- data/README.md +1 -1
- data/Rakefile +1 -7
- data/lib/gretel/jsonld/breadcrumb/list.rb +1 -1
- data/lib/gretel/jsonld/renderer.rb +3 -2
- data/lib/gretel/jsonld/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: 7dfbef306b03de0170d6e278bc17e64ac69ab4320149d4ed57d110a1b0b06443
|
|
4
|
+
data.tar.gz: 427536dd86a6a0bdbac24f3161c3fdaca260fff46c1df338910ae0dcf44d9b7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c79c9b6967e6285da8160ee6213b4e1ace7b35e22b60cae941f336ad683b8e23622f3717c8d30315476a8abdaa11f41d7ce018439df394eea56fe568976810db
|
|
7
|
+
data.tar.gz: f55a13d8f0173e30ae32c382f6f11e2ab1074231961da4f391b8c3b1a9c0b4837351976beb53086c276a64e6a9f61f73c0ebe49fc056504d173a475295a04b23
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [1.0.0.rc2](https://github.com/yasaichi/gretel-jsonld/releases/tag/v1.0.0.rc2) (July 24, 2026)
|
|
4
|
+
|
|
5
|
+
* [Use HTTPS for Schema.org context](https://github.com/yasaichi/gretel-jsonld/pull/32)
|
|
6
|
+
|
|
3
7
|
## [1.0.0.rc1](https://github.com/yasaichi/gretel-jsonld/releases/tag/v1.0.0.rc1) (July 23, 2026)
|
|
4
8
|
|
|
5
9
|
* [Generate valid breadcrumb item URLs](https://github.com/yasaichi/gretel-jsonld/pull/28)
|
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require "bundler/setup"
|
|
5
|
-
rescue LoadError
|
|
6
|
-
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
|
7
|
-
end
|
|
3
|
+
require "bundler/gem_tasks"
|
|
8
4
|
|
|
9
5
|
require "rdoc/task"
|
|
10
6
|
|
|
@@ -19,5 +15,3 @@ end
|
|
|
19
15
|
require "rspec/core/rake_task"
|
|
20
16
|
RSpec::Core::RakeTask.new(:spec)
|
|
21
17
|
task default: :spec
|
|
22
|
-
|
|
23
|
-
require "bundler/gem_tasks"
|
|
@@ -19,7 +19,7 @@ module Gretel
|
|
|
19
19
|
|
|
20
20
|
@view_context.content_tag(
|
|
21
21
|
:script,
|
|
22
|
-
JSON.generate(to_breadcrumb_list(link_collection)).html_safe,
|
|
22
|
+
::JSON.generate(to_breadcrumb_list(link_collection)).html_safe,
|
|
23
23
|
type: "application/ld+json",
|
|
24
24
|
)
|
|
25
25
|
end
|
|
@@ -30,9 +30,10 @@ module Gretel
|
|
|
30
30
|
::URI.join(@view_context.request.base_url, uri_reference)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# :reek:FeatureEnvy
|
|
33
34
|
def to_breadcrumb_list(link_collection)
|
|
34
35
|
link_collection
|
|
35
|
-
.select
|
|
36
|
+
.select(&:url)
|
|
36
37
|
.map.with_index(1) { |link, position|
|
|
37
38
|
::Gretel::JSONLD::Breadcrumb::ListItem.new(
|
|
38
39
|
position: position,
|