rdf-xsd 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dad8d58125296d377e9e0e78ca58a54ec22678a9ee5606d0c114e7692c81a49
4
- data.tar.gz: 50637e4eefc2c785c56652982e9f306c1d053f98e5bc17da7a9311689ae21e18
3
+ metadata.gz: c9692b297aecacd897e6e2b5dbe3de14c9a6247763b212409c5b7ee18456dfca
4
+ data.tar.gz: 1536a032b765d16734959d67427d7e55122531cab7757ca496c09e8fe67eb7a7
5
5
  SHA512:
6
- metadata.gz: cab209b7ff9b73948805c5836ab8fc38054583bc211ef4afc412403d55889f4805d772aa6b24ac56ecf77bd045f6156a79e3c54a7cd48e239a2e2d47211270b8
7
- data.tar.gz: 719d3097a42d5c0a2194e84c28c69a266a1243e4be372116622ac1c07ff55cd94c96aa4dcfc7f66a7dee3f8cbd95cdef8d095e46bc48b3d826a593050d06523f
6
+ metadata.gz: 82d012c0e17dec51ca6d8110397f3d13f728a0a2620c93e5a794efe202c9e1e47606d51e512ad95d7a24e3a5efad13911f09aeb9991c23b35a7071f09c3890c7
7
+ data.tar.gz: 4af795c1eeb2919aeb4e7dcfc5c36ed00a310744fbb532862d9e93286f498bdefed23ef8b229b07dc5d0b47c73441e4c7ecf65fd62ef431d69791d16b17dc339
data/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  This gem adds additional RDF::Literal subclasses for extended [XSD datatypes][]
4
4
 
5
- * <http://github.com/ruby-rdf/rdf-xsd>
6
-
7
- [![Gem Version](https://badge.fury.io/rb/rdf-xsd.png)](http://badge.fury.io/rb/rdf-xsd)
8
- [![Build Status](https://travis-ci.org/ruby-rdf/rdf-xsd.png?branch=master)](http://travis-ci.org/ruby-rdf/rdf-xsd)
5
+ [![Gem Version](https://badge.fury.io/rb/rdf-xsd.png)](https://badge.fury.io/rb/rdf-xsd)
6
+ [![Build Status](https://github.com/ruby-rdf/rdf-xsd/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-xsd/actions?query=workflow%3ACI)
7
+ [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-xsd/badge.svg)](https://coveralls.io/github/ruby-rdf/rdf-xsd?branch=develop)
8
+ [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
9
9
 
10
10
  ## Features
11
11
 
@@ -22,11 +22,11 @@ This gem adds additional RDF::Literal subclasses for extended [XSD datatypes][]
22
22
  require 'rdf/xsd'
23
23
 
24
24
  ## Dependencies
25
- * [Ruby](http://ruby-lang.org/) (>= 2.4)
26
- * [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.1)
27
- * Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.10)
28
- * Soft dependency on [EquivalentXML](http://rubygems.org/gems/equivalent-xml) (>= 0.6.0)
29
- * Soft dependency on [ActiveSupport](http://rubygems.org/gems/activesupport) (>= 3.0.0)
25
+ * [Ruby](https://ruby-lang.org/) (>= 2.4)
26
+ * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1)
27
+ * Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.10)
28
+ * Soft dependency on [EquivalentXML](https://rubygems.org/gems/equivalent-xml) (>= 0.6.0)
29
+ * Soft dependency on [ActiveSupport](https://rubygems.org/gems/activesupport) (>= 3.0.0)
30
30
 
31
31
  ## Documentation
32
32
  Full documentation available on [Rubydoc.info][XSD doc]
@@ -57,18 +57,18 @@ Full documentation available on [Rubydoc.info][XSD doc]
57
57
 
58
58
  ## Installation
59
59
 
60
- The recommended installation method is via [RubyGems](http://rubygems.org/).
60
+ The recommended installation method is via [RubyGems](https://rubygems.org/).
61
61
  To install the latest official release of the `RDF::XSD` gem, do:
62
62
 
63
63
  % [sudo] gem install rdf-xsd
64
64
 
65
65
  ## Mailing List
66
66
 
67
- * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
67
+ * <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
68
68
 
69
69
  ## Author
70
70
 
71
- * [Gregg Kellogg](http://github.com/gkellogg) - <http://greggkellogg.net/>
71
+ * [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
72
72
 
73
73
  ## Contributing
74
74
  This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
@@ -83,19 +83,21 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
83
83
  list in the the `README`. Alphabetical order applies.
84
84
  * Do note that in order for us to merge any non-trivial changes (as a rule
85
85
  of thumb, additions larger than about 15 lines of code), we need an
86
- explicit [public domain dedication][PDD] on record from you.
86
+ explicit [public domain dedication][PDD] on record from you,
87
+ which you will be asked to agree to on the first commit to a repo within the organization.
88
+ Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
87
89
 
88
90
  ## License
89
91
 
90
92
  This is free and unencumbered public domain software. For more information,
91
- see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
93
+ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
92
94
 
93
- Portions of tests are derived from [W3C DAWG tests](http://www.w3.org/2001/sw/DataAccess/tests/) and have [other licensing terms](http://www.w3.org/2001/sw/DataAccess/tests/data-r2/LICENSE).
95
+ Portions of tests are derived from [W3C DAWG tests](https://www.w3.org/2001/sw/DataAccess/tests/) and have [other licensing terms](https://www.w3.org/2001/sw/DataAccess/tests/data-r2/LICENSE).
94
96
 
95
- [Ruby]: http://ruby-lang.org/
96
- [RDF]: http://www.w3.org/RDF/
97
- [YARD]: http://yardoc.org/
98
- [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
99
- [PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
100
- [Backports]: http://rubygems.org/gems/backports
101
- [XSD Datatypes]: http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#built-in-datatypes
97
+ [Ruby]: https://ruby-lang.org/
98
+ [RDF]: https://www.w3.org/RDF/
99
+ [YARD]: https://yardoc.org/
100
+ [YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
101
+ [PDD]: https://unlicense.org/#unlicensing-contributions
102
+ [Backports]: https://rubygems.org/gems/backports
103
+ [XSD Datatypes]: https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#built-in-datatypes
data/UNLICENSE CHANGED
@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
21
  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
22
  OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
- For more information, please refer to <http://unlicense.org/>
24
+ For more information, please refer to <https://unlicense.org/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.1
@@ -7,8 +7,8 @@ require 'rdf'
7
7
  # @example Requiring the `RDF::XSD` module
8
8
  # require 'rdf/xsd'
9
9
  #
10
- # @see http://rubygems.org/gems/rdf
11
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#built-in-datatypes
10
+ # @see https://rubygems.org/gems/rdf
11
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#built-in-datatypes
12
12
  #
13
- # @author [Gregg Kellogg](http://greggkellogg.net/)
13
+ # @author [Gregg Kellogg](https://greggkellogg.net/)
14
14
  Dir.glob(File.join(File.expand_path(File.dirname(__FILE__)), 'xsd', '*.rb')) {|f| require f}
@@ -5,7 +5,7 @@ module RDF; class Literal
5
5
  ##
6
6
  # More specific sub-types of double
7
7
  # Derived types
8
- # @see http://www.w3.org/TR/xpath-functions/#datatypes
8
+ # @see https://www.w3.org/TR/xpath-functions/#datatypes
9
9
 
10
10
  ##
11
11
  # anyURI represents a Uniform Resource Identifier Reference (URI).
@@ -14,9 +14,9 @@ module RDF; class Literal
14
14
  # This type should be used to specify the intention that the value fulfills
15
15
  # the role of a URI as defined by [RFC 2396], as amended by [RFC 2732].
16
16
  #
17
- # @see http://www.w3.org/TR/xmlschema11-2/#anyURI
18
- # @see http://www.ietf.org/rfc/rfc2396.txt
19
- # @see http://www.ietf.org/rfc/rfc2732.txt
17
+ # @see https://www.w3.org/TR/xmlschema11-2/#anyURI
18
+ # @see https://www.ietf.org/rfc/rfc2396.txt
19
+ # @see https://www.ietf.org/rfc/rfc2732.txt
20
20
  class AnyURI < RDF::Literal
21
21
  DATATYPE = RDF::XSD.anyURI
22
22
 
@@ -5,13 +5,13 @@ module RDF; class Literal
5
5
  ##
6
6
  # More specific sub-types of double
7
7
  # Derived types
8
- # @see http://www.w3.org/TR/xpath-functions/#datatypes
8
+ # @see https://www.w3.org/TR/xpath-functions/#datatypes
9
9
 
10
10
  ##
11
11
  # hexBinary represents arbitrary hex-encoded binary data. The value space of hexBinary is the set of finite-length
12
12
  # sequences of binary octets.
13
13
  #
14
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#hexBinary
14
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#hexBinary
15
15
  class HexBinary < RDF::Literal
16
16
  DATATYPE = RDF::XSD.hexBinary
17
17
  GRAMMAR = %r(\A[0-9a-fA-F]+\Z)
@@ -57,7 +57,7 @@ module RDF; class Literal
57
57
  # finite-length sequences of binary octets. For base64Binary data the entire binary stream is encoded using the Base64
58
58
  # Alphabet in [RFC 2045].
59
59
  #
60
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#hexBinary
60
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#hexBinary
61
61
  class Base64Binary < RDF::Literal
62
62
  DATATYPE = RDF::XSD.base64Binary
63
63
 
@@ -84,7 +84,7 @@ module RDF; class Literal
84
84
  # Converts this literal into its canonical lexical representation.
85
85
  #
86
86
  # @return [RDF::Literal] `self`
87
- # @see http://www.w3.org/TR/xmlschema-2/#dateTime
87
+ # @see https://www.w3.org/TR/xmlschema-2/#dateTime
88
88
  def canonicalize!
89
89
  @string = ::Base64.encode64(@object)
90
90
  self
@@ -7,7 +7,7 @@ module RDF; class Literal
7
7
  #
8
8
  # The dateTimeStamp datatype is ·derived· from dateTime by giving the value required to its explicitTimezone facet. The result is that all values of dateTimeStamp are required to have explicit time zone offsets and the datatype is totally ordered.
9
9
  #
10
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTimeStamp
10
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTimeStamp
11
11
  class DateTimeStamp < RDF::Literal::DateTime
12
12
  DATATYPE = RDF::XSD.dateTimeStamp
13
13
  GRAMMAR = %r(\A(-?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?)((?:[\+\-]\d{2}:\d{2})|UTC|GMT|Z)\Z).freeze
@@ -20,7 +20,7 @@ module RDF; class Literal
20
20
  # long, non-periodic instances e.g. 1999-10 to represent the whole month of 1999-10, independent of how many days this
21
21
  # month has.
22
22
  #
23
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gYearMonth
23
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gYearMonth
24
24
  class YearMonth < RDF::Literal::Date
25
25
  DATATYPE = RDF::XSD.gYearMonth
26
26
  GRAMMAR = %r(\A(-?\d{4,}-\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
@@ -38,7 +38,7 @@ module RDF; class Literal
38
38
  # defined in § 5.2.1 of [ISO 8601]. Specifically, it is a set of one-year long, non-periodic instances e.g. lexical
39
39
  # 1999 to represent the whole year 1999, independent of how many months and days this year has.
40
40
  #
41
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gYear
41
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gYear
42
42
  class Year < RDF::Literal::Date
43
43
  DATATYPE = RDF::XSD.gYear
44
44
  GRAMMAR = %r(\A(-?\d{4,})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
@@ -56,7 +56,7 @@ module RDF; class Literal
56
56
  # recurring dates are not supported by this datatype. The value space of gMonthDay is the set of calendar dates,
57
57
  # as defined in § 3 of [ISO 8601]. Specifically, it is a set of one-day long, annually periodic instances.
58
58
  #
59
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gMonthDay
59
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gMonthDay
60
60
  class MonthDay < RDF::Literal::Date
61
61
  DATATYPE = RDF::XSD.gMonthDay
62
62
  GRAMMAR = %r(\A--(\d{2}-\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
@@ -74,7 +74,7 @@ module RDF; class Literal
74
74
  # recurring days are not supported by this datatype. The value space of gDay is the space of a set of calendar
75
75
  # dates as defined in § 3 of [ISO 8601]. Specifically, it is a set of one-day long, monthly periodic instances.
76
76
  #
77
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gDay
77
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gDay
78
78
  class Day < RDF::Literal::Date
79
79
  DATATYPE = RDF::XSD.gDay
80
80
  GRAMMAR = %r(\A---(\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
@@ -91,7 +91,7 @@ module RDF; class Literal
91
91
  # gMonth is a gregorian month that recurs every year. The value space of gMonth is the space of a set of calendar
92
92
  # months as defined in § 3 of [ISO 8601]. Specifically, it is a set of one-month long, yearly periodic instances.
93
93
  #
94
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gMonth
94
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#gMonth
95
95
  class Month < RDF::Literal::Date
96
96
  DATATYPE = RDF::XSD.gMonth
97
97
  GRAMMAR = %r(\A--(\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
@@ -1,7 +1,7 @@
1
1
  module RDF; class Literal
2
2
  # Note that in XML Schema, Float is not really derived from Double,
3
3
  # but implementations are identical in Ruby
4
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#float
4
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#float
5
5
  class Float < Double
6
6
  DATATYPE = RDF::XSD.float
7
7
  end
@@ -5,7 +5,7 @@ module RDF; class Literal
5
5
  ##
6
6
  # A duration literal.
7
7
  #
8
- # @see http://www.w3.org/TR/xmlschema11-2/#duration
8
+ # @see https://www.w3.org/TR/xmlschema11-2/#duration
9
9
  class Duration < Literal
10
10
  DATATYPE = RDF::XSD.duration
11
11
  GRAMMAR = %r(\A
@@ -59,7 +59,7 @@ module RDF; class Literal
59
59
  # Also normalizes elements
60
60
  #
61
61
  # @return [RDF::Literal] `self`
62
- # @see http://www.w3.org/TR/xmlschema11-2/#dateTime
62
+ # @see https://www.w3.org/TR/xmlschema11-2/#dateTime
63
63
  def canonicalize!
64
64
  @string = @humanize = nil
65
65
  if @object[:se].to_i > 60
@@ -202,7 +202,7 @@ module RDF; class Literal
202
202
  #
203
203
  # dayTimeDuration is a datatype ·derived· from duration by restricting its ·lexical representations· to instances of dayTimeDurationLexicalRep. The ·value space· of dayTimeDuration is therefore that of duration restricted to those whose ·months· property is 0. This results in a duration datatype which is totally ordered.
204
204
  #
205
- # @see http://www.w3.org/TR/xmlschema11-2/#dayTimeDuration
205
+ # @see https://www.w3.org/TR/xmlschema11-2/#dayTimeDuration
206
206
  class DayTimeDuration < Literal
207
207
  DATATYPE = RDF::XSD.dayTimeDuration
208
208
  GRAMMAR = %r(\A
@@ -228,7 +228,7 @@ module RDF; class Literal
228
228
  #
229
229
  # yearMonthDuration is a datatype ·derived· from duration by restricting its ·lexical representations· to instances of yearMonthDurationLexicalRep. The ·value space· of yearMonthDuration is therefore that of duration restricted to those whose ·seconds· property is 0. This results in a duration datatype which is totally ordered.
230
230
  #
231
- # @see http://www.w3.org/TR/xmlschema11-2/#yearMonthDuration
231
+ # @see https://www.w3.org/TR/xmlschema11-2/#yearMonthDuration
232
232
  class YearMonthDuration < Literal
233
233
  DATATYPE = RDF::XSD.yearMonthDuration
234
234
  GRAMMAR = %r(\A
@@ -15,7 +15,7 @@ if defined?(::Nokogiri)
15
15
  # or NoteSet in the context of its containing document, and second to
16
16
  # serialize to a lexical representation.
17
17
  #
18
- # @see # @see http://www.w3.org/TR/xml-exc-c14n/
18
+ # @see # @see https://www.w3.org/TR/xml-exc-c14n/
19
19
  class Node
20
20
  ##
21
21
  # Canonicalize the Node. Return a new instance of this node
@@ -89,7 +89,7 @@ if defined?(::Nokogiri)
89
89
  # as being canonical with all child nodes canonicalized.
90
90
  #
91
91
  # @param [Hash{Symbol => Object}] options
92
- # Passed to {Nokogiri::XML::Node#c14nxl}
92
+ # Passed to `Nokogiri::XML::Node#c14nxl`
93
93
  def c14nxl(options = {})
94
94
  # Create a new NodeSet
95
95
  set = self.dup
@@ -173,7 +173,7 @@ class REXML::Element
173
173
  # Apply namespaces either passed as an option, or that are in scope.
174
174
  #
175
175
  # @param [Hash{Symbol => Object}] options
176
- # From {Nokogiri::XML::Node#c14nxl}
176
+ # From `Nokogiri::XML::Node#c14nxl`
177
177
  def c14nxl(options = {})
178
178
  # Add in-scope namespace definitions, unless supplied
179
179
  options[:namespaces] ||= self.namespaces
@@ -3,9 +3,9 @@ module RDF; class Literal
3
3
  ##
4
4
  # nonPositiveInteger is derived from integer by setting the value of maxInclusive to be 0. This results in
5
5
  # the standard mathematical concept of the non-positive integers. The value space of nonPositiveInteger is the
6
- # infinite set {...,-2,-1,0}. The base type of nonPositiveInteger is integer.
6
+ # infinite set `{...,-2,-1,0}`. The base type of nonPositiveInteger is integer.
7
7
  #
8
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#nonPositiveInteger
8
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#nonPositiveInteger
9
9
  class NonPositiveInteger < Integer
10
10
  DATATYPE = RDF::XSD.nonPositiveInteger
11
11
  GRAMMAR = /^(?:[\+\-]?0)|(?:-\d+)$/.freeze
@@ -29,9 +29,9 @@ module RDF; class Literal
29
29
  ##
30
30
  # negativeInteger is derived from nonPositiveInteger by setting the value of maxInclusive to be -1. This
31
31
  # results in the standard mathematical concept of the negative integers. The value space of negativeInteger is
32
- # the infinite set {...,-2,-1}. The base type of negativeInteger is nonPositiveInteger.
32
+ # the infinite set `{...,-2,-1}`. The base type of negativeInteger is nonPositiveInteger.
33
33
  #
34
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#negativeInteger
34
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#negativeInteger
35
35
  class NegativeInteger < NonPositiveInteger
36
36
  GRAMMAR = /^\-\d+$/.freeze
37
37
  DATATYPE = RDF::XSD.negativeInteger
@@ -57,7 +57,7 @@ module RDF; class Literal
57
57
  # and minInclusive to be -9223372036854775808.
58
58
  #
59
59
  # The base type of long is integer.
60
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#long
60
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#long
61
61
  class Long < Integer
62
62
  DATATYPE = RDF::XSD.long
63
63
 
@@ -70,7 +70,7 @@ module RDF; class Literal
70
70
  # int is derived from long by setting the value of maxInclusive to be 2147483647 and minInclusive to be
71
71
  # -2147483648. The base type of int is long.
72
72
  #
73
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#int
73
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#int
74
74
  class Int < Long
75
75
  DATATYPE = RDF::XSD.int
76
76
 
@@ -83,7 +83,7 @@ module RDF; class Literal
83
83
  # short is derived from int by setting the value of maxInclusive to be 32767 and minInclusive to be
84
84
  # -32768. The base type of short is int.
85
85
  #
86
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#short
86
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#short
87
87
  class Short < Int
88
88
  DATATYPE = RDF::XSD.short
89
89
 
@@ -96,7 +96,7 @@ module RDF; class Literal
96
96
  # byte is derived from short by setting the value of maxInclusive to be 127 and minInclusive to be -128.
97
97
  # The base type of byte is short.
98
98
  #
99
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#byte
99
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#byte
100
100
  class Byte < Short
101
101
  DATATYPE = RDF::XSD.byte
102
102
 
@@ -110,7 +110,7 @@ module RDF; class Literal
110
110
  # the standard mathematical concept of the non-negative integers. The value space of nonNegativeInteger is the
111
111
  # infinite set [0,1,2,...]. The base type of nonNegativeInteger is integer.
112
112
  #
113
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#nonNegativeInteger
113
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#nonNegativeInteger
114
114
  class NonNegativeInteger < Integer
115
115
  GRAMMAR = /^(?:(?:[\+\-]?0)|(?:\+?\d+))$/.freeze
116
116
  DATATYPE = RDF::XSD.nonNegativeInteger
@@ -125,7 +125,7 @@ module RDF; class Literal
125
125
  # results in the standard mathematical concept of the positive integer numbers. The value space of
126
126
  # positiveInteger is the infinite set [1,2,...]. The base type of positiveInteger is nonNegativeInteger.
127
127
  #
128
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#positiveInteger
128
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#positiveInteger
129
129
  class PositiveInteger < NonNegativeInteger
130
130
  GRAMMAR = /^\+?\d+$/.freeze
131
131
  DATATYPE = RDF::XSD.positiveInteger
@@ -139,7 +139,7 @@ module RDF; class Literal
139
139
  # unsignedLong is derived from nonNegativeInteger by setting the value of maxInclusive to be
140
140
  # 18446744073709551615. The base type of unsignedLong is nonNegativeInteger.
141
141
  #
142
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedLong
142
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedLong
143
143
  class UnsignedLong < NonNegativeInteger
144
144
  GRAMMAR = /^\d+$/.freeze
145
145
  DATATYPE = RDF::XSD.unsignedLong
@@ -153,7 +153,7 @@ module RDF; class Literal
153
153
  # unsignedInt is derived from unsignedLong by setting the value of maxInclusive to be 4294967295. The base
154
154
  # type of unsignedInt is unsignedLong.
155
155
  #
156
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedInt
156
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedInt
157
157
  class UnsignedInt < UnsignedLong
158
158
  DATATYPE = RDF::XSD.unsignedInt
159
159
 
@@ -166,7 +166,7 @@ module RDF; class Literal
166
166
  # unsignedShort is derived from unsignedInt by setting the value of maxInclusive to be 65535. The base
167
167
  # type of unsignedShort is unsignedInt.
168
168
  #
169
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedShort
169
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedShort
170
170
  class UnsignedShort < UnsignedInt
171
171
  DATATYPE = RDF::XSD.unsignedShort
172
172
 
@@ -179,7 +179,7 @@ module RDF; class Literal
179
179
  # unsignedByte is derived from unsignedShort by setting the value of maxInclusive to be 255. The base
180
180
  # type of unsignedByte is unsignedShort.
181
181
  #
182
- # @see http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedByte
182
+ # @see https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#unsignedByte
183
183
  class UnsignedByte < UnsignedShort
184
184
  DATATYPE = RDF::XSD.unsignedByte
185
185
 
@@ -20,13 +20,13 @@ module RDF; class Literal
20
20
  # original document, canonicalization cannot be performed directly within this
21
21
  # class.
22
22
  #
23
- # This gem includes Exclusive Canonical XML extensions {Nokogiri::XML::Node#c14nxl},
24
- # {Nokogiri::XML::NodeSet#c14nxl}, {REXML::Element#c14nxl} and {Array#c14nxl} (necessary
23
+ # This gem includes Exclusive Canonical XML extensions `Nokogiri::XML::Node#c14nxl`,
24
+ # `Nokogiri::XML::NodeSet#c14nxl`, `REXML::Element#c14nxl` and `Array#c14nxl` (necessary
25
25
  # for REXML node children, which is the REXML implementation of a NodeSet)
26
26
  #
27
- # @see http://www.w3.org/TR/rdf-concepts/#section-XMLLiteral
28
- # @see http://www.w3.org/TR/rdfa-core/#s_xml_literals
29
- # @see http://www.w3.org/TR/xml-exc-c14n/
27
+ # @see https://www.w3.org/TR/rdf-concepts/#section-XMLLiteral
28
+ # @see https://www.w3.org/TR/rdfa-core/#s_xml_literals
29
+ # @see https://www.w3.org/TR/xml-exc-c14n/
30
30
  class XML < Literal
31
31
  DATATYPE = RDF.XMLLiteral
32
32
  GRAMMAR = nil
@@ -77,7 +77,7 @@ module RDF; class Literal
77
77
  # @param [Object] other
78
78
  # @return [Boolean] `true` or `false`
79
79
  #
80
- # @see http://www.w3.org/TR/rdf-concepts/#section-XMLLiteral
80
+ # @see https://www.w3.org/TR/rdf-concepts/#section-XMLLiteral
81
81
  def eql?(other)
82
82
  if other.is_a?(Literal::XML)
83
83
  case @library
@@ -141,7 +141,7 @@ module RDF; class Literal
141
141
  #
142
142
  # HTML Literals are managed equivalent to XML Literals. Processors
143
143
  # are responsible for coercing the input to an
144
- # [DOM DocumentFragment](http://www.w3.org/TR/dom/#interface-documentfragment).
144
+ # [DOM DocumentFragment](https://www.w3.org/TR/dom/#interface-documentfragment).
145
145
  #
146
146
  # @see https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-concepts/index.html#section-html
147
147
  class HTML < XML
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-xsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg
8
8
  - Kellogg
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-12 00:00:00.000000000 Z
12
+ date: 2021-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -25,34 +25,48 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '3.1'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rexml
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '3.2'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.2'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: activesupport
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
46
  - - "~>"
33
47
  - !ruby/object:Gem::Version
34
- version: '5.0'
48
+ version: '5.2'
35
49
  type: :development
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
39
53
  - - "~>"
40
54
  - !ruby/object:Gem::Version
41
- version: '5.0'
55
+ version: '5.2'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: rspec
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
60
  - - "~>"
47
61
  - !ruby/object:Gem::Version
48
- version: '3.9'
62
+ version: '3.10'
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
67
  - - "~>"
54
68
  - !ruby/object:Gem::Version
55
- version: '3.9'
69
+ version: '3.10'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: rspec-its
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -87,14 +101,14 @@ dependencies:
87
101
  requirements:
88
102
  - - "~>"
89
103
  - !ruby/object:Gem::Version
90
- version: 0.9.20
104
+ version: '0.9'
91
105
  type: :development
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
109
  - - "~>"
96
110
  - !ruby/object:Gem::Version
97
- version: 0.9.20
111
+ version: '0.9'
98
112
  description: Adds RDF::Literal subclasses for extended XSD datatypes.
99
113
  email: public-rdf-ruby@w3.org
100
114
  executables: []
@@ -115,7 +129,7 @@ files:
115
129
  - lib/rdf/xsd/integer.rb
116
130
  - lib/rdf/xsd/version.rb
117
131
  - lib/rdf/xsd/xml.rb
118
- homepage: http://ruby-rdf.github.com/rdf-xsd
132
+ homepage: https://github.com/ruby-rdf/rdf-xsd
119
133
  licenses:
120
134
  - Unlicense
121
135
  metadata: {}
@@ -137,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  requirements: []
140
- rubygems_version: 3.0.6
141
- signing_key:
154
+ rubygems_version: 3.2.3
155
+ signing_key:
142
156
  specification_version: 4
143
157
  summary: Extended XSD Datatypes for RDF.rb.
144
158
  test_files: []