Skip to content

Commit

Permalink
Fix emergent PNAME unescaping issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jan 8, 2024
1 parent 2aa9c36 commit a6ef81a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['3.0', 3.1, 3.2, ruby-head, jruby]
ruby: ['3.0', 3.1, 3.2, 3.3, ruby-head, jruby]
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand All @@ -40,6 +40,6 @@ jobs:
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
if: "matrix.ruby == '3.2'"
if: "matrix.ruby == '3.3'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions lib/rdf/n3/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ def ns(prefix = nil, suffix = nil)
namespace(nil, iri("#{base_uri}#")) if prefix.nil? && !prefix(nil)

base = prefix(prefix).to_s
suffix = suffix.gsub(PN_LOCAL_ESC) {|esc| esc[1]} if
suffix.match?(PN_LOCAL_ESC)
suffix = suffix.to_s.sub(/^\#/, "") if base.index("#")
iri(base + suffix.to_s)
end
Expand Down
7 changes: 4 additions & 3 deletions rdf-n3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 3.0'
gem.requirements = []

gem.add_dependency 'ebnf', '~> 2.5'
gem.add_dependency 'rdf', '~> 3.3'
gem.add_dependency 'sparql', '~> 3.3'
gem.add_runtime_dependency 'ebnf', '~> 2.5'
gem.add_runtime_dependency 'rdf', '~> 3.3'
gem.add_runtime_dependency 'sparql', '~> 3.3'
gem.add_runtime_dependency 'sxp', '~> 2.0'

gem.add_development_dependency 'getoptlong', '~> 0.2'
gem.add_development_dependency 'json-ld', '~> 3.3'
gem.add_development_dependency 'rdf-spec', '~> 3.3'
gem.add_development_dependency 'rdf-isomorphic', '~> 3.3'
Expand Down

0 comments on commit a6ef81a

Please sign in to comment.