Skip to content

Commit

Permalink
Finish 3.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Apr 3, 2023
2 parents 737e9a6 + 04cecfc commit 5b493bf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Update gh-pages with docs
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.3
3.2.4
7 changes: 6 additions & 1 deletion lib/rdf/vocab/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,12 @@ def to_html(graph: nil, prefixes: nil, jsonld: nil, template: nil)
case template
when /.haml$/
require 'haml'
haml = Haml::Engine.new(File.read(template))
haml = if Haml.const_defined?(:Template)
Haml::Template.new {File.read(template)}
else
Haml::Engine.new(File.read(template))
end

haml.render(self, ont: expanded, context: json['@context'], prefixes: prefixes)
when /.erb$/
require 'erubis'
Expand Down
2 changes: 1 addition & 1 deletion rdf-vocab.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'rdf', '~> 3.2', '>= 3.2.4'

# Either of these are required for HTML vocabulary generation
gem.add_development_dependency 'haml', '~> 5.2'
gem.add_development_dependency 'haml', '>= 5.2', "< 7"
gem.add_development_dependency 'erubis', '~> 2.7'

gem.add_development_dependency 'json-ld', '~> 3.2'
Expand Down

0 comments on commit 5b493bf

Please sign in to comment.