rdf-xsd 2.2.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
- SHA1:
3
- metadata.gz: e1bf6f19615cb0e6ada08b1d2ab3625024fbff1c
4
- data.tar.gz: 62df56c1a295a3c17b2cd4908f9d26a27c2eeaa6
2
+ SHA256:
3
+ metadata.gz: c9692b297aecacd897e6e2b5dbe3de14c9a6247763b212409c5b7ee18456dfca
4
+ data.tar.gz: 1536a032b765d16734959d67427d7e55122531cab7757ca496c09e8fe67eb7a7
5
5
  SHA512:
6
- metadata.gz: acc501253c5654d6c900095fa021e2237f5913b134da9633637c2bc8285258b34cc469c6de640affb3f2b961f35574261e4dc67ea59525a7075c6b92c165edb7
7
- data.tar.gz: adaddcb30d108bc382317d7feed137b3e724298db9876ba494b14dca5bbc0266545c4d4bd710ee593554304975c81a29ded450fb4dc76950739863fa7595740f
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.2.2)
26
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 2.0)
27
- * Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.6)
28
- * Soft dependency on [EquivalentXML](http://rubygems.org/gems/equivalent-xml) (>= 0.2.8)
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
- 2.2.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://rdf.rubyforge.org/
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,11 +14,11 @@ 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
- DATATYPE = XSD.anyURI
21
+ DATATYPE = RDF::XSD.anyURI
22
22
 
23
23
  ##
24
24
  # @param [String, Object] value
@@ -5,15 +5,15 @@ 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
- DATATYPE = XSD.hexBinary
16
+ DATATYPE = RDF::XSD.hexBinary
17
17
  GRAMMAR = %r(\A[0-9a-fA-F]+\Z)
18
18
 
19
19
  ##
@@ -57,9 +57,9 @@ 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
- DATATYPE = XSD.base64Binary
62
+ DATATYPE = RDF::XSD.base64Binary
63
63
 
64
64
  ##
65
65
  # @param [String, Object] value
@@ -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,9 +7,9 @@ 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
- DATATYPE = XSD.dateTimeStamp
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
14
14
  FORMAT = '%Y-%m-%dT%H:%M:%SZ'.freeze
15
15
  end
@@ -20,9 +20,9 @@ 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
- DATATYPE = XSD.gYearMonth
25
+ DATATYPE = RDF::XSD.gYearMonth
26
26
  GRAMMAR = %r(\A(-?\d{4,}-\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
27
27
  FORMAT = '%Y-%m%Z'.freeze
28
28
 
@@ -38,9 +38,9 @@ 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
- DATATYPE = XSD.gYear
43
+ DATATYPE = RDF::XSD.gYear
44
44
  GRAMMAR = %r(\A(-?\d{4,})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
45
45
  FORMAT = '%Y%Z'.freeze
46
46
 
@@ -56,9 +56,9 @@ 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
- DATATYPE = XSD.gMonthDay
61
+ DATATYPE = RDF::XSD.gMonthDay
62
62
  GRAMMAR = %r(\A--(\d{2}-\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
63
63
  FORMAT = '%m-%d%Z'.freeze
64
64
 
@@ -74,9 +74,9 @@ 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
- DATATYPE = XSD.gDay
79
+ DATATYPE = RDF::XSD.gDay
80
80
  GRAMMAR = %r(\A---(\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
81
81
  FORMAT = '%d%Z'.freeze
82
82
 
@@ -91,9 +91,9 @@ 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
- DATATYPE = XSD.gMonth
96
+ DATATYPE = RDF::XSD.gMonth
97
97
  GRAMMAR = %r(\A--(\d{2})((?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
98
98
  FORMAT = '%m%Z'.freeze
99
99
 
@@ -1,8 +1,8 @@
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
- DATATYPE = XSD.float
6
+ DATATYPE = RDF::XSD.float
7
7
  end
8
8
  end; end #RDF::Literal
@@ -5,9 +5,9 @@ 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
- DATATYPE = XSD.duration
10
+ DATATYPE = RDF::XSD.duration
11
11
  GRAMMAR = %r(\A
12
12
  (?<si>-)?
13
13
  P(?:(?:(?:(?:(?<yr>\d+)Y)(?:(?<mo>\d+)M)?(?:(?<da>\d+)D)?)
@@ -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,9 +202,9 @@ 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
- DATATYPE = XSD.dayTimeDuration
207
+ DATATYPE = RDF::XSD.dayTimeDuration
208
208
  GRAMMAR = %r(\A
209
209
  (?<si>-)?
210
210
  P(?:(?:(?:(?<da>\d+)D)
@@ -228,9 +228,9 @@ 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
- DATATYPE = XSD.yearMonthDuration
233
+ DATATYPE = RDF::XSD.yearMonthDuration
234
234
  GRAMMAR = %r(\A
235
235
  (?<si>-)?
236
236
  P(?:(?:(?:(?:(?<yr>\d+)Y)(?:(?<mo>\d+)M)?)
@@ -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: 2.2.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: 2017-06-24 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
@@ -17,98 +17,98 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.1'
20
+ version: '3.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.1'
27
+ version: '3.1'
28
28
  - !ruby/object:Gem::Dependency
29
- name: activesupport
29
+ name: rexml
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.0'
35
- type: :development
34
+ version: '3.2'
35
+ type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '5.0'
41
+ version: '3.2'
42
42
  - !ruby/object:Gem::Dependency
43
- name: i18n
43
+ name: activesupport
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.6'
48
+ version: '5.2'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0.6'
55
+ version: '5.2'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '3.4'
62
+ version: '3.10'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '3.4'
69
+ version: '3.10'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec-its
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '1.2'
76
+ version: '1.3'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '1.2'
83
+ version: '1.3'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rdf-spec
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '2.0'
90
+ version: '3.1'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '2.0'
97
+ version: '3.1'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: yard
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0.8'
104
+ version: '0.9'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0.8'
111
+ version: '0.9'
112
112
  description: Adds RDF::Literal subclasses for extended XSD datatypes.
113
113
  email: public-rdf-ruby@w3.org
114
114
  executables: []
@@ -129,7 +129,7 @@ files:
129
129
  - lib/rdf/xsd/integer.rb
130
130
  - lib/rdf/xsd/version.rb
131
131
  - lib/rdf/xsd/xml.rb
132
- homepage: http://ruby-rdf.github.com/rdf-xsd
132
+ homepage: https://github.com/ruby-rdf/rdf-xsd
133
133
  licenses:
134
134
  - Unlicense
135
135
  metadata: {}
@@ -144,16 +144,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
- version: 2.2.2
147
+ version: '2.4'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubyforge_project: rdf-xsd
155
- rubygems_version: 2.6.12
156
- signing_key:
154
+ rubygems_version: 3.2.3
155
+ signing_key:
157
156
  specification_version: 4
158
157
  summary: Extended XSD Datatypes for RDF.rb.
159
158
  test_files: []