Skip to content

Commit

Permalink
Finish 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Sep 1, 2023
2 parents 2835312 + 6603d88 commit e9ea2fe
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
ruby: ['3.0', 3.1, 3.2, ruby-head, jruby]
gemfile:
- Gemfile
- Gemfile-pure
Expand All @@ -37,6 +37,6 @@ jobs:
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
if: ${{ matrix.ruby == '3.0' && matrix.gemfile == 'Gemfile' }}
if: ${{ matrix.ruby == '3.2' && matrix.gemfile == 'Gemfile' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
gemspec

gem 'rdf', github: "ruby-rdf/rdf", branch: "develop"
gem "nokogiri", '~> 1.13', '>= 1.13.4', platforms: [:mri, :jruby]
gem "nokogiri", '~> 1.15', '>= 1.13.4', platforms: [:mri, :jruby]

group :development do
gem 'ebnf', github: "dryruby/ebnf", branch: "develop"
Expand All @@ -24,6 +24,6 @@ group :debug do
end

group :test do
gem 'simplecov', '~> 0.21', platforms: :mri
gem 'simplecov', '~> 0.22', platforms: :mri
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
end
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -20,7 +20,7 @@ Install with `gem install rdf-rdfxml`

* 100% free and unencumbered [public domain](https://unlicense.org/) software.
* Implements a complete parser for [RDF/XML][].
* Compatible with Ruby >= 2.6.
* Compatible with Ruby >= 3.0.

## Usage:
Instantiate a parser and parse source, specifying type and base-URL
Expand All @@ -42,9 +42,9 @@ Write a graph to a file:
end

## Dependencies
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)
* [Builder](https://rubygems.org/gems/builder) (~>- 3.2)
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.13)
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.15)

## Documentation
Full documentation available on [Rubydoc.info][RDF/XML doc])
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.2.2
3.3.0
20 changes: 10 additions & 10 deletions rdf-rdfxml.gemspec
Expand Up @@ -25,21 +25,21 @@ Gem::Specification.new do |gem|
gem.files = %w(README.md History.md AUTHORS CONTRIBUTORS VERSION UNLICENSE) + Dir.glob('lib/**/*.rb')
gem.require_paths = %w(lib)

gem.required_ruby_version = '>= 2.6'
gem.required_ruby_version = '>= 3.0'
gem.requirements = []

gem.add_runtime_dependency 'rdf', '~> 3.2'
gem.add_runtime_dependency 'rdf-xsd', '~> 3.2'
gem.add_runtime_dependency 'rdf', '~> 3.3'
gem.add_runtime_dependency 'rdf-xsd', '~> 3.3'
gem.add_runtime_dependency 'htmlentities', '~> 4.3'
gem.add_runtime_dependency 'builder', '~> 3.2'
gem.add_runtime_dependency 'builder', '~> 3.2', '>= 3.2.4'

gem.add_development_dependency 'json-ld', '>= 3.2'
gem.add_development_dependency 'rspec', '~> 3.10'
gem.add_development_dependency 'json-ld', '>= 3.3'
gem.add_development_dependency 'rspec', '~> 3.12'
gem.add_development_dependency 'rspec-its', '~> 1.3'
gem.add_development_dependency 'rdf-isomorphic', '~> 3.2'
gem.add_development_dependency 'rdf-turtle', '~> 3.2'
gem.add_development_dependency 'rdf-spec', '~> 3.2'
gem.add_development_dependency 'rdf-vocab', '~> 3.2'
gem.add_development_dependency 'rdf-isomorphic', '~> 3.3'
gem.add_development_dependency 'rdf-turtle', '~> 3.3'
gem.add_development_dependency 'rdf-spec', '~> 3.3'
gem.add_development_dependency 'rdf-vocab', '~> 3.3'
gem.add_development_dependency 'yard' , '~> 0.9'

gem.post_install_message = nil
Expand Down
10 changes: 8 additions & 2 deletions spec/suite_helper.rb
Expand Up @@ -82,6 +82,7 @@ module SuiteTest
"rdft": "http://www.w3.org/ns/rdftest#",
"comment": "rdfs:comment",
"baseIri": {"@id": "mf:assumedTestBase", "@type": "@id"},
"entries": {"@id": "mf:entries", "@container": "@list"},
"name": "mf:name",
"action": {"@id": "mf:action", "@type": "@id"},
Expand Down Expand Up @@ -116,15 +117,20 @@ def self.from_jsonld(json)

def entries
# Map entries to resources
attributes['entries'].map {|e| Entry.new(e)}
attributes['entries'].map {|e| Entry.new(e, base_iri: attributes['baseIri'])}
end
end

class Entry < JSON::LD::Resource
attr_accessor :logger

def initialize(json, base_iri:)
@base_iri = base_iri
super
end

def base
RDF::URI(action)
RDF::URI(@base_iri || action)
end

# Alias data and query
Expand Down

0 comments on commit e9ea2fe

Please sign in to comment.