rdf-vocab 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf/vocab/extensions.rb +6 -1
  4. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5954b307d06cf6ec603c2b85a79ebb6b94d209ebae7168962672776672a93df9
4
- data.tar.gz: 4ddd4886d743d7e52b55fee6256bb15e9b799fbb6554a5c9769ef7fbf5a867b5
3
+ metadata.gz: 7b5e4713ddc1207f3d5e67ccb58bc87c1b989c047a665e6638b2e64edf205a91
4
+ data.tar.gz: 12e07092f54dfe4bf70e535823a65c55bc355a38f3e27014417bd5b550ead8c9
5
5
  SHA512:
6
- metadata.gz: fe4c90b9ace5d381e6cddce8bb3b7afa5318325a3f94f526240e161a0416a0a45a89681082ad059c436cfc655616e2867673bd8ff32493cb68ab29ac9c9fba09
7
- data.tar.gz: 9edae8a2fd4bb9c638cb275c80195e7425c845be6c5b2c335ccf108f9fc3f72136fdc7da811d2b43ee6fbd3734b575f9c48322f452064f9f754b224d744eb462
6
+ metadata.gz: 97135a3e2db7c122f19455f92ecd61bb1d2fbeb330cdc2f8dbd5462a4dd1fb26fb12e8fda9847e13a2cd7a8fca3c3fa7e72715e24fd2a40d76defd53e62f7671
7
+ data.tar.gz: 16e2767fee34be7917d34e56334ab5af1b06de33a74d06ec8046c0582e9e0f85e67fd555618523fcc561c15b3e007451f775d5db40b75999618e7e22258b2b0c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.3
1
+ 3.2.4
@@ -391,7 +391,12 @@ module RDF
391
391
  case template
392
392
  when /.haml$/
393
393
  require 'haml'
394
- haml = Haml::Engine.new(File.read(template))
394
+ haml = if Haml.const_defined?(:Template)
395
+ Haml::Template.new {File.read(template)}
396
+ else
397
+ Haml::Engine.new(File.read(template))
398
+ end
399
+
395
400
  haml.render(self, ont: expanded, context: json['@context'], prefixes: prefixes)
396
401
  when /.erb$/
397
402
  require 'erubis'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-vocab
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chandek-Stark
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-25 00:00:00.000000000 Z
13
+ date: 2023-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -36,16 +36,22 @@ dependencies:
36
36
  name: haml
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '5.2'
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '7'
42
45
  type: :development
43
46
  prerelease: false
44
47
  version_requirements: !ruby/object:Gem::Requirement
45
48
  requirements:
46
- - - "~>"
49
+ - - ">="
47
50
  - !ruby/object:Gem::Version
48
51
  version: '5.2'
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '7'
49
55
  - !ruby/object:Gem::Dependency
50
56
  name: erubis
51
57
  requirement: !ruby/object:Gem::Requirement
@@ -396,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
402
  - !ruby/object:Gem::Version
397
403
  version: '0'
398
404
  requirements: []
399
- rubygems_version: 3.3.7
405
+ rubygems_version: 3.4.6
400
406
  signing_key:
401
407
  specification_version: 4
402
408
  summary: A library of RDF vocabularies