diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b30d40b..4b69b7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,15 +19,10 @@ jobs: strategy: fail-fast: false matrix: - ruby: - - 2.6 - - 2.7 - - 3.1 - - ruby-head - - jruby + ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby] steps: - name: Clone repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml new file mode 100644 index 0000000..65aea93 --- /dev/null +++ b/.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@v3 + - 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 diff --git a/README.md b/README.md index 919f1e3..9fccb8b 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Sinatra. * -[![Gem Version](https://badge.fury.io/rb/rack-linkeddata.png)](https://badge.fury.io/rb/rack-linkeddata) +[![Gem Version](https://badge.fury.io/rb/rack-linkeddata.svg)](https://badge.fury.io/rb/rack-linkeddata) [![Build Status](https://github.com/ruby-rdf/rack-linkeddata/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rack-linkeddata/actions?query=workflow%3ACI) [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf) @@ -92,7 +92,7 @@ for N-Triples, N-Quads, Turtle, RDF/XML, RDF/JSON, JSON-LD, RDFa, TriG and TriX. ##Documentation - + * {Rack::LinkedData} * {Rack::LinkedData::ContentNegotiation} @@ -157,7 +157,7 @@ This is free and unencumbered public domain software. For more information, see or the accompanying {file:UNLICENSE} file. [Rack]: https://rack.github.com/ -[RDF.rb]: https://ruby-rdf.github.com/rdf/ +[RDF.rb]: https://ruby-rdf.github.io/rdf/ [Linked Data]: https://linkeddata.org/ [conneg]: https://en.wikipedia.org/wiki/Content_negotiation [YARD]: https://yardoc.org/ diff --git a/VERSION b/VERSION index e4604e3..be94e6f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.1 +3.2.2 diff --git a/rack-linkeddata.gemspec b/rack-linkeddata.gemspec index 0f3807b..d575016 100755 --- a/rack-linkeddata.gemspec +++ b/rack-linkeddata.gemspec @@ -10,6 +10,13 @@ Gem::Specification.new do |gem| gem.license = 'Unlicense' gem.summary = 'Linked Data content negotiation for Rack applications.' gem.description = 'Rack middleware for Linked Data content negotiation.' + gem.metadata = { + "documentation_uri" => "https://ruby-rdf.github.io/rack-linkeddata", + "bug_tracker_uri" => "https://github.com/ruby-rdf/rack-linkeddata/issues", + "homepage_uri" => "https://github.com/ruby-rdf/rack-linkeddata", + "mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/", + "source_code_uri" => "https://github.com/ruby-rdf/rack-linkeddata", + } gem.authors = ['Arto Bendiken', 'Gregg Kellogg'] gem.email = 'public-rdf-ruby@w3.org' @@ -20,12 +27,12 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.6' gem.requirements = [] - gem.add_runtime_dependency 'linkeddata', '~> 3.2' - gem.add_runtime_dependency 'rack-rdf', '~> 3.2' - gem.add_runtime_dependency 'rack', '~> 2.1' + gem.add_runtime_dependency 'linkeddata', '~> 3.2', '>= 3.2.2' + gem.add_runtime_dependency 'rack-rdf', '~> 3.2', '>= 3.2.3' + gem.add_runtime_dependency 'rack', '~> 3.0' gem.add_development_dependency 'yard' , '~> 0.9' - gem.add_development_dependency 'rspec', '~> 3.10' - gem.add_development_dependency 'rack-test', '~> 1.1' + gem.add_development_dependency 'rspec', '~> 3.12' + gem.add_development_dependency 'rack-test', '~> 2.1' gem.post_install_message = nil end