Skip to content

Commit 32d1e67

Browse files
committed
Finish 3.1.4
2 parents 9a31410 + ec47cc6 commit 32d1e67

File tree

12 files changed

+306
-92
lines changed

12 files changed

+306
-92
lines changed

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop.
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the develop branch
8+
push:
9+
branches: [ '**' ]
10+
pull_request:
11+
branches: [ develop ]
12+
workflow_dispatch:
13+
14+
jobs:
15+
tests:
16+
name: Ruby ${{ matrix.ruby }}
17+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
18+
runs-on: ubuntu-latest
19+
env:
20+
CI: true
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
ruby:
25+
- 2.4
26+
- 2.5
27+
- 2.6
28+
- 2.7
29+
- ruby-head
30+
- jruby
31+
steps:
32+
- name: Clone repository
33+
uses: actions/checkout@v2
34+
- name: Set up Ruby
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
- name: Install dependencies
39+
run: bundle install --jobs 4 --retry 3
40+
- name: Run tests
41+
run: bundle exec rspec spec
42+

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ rvm:
88
- 2.5
99
- 2.6
1010
- 2.7
11+
- ruby-head
1112
- jruby
1213
cache: bundler
1314
sudo: false
1415
matrix:
1516
allow_failures:
1617
- rvm: jruby
18+
- rvm: ruby-head
1719
dist: trusty

CONTRIBUTING.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
2828
enough, be assured we will eventually add you in there.
2929
* Do note that in order for us to merge any non-trivial changes (as a rule
3030
of thumb, additions larger than about 15 lines of code), we need an
31-
explicit [public domain dedication][PDD] on record from you.
31+
explicit [public domain dedication][PDD] on record from you,
32+
which you will be asked to agree to on the first commit to a repo within the organization.
33+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
3234

3335
[YARD]: https://yardoc.org/
3436
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
35-
[PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
36-
[pr]: https://github.com/ruby-rdf/json-ld/compare/
37+
[PDD]: https://unlicense.org/#unlicensing-contributions
38+
[pr]: https://github.com/ruby-rdf/rdf/compare/

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
JSON-LD with preloaded contexts.
33

44
[![Gem Version](https://badge.fury.io/rb/json-ld-preloaded.png)](https://badge.fury.io/rb/json-ld-preloaded)
5-
[![Build Status](https://secure.travis-ci.org/ruby-rdf/json-ld-preloaded.png?branch=master)](https://travis-ci.org/ruby-rdf/json-ld-preloaded)
5+
[![Build Status](https://github.com/ruby-rdf/json-ld-preloaded/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/json-ld-preloaded/actions?query=workflow%3ACI)
6+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/json-ld-preloaded/badge.svg)](https://coveralls.io/github/ruby-rdf/json-ld-preloaded)
7+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
68

79
## Features
810

@@ -70,7 +72,9 @@ Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-con
7072
list in the the `README`. Alphabetical order applies.
7173
* Do note that in order for us to merge any non-trivial changes (as a rule
7274
of thumb, additions larger than about 15 lines of code), we need an
73-
explicit [public domain dedication][PDD] on record from you.
75+
explicit [public domain dedication][PDD] on record from you,
76+
which you will be asked to agree to on the first commit to a repo within the organization.
77+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
7478

7579
## License
7680

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.3
1+
3.1.4

json-ld-preloaded.gemspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Gem::Specification.new do |gem|
1919
gem.require_paths = %w(lib)
2020
gem.test_files = Dir.glob('spec/**/*.rb') + Dir.glob('spec/test-files/*')
2121

22-
gem.required_ruby_version = '>= 2.2.2'
22+
gem.required_ruby_version = '>= 2.4'
2323
gem.requirements = []
2424
gem.add_runtime_dependency 'rdf', '~> 3.1'
2525
gem.add_runtime_dependency 'json-ld', '~> 3.1'
26-
gem.add_development_dependency 'rspec', '~> 3.9'
27-
gem.add_development_dependency 'yard' , '~> 0.9.20'
26+
gem.add_development_dependency 'rspec', '~> 3.10'
27+
gem.add_development_dependency 'yard' , '~> 0.9'
2828

2929
gem.post_install_message = nil
3030
end

lib/json/ld/preloaded/activitystreams.rb

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class JSON::LD::Context
6666
"View" => TermDefinition.new("View", id: "https://www.w3.org/ns/activitystreams#View", simple: true),
6767
"accuracy" => TermDefinition.new("accuracy", id: "https://www.w3.org/ns/activitystreams#accuracy", type_mapping: "http://www.w3.org/2001/XMLSchema#float"),
6868
"actor" => TermDefinition.new("actor", id: "https://www.w3.org/ns/activitystreams#actor", type_mapping: "@id"),
69+
"alsoKnownAs" => TermDefinition.new("alsoKnownAs", id: "https://www.w3.org/ns/activitystreams#alsoKnownAs", type_mapping: "@id"),
6970
"altitude" => TermDefinition.new("altitude", id: "https://www.w3.org/ns/activitystreams#altitude", type_mapping: "http://www.w3.org/2001/XMLSchema#float"),
7071
"anyOf" => TermDefinition.new("anyOf", id: "https://www.w3.org/ns/activitystreams#anyOf", type_mapping: "@id"),
7172
"as" => TermDefinition.new("as", id: "https://www.w3.org/ns/activitystreams#", simple: true, prefix: true),
@@ -149,6 +150,7 @@ class JSON::LD::Context
149150
"updated" => TermDefinition.new("updated", id: "https://www.w3.org/ns/activitystreams#updated", type_mapping: "http://www.w3.org/2001/XMLSchema#dateTime"),
150151
"uploadMedia" => TermDefinition.new("uploadMedia", id: "https://www.w3.org/ns/activitystreams#uploadMedia", type_mapping: "@id"),
151152
"url" => TermDefinition.new("url", id: "https://www.w3.org/ns/activitystreams#url", type_mapping: "@id"),
153+
"vcard" => TermDefinition.new("vcard", id: "http://www.w3.org/2006/vcard/ns#", simple: true, prefix: true),
152154
"width" => TermDefinition.new("width", id: "https://www.w3.org/ns/activitystreams#width", type_mapping: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
153155
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
154156
})

lib/json/ld/preloaded/hydra.rb

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class JSON::LD::Context
4545
"manages" => TermDefinition.new("manages", id: "http://www.w3.org/ns/hydra/core#manages", simple: true),
4646
"mapping" => TermDefinition.new("mapping", id: "http://www.w3.org/ns/hydra/core#mapping", simple: true),
4747
"member" => TermDefinition.new("member", id: "http://www.w3.org/ns/hydra/core#member", type_mapping: "@id"),
48+
"memberAssertion" => TermDefinition.new("memberAssertion", id: "http://www.w3.org/ns/hydra/core#memberAssertion", simple: true),
4849
"method" => TermDefinition.new("method", id: "http://www.w3.org/ns/hydra/core#method", simple: true),
4950
"next" => TermDefinition.new("next", id: "http://www.w3.org/ns/hydra/core#next", type_mapping: "@id"),
5051
"object" => TermDefinition.new("object", id: "http://www.w3.org/ns/hydra/core#object", type_mapping: "@vocab"),
@@ -82,6 +83,7 @@ class JSON::LD::Context
8283
"variableRepresentation" => TermDefinition.new("variableRepresentation", id: "http://www.w3.org/ns/hydra/core#variableRepresentation", type_mapping: "@vocab"),
8384
"view" => TermDefinition.new("view", id: "http://www.w3.org/ns/hydra/core#view", type_mapping: "@id"),
8485
"vs" => TermDefinition.new("vs", id: "http://www.w3.org/2003/06/sw-vocab-status/ns#", simple: true, prefix: true),
86+
"writable" => TermDefinition.new("writable", id: "http://www.w3.org/ns/hydra/core#writable", simple: true),
8587
"writeable" => TermDefinition.new("writeable", id: "http://www.w3.org/ns/hydra/core#writeable", simple: true),
8688
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
8789
})

0 commit comments

Comments
 (0)