diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c88477..4b69b7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,16 +19,10 @@ jobs: strategy: fail-fast: false matrix: - ruby: - - 2.6 - - 2.7 - - 3.0 - - 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/Gemfile b/Gemfile index 2ec0e33..4c9335f 100644 --- a/Gemfile +++ b/Gemfile @@ -3,8 +3,8 @@ source "https://rubygems.org" gemspec gem 'rack-rdf', git: "https://github.com/ruby-rdf/rack-rdf", branch: "develop" -gem "rdf", git: "https://github.com/ruby-rdf/rdf", branch: "develop" -gem 'rdf-turtle', git: "https://github.com/ruby-rdf/rdf-turtle", branch: "develop" +gem "rdf", git: "https://github.com/ruby-rdf/rdf", branch: "develop" +gem 'rdf-turtle', git: "https://github.com/ruby-rdf/rdf-turtle", branch: "develop" group :development do gem "byebug", platforms: :mri diff --git a/README.md b/README.md index 8c0ce2e..43c6763 100644 --- a/README.md +++ b/README.md @@ -115,11 +115,11 @@ operation and details of the content negotiation. ## Documentation -* [Sinatra::RDF](https://www.rubydoc.info/github/ruby-rdf/sinatra-rdf/master) +* [Sinatra::RDF](https://ruby-rdf.github.io/sinatra-rdf/master) ## Dependencies -* [Sinatra](https://rubygems.org/gems/sinatra) (~> 2.1) +* [Sinatra](https://rubygems.org/gems/sinatra) (~> 3.0) * [Rack::RDF](https://rubygems.org/gems/rack-rdf) (~> 3.2) ## Installation @@ -160,7 +160,7 @@ information, see or the accompanying UNLICENSE file. [Sinatra]: https://www.sinatrarb.com/ [Rack]: https://rack.github.com/ -[RDF.rb]: https://ruby-rdf.github.com/rdf/ +[RDF.rb]: https://ruby-rdf.github.io/rdf/ [Rack::RDF]: https://rubygems.org/gems/rack-rdf/ [Linked Data]: https://linkeddata.org/ [conneg]: https://en.wikipedia.org/wiki/Content_negotiation diff --git a/VERSION b/VERSION index 944880f..e4604e3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.0 +3.2.1 diff --git a/sinatra-rdf.gemspec b/sinatra-rdf.gemspec index 8c5a428..90654e7 100755 --- a/sinatra-rdf.gemspec +++ b/sinatra-rdf.gemspec @@ -6,10 +6,17 @@ Gem::Specification.new do |gem| gem.date = File.mtime('VERSION').strftime('%Y-%m-%d') gem.name = 'sinatra-rdf' - gem.homepage = 'https://ruby-rdf.github.com/sinatra-rdf' + gem.homepage = 'https://github.com/ruby-rdf/sinatra-rdf' gem.license = 'Unlicense' gem.summary = 'Linked Data content negotiation for Sinatra applications.' gem.description = 'Sinatra extension for Linked Data content negotiation.' + gem.metadata = { + "documentation_uri" => "https://ruby-rdf.github.io/sinatra-rdf", + "bug_tracker_uri" => "https://github.com/ruby-rdf/sinatra-rdf/issues", + "homepage_uri" => "https://github.com/ruby-rdf/sinatra-rdf", + "mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/", + "source_code_uri" => "https://github.com/ruby-rdf/sinatra-rdf", + } gem.authors = ['Arto Bendiken', 'Gregg Kellogg'] gem.email = 'public-rdf-ruby@w3.org' @@ -22,11 +29,11 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.6' gem.requirements = [] - gem.add_runtime_dependency 'rack-rdf', '~> 3.2' - gem.add_runtime_dependency 'sinatra', '~> 2.1' + gem.add_runtime_dependency 'rack-rdf', '~> 3.2', '>= 3.2.3' + gem.add_runtime_dependency 'sinatra', '~> 3.0', '>= 3.0.5' 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