breadcrumbs_on_rails-json_ld 1.0.1 → 1.0.2
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/README.md +7 -3
- data/Rakefile +4 -0
- data/lib/breadcrumbs_on_rails/json_ld/builder.rb +4 -1
- data/lib/breadcrumbs_on_rails/json_ld/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a2ac6c7d544fae07435adb3d09d4bf19cdd5f556d740bd70edae9efd45501b95
|
|
4
|
+
data.tar.gz: e64b3847b6b26fe0d80d0ccfba9227937d0c8d70818dc505ac29c38ce0eaa9af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6d4590d108bd1fee4b51a696b029b3e85420089fceda49ca993889e58231689c2cfd98f17cbbc9f8c6f8bffee90a2e521a6c885c345dd13fa6e0e24eae4b11e
|
|
7
|
+
data.tar.gz: 2a77abc7de32f92486ca5865553b84b2cd3236a7bf297ed103025512b2efc6e2967d872cb61ff6f0be6504f2056d9983fc8931afb4a6de2d64897c76c450721b
|
data/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# BreadcrumbsOnRails::JsonLd
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/necojackarc/breadcrumbs_on_rails-json_ld)
|
|
4
|
+
[](https://codeclimate.com/github/necojackarc/breadcrumbs_on_rails-json_ld/maintainability)
|
|
5
|
+
[](https://codeclimate.com/github/necojackarc/breadcrumbs_on_rails-json_ld/test_coverage)
|
|
6
|
+
|
|
2
7
|
BreadcrumbsOnRails::JsonLd provides a custom builder for [BreadcrumbsOnRails](https://github.com/weppos/breadcrumbs_on_rails).
|
|
3
8
|
|
|
4
9
|
## Usage
|
|
@@ -19,17 +24,16 @@ gem 'breadcrumbs_on_rails-json_ld'
|
|
|
19
24
|
```
|
|
20
25
|
|
|
21
26
|
And then execute:
|
|
27
|
+
|
|
22
28
|
```bash
|
|
23
29
|
$ bundle
|
|
24
30
|
```
|
|
25
31
|
|
|
26
32
|
Or install it yourself as:
|
|
33
|
+
|
|
27
34
|
```bash
|
|
28
35
|
$ gem install breadcrumbs_on_rails-json_ld
|
|
29
36
|
```
|
|
30
37
|
|
|
31
|
-
## TODO
|
|
32
|
-
* Add tests
|
|
33
|
-
|
|
34
38
|
## License
|
|
35
39
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
|
@@ -20,7 +20,10 @@ module BreadcrumbsOnRails
|
|
|
20
20
|
"@type" => "ListItem",
|
|
21
21
|
"position" => index,
|
|
22
22
|
"item" => {
|
|
23
|
-
"@id" => URI.join(
|
|
23
|
+
"@id" => URI.join(
|
|
24
|
+
URI.escape(@context.root_url),
|
|
25
|
+
URI.escape(compute_path(element)),
|
|
26
|
+
).to_s,
|
|
24
27
|
"name" => compute_name(element),
|
|
25
28
|
},
|
|
26
29
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: breadcrumbs_on_rails-json_ld
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- necojackarc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: breadcrumbs_on_rails
|
|
@@ -94,6 +94,20 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: simplecov
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
97
111
|
description: JSON-LD plugin for Breadcrumbs on Rails
|
|
98
112
|
email:
|
|
99
113
|
- necojackarc@gmail.com
|
|
@@ -128,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
128
142
|
version: '0'
|
|
129
143
|
requirements: []
|
|
130
144
|
rubyforge_project:
|
|
131
|
-
rubygems_version: 2.6
|
|
145
|
+
rubygems_version: 2.7.6
|
|
132
146
|
signing_key:
|
|
133
147
|
specification_version: 4
|
|
134
148
|
summary: JSON-LD plugin for Breadcrumbs on Rails
|