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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9264fbe27f459f9604dbcb9c4c51cb337699186f
4
- data.tar.gz: 0dd6fc0bc4406fe10b947cd2b784ca00d24a01f3
3
+ metadata.gz: 2751c96a0ba8f1a51fe00c0b58f3ce4a7f11391c
4
+ data.tar.gz: 47e64925efb02489826099373e75215d81c06f59
5
5
  SHA512:
6
- metadata.gz: 7bcb3e1123ee603fd659cbaccf429ccceded50e109eed283e56b6bab09b3b776b3727cf5c354df0ce9bf0df3e54e2f8ad2c304399eacc9236f763d08b097c38c
7
- data.tar.gz: 468bdca03374b09c08a20de648955c2eb3fa6309c7a98e5aaf698230902b58b6989b5813afdb8152f975f4a42cce329b0ef1fddaa5b0d553810aea69682006c3
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.x, Rubinius and JRuby 1.7+ (in Ruby 2.0 mode).
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.2
1
+ 2.1.0
@@ -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
  }
@@ -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.2
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-07-08 00:00:00.000000000 Z
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: '2.0'
279
+ version: 2.2.2
280
280
  required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  requirements:
282
282
  - - ">="