Skip to content

Commit 6fbb58c

Browse files
committed
Finish 3.2.1
2 parents 1b0e261 + 76a9d34 commit 6fbb58c

File tree

10 files changed

+50
-14
lines changed

10 files changed

+50
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
ruby:
24-
- 2.6
25-
- 2.7
26-
- 3.0
27-
- 3.1
28-
- ruby-head
29-
- jruby
23+
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
3024
gemfile:
3125
- Gemfile
3226
- Gemfile-pure
3327
steps:
3428
- name: Clone repository
35-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3630
- name: Set up Ruby
3731
uses: ruby/setup-ruby@v1
3832
with:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build & deploy documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Update gh-pages with docs
11+
steps:
12+
- name: Clone repository
13+
uses: actions/checkout@v3
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: "3.1"
18+
- name: Install required gem dependencies
19+
run: gem install yard --no-document
20+
- name: Build YARD Ruby Documentation
21+
run: yardoc
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./doc/yard
27+
publish_branch: gh-pages

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gemspec
44

55
gem 'rdf', github: "ruby-rdf/rdf", branch: "develop"
66
gem 'rdf-rdfa', github: "ruby-rdf/rdf-rdfa", branch: "develop"
7-
gem "nokogiri", '~> 1.12', platforms: [:mri, :jruby]
7+
gem "nokogiri", '~> 1.13', '>= 1.13.4', platforms: [:mri, :jruby]
88

99
group :development do
1010
gem 'ebnf', github: "dryruby/ebnf", branch: "develop"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Write a graph to a file:
4343

4444
## Dependencies
4545
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
46+
* [Haml](https://rubygems.org/gems/haml) (~>- 5.2)
4647
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.12)
4748

4849
## Documentation
@@ -103,5 +104,5 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
103104
[YARD]: https://yardoc.org/
104105
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
105106
[PDD]: https://unlicense.org/#unlicensing-contributions
106-
[RDF/XML doc]: https://rubydoc.info/github/ruby-rdf/rdf-rdfxml/master/frames
107+
[RDF/XML doc]: https://ruby-rdf.github.io/rdf-rdfxml/master/frames
107108
[RDF-star]: https://w3c.github.io/rdf-star/rdf-star-cg-spec.html

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.2.1

lib/rdf/rdfxml/format.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ module RDF::RDFXML
2020
#
2121
# @see http://www.w3.org/TR/rdf-testcases/#ntriples
2222
class Format < RDF::Format
23-
content_type 'application/rdf+xml', extensions: [:rdf, :owl]
23+
content_type 'application/rdf+xml',
24+
extensions: [:rdf, :owl],
25+
uri: 'http://www.w3.org/ns/formats/RDF_XML'
2426
content_encoding 'utf-8'
2527

2628
reader { RDF::RDFXML::Reader }

lib/rdf/rdfxml/reader/nokogiri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(node, parent = nil)
2525

2626
# Create a new element child of an existing node
2727
def create_node(name, children)
28-
native = ::Nokogiri::XML::Element.new(name, @node)
28+
native = ::Nokogiri::XML::Element.new(name, @node.document)
2929
children.each do |c|
3030
native.add_child(c.node)
3131
end

lib/rdf/rdfxml/writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Writer < RDF::RDFa::Writer
5555

5656
##
5757
# RDF/XML Writer options
58-
# @see http://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Writer#options-class_method
58+
# @see https://ruby-rdf.github.io/rdf/RDF/Writer#options-class_method
5959
def self.options
6060
super + [
6161
RDF::CLI::Option.new(

rdf-rdfxml.gemspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Gem::Specification.new do |gem|
1010
gem.license = 'Unlicense'
1111
gem.summary = %q{RDF/XML reader/writer for RDF.rb.}
1212
gem.description = %q{RDF::RDFXML is an RDF/XML reader and writer for the RDF.rb library suite.}
13+
gem.metadata = {
14+
"documentation_uri" => "https://ruby-rdf.github.io/rdf-rdfxml",
15+
"bug_tracker_uri" => "https://github.com/ruby-rdf/rdf-rdfxml/issues",
16+
"homepage_uri" => "https://github.com/ruby-rdf/rdf-rdfxml",
17+
"mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/",
18+
"source_code_uri" => "https://github.com/ruby-rdf/rdf-rdfxml",
19+
}
1320

1421
gem.authors = %w(Gregg Kellogg)
1522
gem.email = '[email protected]'
@@ -25,6 +32,7 @@ Gem::Specification.new do |gem|
2532
gem.add_runtime_dependency 'rdf-xsd', '~> 3.2'
2633
gem.add_runtime_dependency 'rdf-rdfa', '~> 3.2'
2734
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
35+
gem.add_runtime_dependency 'haml', '~> 5.2' # Until workaround for haml_tag is found.
2836

2937
gem.add_development_dependency 'json-ld', '>= 3.2'
3038
gem.add_development_dependency 'rspec', '~> 3.10'

spec/format_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
specify {expect(described_class.to_sym).to eq :rdfxml}
3838
end
3939

40+
describe "#to_uri" do
41+
specify {expect(described_class.to_uri).to eq RDF::URI('http://www.w3.org/ns/formats/RDF_XML')}
42+
end
43+
4044
describe ".detect" do
4145
{
4246
rdfxml: '<rdf:RDF about="foo"></rdf:RDF>',

0 commit comments

Comments
 (0)