rdf-xsd 1.0.2.1 → 1.1.0.p0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/VERSION +1 -1
- data/lib/rdf/xsd/any_uri.rb +0 -3
- data/lib/rdf/xsd/binary.rb +1 -10
- data/lib/rdf/xsd/xml.rb +2 -2
- metadata +40 -22
- checksums.yaml +0 -15
data/README.md
CHANGED
@@ -22,9 +22,9 @@ 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/) (>= 1.
|
26
|
-
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.
|
27
|
-
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.5.
|
25
|
+
* [Ruby](http://ruby-lang.org/) (>= 1.9.2)
|
26
|
+
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.1)
|
27
|
+
* Soft dependency on [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.5.9)
|
28
28
|
* Soft dependency on [EquivalentXML](http://rubygems.org/gems/equivalent-xml) (>= 0.2.8)
|
29
29
|
* Soft dependency on [ActiveSupport](http://rubygems.org/gems/activesupport) (>= 3.0.0)
|
30
30
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.1.0.p0
|
data/lib/rdf/xsd/any_uri.rb
CHANGED
@@ -44,9 +44,6 @@ module RDF; class Literal
|
|
44
44
|
# Returns `true` if the value adheres to the defined grammar of the
|
45
45
|
# datatype.
|
46
46
|
#
|
47
|
-
# Note: depends on implementation of Base64.strict_decode64, which may not
|
48
|
-
# be implemented for Ruby 1.8.x.
|
49
|
-
#
|
50
47
|
# @return [Boolean]
|
51
48
|
def valid?
|
52
49
|
@object.validate! rescue false
|
data/lib/rdf/xsd/binary.rb
CHANGED
@@ -60,18 +60,9 @@ module RDF; class Literal
|
|
60
60
|
# Returns `true` if the value adheres to the defined grammar of the
|
61
61
|
# datatype.
|
62
62
|
#
|
63
|
-
# Note: depends on implementation of Base64.strict_decode64, which may not
|
64
|
-
# be implemented for Ruby 1.8.x.
|
65
|
-
#
|
66
63
|
# @return [Boolean]
|
67
64
|
def valid?
|
68
|
-
Base64.
|
69
|
-
Base64.strict_decode64(value.gsub(/\s+/m, '')) :
|
70
|
-
Base64.decode64(value.gsub(/\s+/m, ''))
|
71
|
-
true
|
72
|
-
rescue ArgumentError
|
73
|
-
STDERR.puts($!.inspect + ": #{value.inspect}")
|
74
|
-
false
|
65
|
+
Base64.strict_decode64(value.gsub(/\s+/m, ''))
|
75
66
|
end
|
76
67
|
end
|
77
68
|
end; end #RDF::Literal
|
data/lib/rdf/xsd/xml.rb
CHANGED
@@ -29,8 +29,8 @@ module RDF; class Literal
|
|
29
29
|
# @see http://www.w3.org/TR/xml-exc-c14n/
|
30
30
|
# @since 0.2.1
|
31
31
|
class XML < Literal
|
32
|
-
DATATYPE = RDF.XMLLiteral
|
33
|
-
GRAMMAR = nil
|
32
|
+
DATATYPE = RDF.XMLLiteral
|
33
|
+
GRAMMAR = nil
|
34
34
|
|
35
35
|
##
|
36
36
|
# @param [Object] value
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-xsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.p0
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Gregg
|
@@ -9,53 +10,60 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-01 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rdf
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
20
|
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
22
|
+
version: '1.1'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
28
|
- - ! '>='
|
26
29
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
30
|
+
version: '1.1'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: nokogiri
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
36
|
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.5.
|
38
|
+
version: 1.5.9
|
35
39
|
type: :runtime
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
44
|
- - ! '>='
|
40
45
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.5.
|
46
|
+
version: 1.5.9
|
42
47
|
- !ruby/object:Gem::Dependency
|
43
48
|
name: equivalent-xml
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
45
51
|
requirements:
|
46
52
|
- - ! '>='
|
47
53
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
54
|
+
version: 0.3.0
|
49
55
|
type: :development
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
60
|
- - ! '>='
|
54
61
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
62
|
+
version: 0.3.0
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
64
|
name: active_support
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
59
67
|
requirements:
|
60
68
|
- - ! '>='
|
61
69
|
- !ruby/object:Gem::Version
|
@@ -63,6 +71,7 @@ dependencies:
|
|
63
71
|
type: :development
|
64
72
|
prerelease: false
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
76
|
- - ! '>='
|
68
77
|
- !ruby/object:Gem::Version
|
@@ -70,59 +79,67 @@ dependencies:
|
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
80
|
name: i18n
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
73
83
|
requirements:
|
74
84
|
- - ! '>='
|
75
85
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.6.
|
86
|
+
version: 0.6.4
|
77
87
|
type: :development
|
78
88
|
prerelease: false
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
92
|
- - ! '>='
|
82
93
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.6.
|
94
|
+
version: 0.6.4
|
84
95
|
- !ruby/object:Gem::Dependency
|
85
96
|
name: rspec
|
86
97
|
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
87
99
|
requirements:
|
88
100
|
- - ! '>='
|
89
101
|
- !ruby/object:Gem::Version
|
90
|
-
version: 2.
|
102
|
+
version: 2.13.0
|
91
103
|
type: :development
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
94
107
|
requirements:
|
95
108
|
- - ! '>='
|
96
109
|
- !ruby/object:Gem::Version
|
97
|
-
version: 2.
|
110
|
+
version: 2.13.0
|
98
111
|
- !ruby/object:Gem::Dependency
|
99
112
|
name: rdf-spec
|
100
113
|
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
101
115
|
requirements:
|
102
116
|
- - ! '>='
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
118
|
+
version: '1.1'
|
105
119
|
type: :development
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
108
123
|
requirements:
|
109
124
|
- - ! '>='
|
110
125
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
126
|
+
version: '1.1'
|
112
127
|
- !ruby/object:Gem::Dependency
|
113
128
|
name: yard
|
114
129
|
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
115
131
|
requirements:
|
116
132
|
- - ! '>='
|
117
133
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
134
|
+
version: 0.8.5
|
119
135
|
type: :development
|
120
136
|
prerelease: false
|
121
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
122
139
|
requirements:
|
123
140
|
- - ! '>='
|
124
141
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
142
|
+
version: 0.8.5
|
126
143
|
description: Adds RDF::Literal subclasses for extended XSD datatypes.
|
127
144
|
email: public-rdf-ruby@w3.org
|
128
145
|
executables: []
|
@@ -146,26 +163,27 @@ files:
|
|
146
163
|
homepage: http://ruby-rdf.github.com/rdf-xsd
|
147
164
|
licenses:
|
148
165
|
- Public Domain
|
149
|
-
metadata: {}
|
150
166
|
post_install_message:
|
151
167
|
rdoc_options: []
|
152
168
|
require_paths:
|
153
169
|
- lib
|
154
170
|
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
155
172
|
requirements:
|
156
173
|
- - ! '>='
|
157
174
|
- !ruby/object:Gem::Version
|
158
|
-
version: 1.
|
175
|
+
version: 1.9.2
|
159
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
160
178
|
requirements:
|
161
|
-
- - ! '
|
179
|
+
- - ! '>'
|
162
180
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
181
|
+
version: 1.3.1
|
164
182
|
requirements: []
|
165
183
|
rubyforge_project: rdf-xsd
|
166
|
-
rubygems_version:
|
184
|
+
rubygems_version: 1.8.25
|
167
185
|
signing_key:
|
168
|
-
specification_version:
|
186
|
+
specification_version: 3
|
169
187
|
summary: Extended XSD Datatypes for RDF.rb.
|
170
188
|
test_files: []
|
171
189
|
has_rdoc: false
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NmJlYmY4Mjc4MjFiNjBhZTFjODA5ODBhYmY4ZmI3OGU5MDEyYzBiMg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZTIxYzYyNjZlM2U1MzkwZDA3Y2IxZjZlNjNhMTcwODMwZWUxODBhNw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZTQyYTMzMDExNmNiMTZjYzQ4ZWQ4MTIyODQyYzQ4YWM0MDVmMWVmMWIwOWQ3
|
10
|
-
ZmVkYjYzNzIyZTU1ZmNlNDkzMGI2Y2QyZDdhMGE2ODgxMTc4ZmEzNzk3Yjc2
|
11
|
-
NmQ2MTg3YzgwNTZjOTNkZDNkOGY3YzRjZWZlZDNkMjBmZmNkNzE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZmVjZWE2NDQzYjQyMTVmNTE1ZDRiMzNhZTNhZDMwODkzYTUxYWU2MmZhZjU2
|
14
|
-
YzE4NjA1MjMyOTkzN2YyZTdiYWQwZGNiOTQ1MjE1ODNlOWNjZTUyNjMzNWMz
|
15
|
-
MDA5NTNmMWE3YTlkNmM3MzA3ZDNjZWZhNGRkODhiZTViNTM1YWU=
|