rdf 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/rdf/cli.rb +1 -1
- data/lib/rdf/vocabulary.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2751c96a0ba8f1a51fe00c0b58f3ce4a7f11391c
|
4
|
+
data.tar.gz: 47e64925efb02489826099373e75215d81c06f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4b2cab8b9e984b9b9c2895a3c283523f039e31fc95cb75d7dee81f63baf6a419c45153f8143f61b9f34c11ea9b0e47cdb82f887ce8bfea58f47ff7d273c0696
|
7
|
+
data.tar.gz: '09b142a596e81f4a38e345fde610d0f9ff7b22060540ede70045213693e2e2fc43ec15d7014595bced01e6e8ff86767b215f71be7241f3a37c4728df2b231fda'
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ This is a pure-Ruby library for working with [Resource Description Framework
|
|
30
30
|
not modify any of Ruby's core classes or standard library.
|
31
31
|
* Based entirely on Ruby's autoloading, meaning that you can generally make
|
32
32
|
use of any one part of the library without needing to load up the rest.
|
33
|
-
* Compatible with Ruby Ruby 2.
|
33
|
+
* Compatible with Ruby Ruby >= 2.2.2, Rubinius and JRuby 9.0+.
|
34
34
|
* Performs auto-detection of input to select appropriate Reader class if one
|
35
35
|
cannot be determined from file characteristics.
|
36
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0
|
1
|
+
2.1.0
|
data/lib/rdf/cli.rb
CHANGED
@@ -204,7 +204,7 @@ module RDF
|
|
204
204
|
parse: true,
|
205
205
|
help: "validate [options] [args...]\nvalidates parsed input (may also be used with --validate)",
|
206
206
|
lambda: ->(argv, opts) do
|
207
|
-
$stdout.puts "Input is " + (repository.valid? ? "" :"in") + "valid"
|
207
|
+
$stdout.puts "Input is " + (repository.valid? ? "" : "in") + "valid"
|
208
208
|
end
|
209
209
|
}
|
210
210
|
}
|
data/lib/rdf/vocabulary.rb
CHANGED
@@ -117,7 +117,7 @@ module RDF
|
|
117
117
|
name, options = args
|
118
118
|
options = {label: name.to_s, vocab: self}.merge(options || {})
|
119
119
|
uri_str = [to_s, name.to_s].join('')
|
120
|
-
Term.cache.delete(uri_str) # Clear any previous entry
|
120
|
+
Term.cache.delete(uri_str.to_sym) # Clear any previous entry
|
121
121
|
prop = Term.intern(uri_str, attributes: options)
|
122
122
|
props[name.to_sym] = prop
|
123
123
|
# Define an accessor, except for problematic properties
|
@@ -295,7 +295,7 @@ module RDF
|
|
295
295
|
when RDF::URI("http://schema.org/inverseOf") then :inverseOf
|
296
296
|
when RDF::URI("http://schema.org/domainIncludes") then :domainIncludes
|
297
297
|
when RDF::URI("http://schema.org/rangeIncludes") then :rangeIncludes
|
298
|
-
else statement.predicate.pname
|
298
|
+
else statement.predicate.pname.to_sym
|
299
299
|
end
|
300
300
|
|
301
301
|
value = if statement.object.uri?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-08-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
@@ -276,7 +276,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
276
|
requirements:
|
277
277
|
- - ">="
|
278
278
|
- !ruby/object:Gem::Version
|
279
|
-
version:
|
279
|
+
version: 2.2.2
|
280
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
281
|
requirements:
|
282
282
|
- - ">="
|