Skip to content

Commit

Permalink
Finish 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed May 11, 2022
2 parents 637c68e + 1536d8a commit 8ee7317
Show file tree
Hide file tree
Showing 18 changed files with 149 additions and 70 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
ruby:
- 2.6
- 2.7
- 3.0
- "3.0"
- 3.1
- ruby-head
- jruby
Expand All @@ -42,3 +42,31 @@ jobs:
if: "matrix.ruby == '3.0'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
wintests:
name: Win64 Ruby ${{ matrix.ruby }}
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: windows-latest
env:
CI: true
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'jruby' }}
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
if: "matrix.ruby == '3.0'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/generate-docs.yml
@@ -0,0 +1,27 @@
name: Build & deploy documentation
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update gh-pages with docs
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
- name: Install required gem dependencies
run: gem install yard --no-document
- name: Build YARD Ruby Documentation
run: yardoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/yard
publish_branch: gh-pages
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,5 +1,5 @@
source "https://rubygems.org"
gem "nokogiri", '~> 1.10'
gem "nokogiri", '~> 1.13', '>= 1.13.4'

gemspec
gem 'rdf', git: "https://github.com/ruby-rdf/rdf", branch: "develop"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -72,7 +72,7 @@ In the first case, the embedded node is not asserted, and only appears as the su

#### Serializing a Graph containing embedded statements

require 'json-ld'
require 'json/ld'
statement = RDF::Statement(RDF::URI('bob'), RDF::Vocab::FOAF.age, RDF::Literal(23))
graph = RDF::Graph.new << [statement, RDF::URI("ex:certainty"), RDF::Literal(0.9)]
graph.dump(:jsonld, validate: false, standard_prefixes: true)
Expand Down Expand Up @@ -565,7 +565,7 @@ The {JSON::LD::ContentNegotiation#call} method looks for a result which includes
See [Rack::LinkedData][] to do the same thing with an RDF Graph or Dataset as the source, rather than Ruby objects.

## Documentation
Full documentation available on [RubyDoc](https://rubydoc.info/gems/json-ld/file/README.md)
Full documentation available on [RubyDoc](https://ruby-rdf.github.io/json-ld/file/README.md)

## Differences from [JSON-LD API][]
The specified JSON-LD API is based on a WebIDL definition implementing [Promises][] intended for use within a browser.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.2.0
3.2.1
11 changes: 11 additions & 0 deletions example-files/afs_prefix_flag.jsonld
@@ -0,0 +1,11 @@
{
"@id" : "http://example/collection",
"http://example/p" : [ "book:ZZZ" ],
"book" : [ "book:YYY" ],
"@context" : {
"book" : {
"@id" : "http://onbetween.ch/3ms/cms#",
"@type" : "@id"
}
}
}
2 changes: 1 addition & 1 deletion example-files/shex-expanded.jsonld
Expand Up @@ -118015,7 +118015,7 @@
],
"http://usefulinc.com/ns/doap#homepage": [
{
"@id": "http://ruby-rdf.github.com/shex"
"@id": "https://ruby-rdf.github.io/shex"
}
],
"http://usefulinc.com/ns/doap#name": [
Expand Down
56 changes: 28 additions & 28 deletions example-files/shex-framed.jsonld
Expand Up @@ -40258,7 +40258,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -40334,7 +40334,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -40823,7 +40823,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -40899,7 +40899,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -41265,7 +41265,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -41341,7 +41341,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -55884,7 +55884,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -56091,7 +56091,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63158,7 +63158,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63319,7 +63319,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63423,7 +63423,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63589,7 +63589,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63693,7 +63693,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -63951,7 +63951,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -64207,7 +64207,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -64365,7 +64365,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -64529,7 +64529,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -64687,7 +64687,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -64845,7 +64845,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -65003,7 +65003,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -65161,7 +65161,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -65368,7 +65368,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -69985,7 +69985,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -70146,7 +70146,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -70304,7 +70304,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -70462,7 +70462,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -70620,7 +70620,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down Expand Up @@ -71235,7 +71235,7 @@
}
],
"doapDesc": "ShEx is an Shape Expression engine for the RDF.rb library suite.",
"homepage": "http://ruby-rdf.github.com/shex",
"homepage": "https://ruby-rdf.github.io/shex",
"language": "Ruby",
"name": "ShEx"
},
Expand Down
2 changes: 1 addition & 1 deletion example-files/shex-short.jsonld
Expand Up @@ -130,7 +130,7 @@
],
"http://usefulinc.com/ns/doap#homepage": [
{
"@id": "http://ruby-rdf.github.com/shex"
"@id": "https://ruby-rdf.github.io/shex"
}
],
"http://usefulinc.com/ns/doap#developer": [
Expand Down
7 changes: 7 additions & 0 deletions json-ld.gemspec
Expand Up @@ -12,6 +12,13 @@ Gem::Specification.new do |gem|
gem.license = 'Unlicense'
gem.summary = "JSON-LD reader/writer for Ruby."
gem.description = "JSON::LD parses and serializes JSON-LD into RDF and implements expansion, compaction and framing API interfaces for the Ruby RDF.rb library suite."
gem.metadata = {
"documentation_uri" => "https://ruby-rdf.github.io/json-ld",
"bug_tracker_uri" => "https://github.com/ruby-rdf/json-ld/issues",
"homepage_uri" => "https://github.com/ruby-rdf/json-ld",
"mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/",
"source_code_uri" => "https://github.com/ruby-rdf/json-ld",
}

gem.authors = ['Gregg Kellogg']
gem.email = 'public-linked-json@w3.org'
Expand Down

0 comments on commit 8ee7317

Please sign in to comment.