microdata_schema 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +36 -7
- data/lib/microdata_schema/version.rb +1 -1
- data/microdata_schema.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ffd67630df31847b20d074ec71202699869a908
|
4
|
+
data.tar.gz: caddde8d94d294d3bbdfd679c8139a4b3e24c445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6aae3d80d90b04c1cbb5d7aff00b8748c1abe8667edc7d23f11a42ceb7c442d46bf5590015eb657da4de5d41a317dc5ed562f03ce067b8bb60b51b28e0e45ed
|
7
|
+
data.tar.gz: e37ac713e98c70805452e354330b2e282c579c921ed4995e2843b6639c768db6dbcf6a9fb884813a5a97385fdd584d0b487c648be3a4e3fb6d06bdb6d4b336b6
|
data/README.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# MicrodataSchema
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/microdata_schema`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
Add this line to your application's Gemfile:
|
@@ -22,7 +18,40 @@ Or install it yourself as:
|
|
22
18
|
|
23
19
|
## Usage
|
24
20
|
|
25
|
-
|
21
|
+
* application.html.erb
|
22
|
+
|
23
|
+
```app/views/layouts/application.html.erb
|
24
|
+
<!DOCTYPE html>
|
25
|
+
<html lang="en">
|
26
|
+
<head>
|
27
|
+
<meta charset="UTF-8" />
|
28
|
+
<title>Title</title>
|
29
|
+
<%= yield(:json_ld_tag) %>
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
</body>
|
33
|
+
</html>
|
34
|
+
```
|
35
|
+
|
36
|
+
* bar.html.erb
|
37
|
+
|
38
|
+
```app/views/foos/bar.html.erb
|
39
|
+
<%
|
40
|
+
json_ld_tag = Microdata::Schema::List.new([
|
41
|
+
Microdata::Schema::SoftwareSourceCode.new(
|
42
|
+
code_repository: "https://github.com/booink/microdata_schema", programming_language: "ruby",
|
43
|
+
),
|
44
|
+
Microdata::Schema::BreadcrumbList.new(
|
45
|
+
item_list_element: [
|
46
|
+
Microdata::Schema::ListItem.new(position: 1, item: Microdata::Schema::Thing.new(id: "https://github.com/booink/microdata_schema/blob/master/lib/microdata/schema/thing.rb", name: 'Thing')),
|
47
|
+
Microdata::Schema::ListItem.new(position: 2, item: Microdata::Schema::Thing.new(id: "https://github.com/booink/microdata_schema/blob/master/lib/microdata/schema/thing/action.rb", name: 'Action')),
|
48
|
+
Microdata::Schema::ListItem.new(position: 2, item: Microdata::Schema::Thing.new(id: "https://github.com/booink/microdata_schema/blob/master/lib/microdata/schema/thing/action/play_action.rb", name: 'PlayAction'))
|
49
|
+
]
|
50
|
+
)
|
51
|
+
]).to_json_ld.html_safe
|
52
|
+
%>
|
53
|
+
<% provide :json_ld_tag, json_ld_tag %>
|
54
|
+
```
|
26
55
|
|
27
56
|
## Development
|
28
57
|
|
@@ -32,7 +61,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
61
|
|
33
62
|
## Contributing
|
34
63
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
64
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/booink/microdata_schema. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
65
|
|
37
66
|
## License
|
38
67
|
|
@@ -40,4 +69,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
40
69
|
|
41
70
|
## Code of Conduct
|
42
71
|
|
43
|
-
Everyone interacting in the MicrodataSchema project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
72
|
+
Everyone interacting in the MicrodataSchema project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/booink/microdata_schema/blob/master/CODE_OF_CONDUCT.md).
|
data/microdata_schema.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = "microdata json-ld generator"
|
13
13
|
spec.description = spec.summary
|
14
|
-
|
14
|
+
spec.homepage = "https://github.com/booink/microdata_schema"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microdata_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- booink
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -168,7 +168,7 @@ files:
|
|
168
168
|
- lib/microdata_schema.rb
|
169
169
|
- lib/microdata_schema/version.rb
|
170
170
|
- microdata_schema.gemspec
|
171
|
-
homepage:
|
171
|
+
homepage: https://github.com/booink/microdata_schema
|
172
172
|
licenses:
|
173
173
|
- MIT
|
174
174
|
metadata: {}
|