microdata_schema 0.0.1 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8896cf100b207165698b01958665fcdab98cf158
4
- data.tar.gz: 1a7191e5223562b33e4daf9eac50cff5992adc9a
3
+ metadata.gz: 9ffd67630df31847b20d074ec71202699869a908
4
+ data.tar.gz: caddde8d94d294d3bbdfd679c8139a4b3e24c445
5
5
  SHA512:
6
- metadata.gz: d47e7abe26e14c2c7ae593b1004a852fb9c664692713b1f9a24589248ae5da679444f3799266397ea22144892e9f0878af331d0de670c8f1e39e1fb59d4c8326
7
- data.tar.gz: 06bf38a029ee9fefe2a73a66d61cc6bbfbf7670d28e3d5529be76b5711aa47d2f8975e624813b2a178f3e40916d056268ab87147f3cbc0cb9aa348d3241cfb1e
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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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/[USERNAME]/microdata_schema/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -1,3 +1,3 @@
1
1
  module MicrodataSchema
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -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
- #spec.homepage = "TODO: Put your gem's website or public repo URL here."
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.1
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-28 00:00:00.000000000 Z
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: {}