rdf-xsd 3.0.0 → 3.0.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: fa58f1adeadaeb6f045b41c5689c37b57b2352c1c19dd43be7d5439b5b4afbac
4
- data.tar.gz: 26e8024c15fcb3e1d0016dd6e03f01dff6c24025fc00427ec5fa0296ccac7d0e
3
+ metadata.gz: 416f9651979451765f2416b02aa7a551c16f988771a246bac237ec5ffcae4960
4
+ data.tar.gz: 34dba50ec41aa4e1005dad53dabba0257e3d5708ae73d5b5576acb9f85352c29
5
5
  SHA512:
6
- metadata.gz: abd5e6f06d96a6b538ef319b26664d4da138385aa031309de8ed2d8c2ce662741c975e3092825abe7183c7180d78b287c4d0e190ba0e4f9cda61180af3fb903a
7
- data.tar.gz: fa7f4c9493eb5d6595e4adae661b9971e8657bf3f2a9dd988c96d8fef1823c077a4fe747c69478e162b342344bc4e383f4c58fd1e89bfc613efd3390df73012b
6
+ metadata.gz: b7b8a7b800088a0de131fcb04f2abc6405d3f114e6f32fb3701fa264e56cee42d32d6d1d511b3a436d7f5801d235dd5c875f42299f6efda07eb8a842babfee32
7
+ data.tar.gz: 6f32d610fea16c896d48a372795c0d1c1edaadb22d77d7be854e4a01efc46c7fe7402184520e3b944475fcd064168702969806128d414051dd8c62a8e4116c89
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.0.1
@@ -18,7 +18,7 @@ module RDF; class Literal
18
18
  # @see http://www.ietf.org/rfc/rfc2396.txt
19
19
  # @see http://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
@@ -13,7 +13,7 @@ module RDF; class Literal
13
13
  #
14
14
  # @see http://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
  ##
@@ -59,7 +59,7 @@ module RDF; class Literal
59
59
  #
60
60
  # @see http://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
data/lib/rdf/xsd/date.rb CHANGED
@@ -9,7 +9,7 @@ module RDF; class Literal
9
9
  #
10
10
  # @see http://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
@@ -22,7 +22,7 @@ module RDF; class Literal
22
22
  #
23
23
  # @see http://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
 
@@ -40,7 +40,7 @@ module RDF; class Literal
40
40
  #
41
41
  # @see http://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
 
@@ -58,7 +58,7 @@ module RDF; class Literal
58
58
  #
59
59
  # @see http://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
 
@@ -76,7 +76,7 @@ module RDF; class Literal
76
76
  #
77
77
  # @see http://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
 
@@ -93,7 +93,7 @@ module RDF; class Literal
93
93
  #
94
94
  # @see http://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
 
@@ -3,6 +3,6 @@ module RDF; class Literal
3
3
  # but implementations are identical in Ruby
4
4
  # @see http://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
@@ -7,7 +7,7 @@ module RDF; class Literal
7
7
  #
8
8
  # @see http://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)?)
@@ -204,7 +204,7 @@ module RDF; class Literal
204
204
  #
205
205
  # @see http://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)
@@ -230,7 +230,7 @@ module RDF; class Literal
230
230
  #
231
231
  # @see http://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)?)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-xsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-29 00:00:00.000000000 Z
12
+ date: 2018-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.7.3
155
+ rubygems_version: 2.7.6
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Extended XSD Datatypes for RDF.rb.