rdf-xsd 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf/xsd/binary.rb +10 -2
  4. metadata +41 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 267785fb62062f1830fb116794535556e6382013
4
- data.tar.gz: fd11099e344fad29270e428a44ace59d6944003a
3
+ metadata.gz: 2e3c464c8933a048e47f4a0ced46793d44720042
4
+ data.tar.gz: 32bf96b6820fbf98ab97454f88cfc42ec88df117
5
5
  SHA512:
6
- metadata.gz: 16c17ee64f55a696533012fd93bf0c4a77ddfb36e4b3abb09e654e838720b3b13d5862f987caca9197fd0385ec0cf65855d79469cad1d9926c5e0155549999b1
7
- data.tar.gz: e380b359a3b440cf0a5ebddae0b77e3b1b52c07d311c5bdc4004759d595855f183a8e5a34de2b0c4197dd3a2e46ffb52e140336f77ac6790f2cc58e0cd65da32
6
+ metadata.gz: 4e16fa33f4817e7345d0f0d259fcb484f2b272c86d6b4d14386ed66281089f239d070e585c6d0f261e966b1feb1b1e2e1fc33bbed063845ef0e52fea6499f6c9
7
+ data.tar.gz: 7a0731f3dd7720ad95312efbeb096e0b236116ef761158225031a197213b8795833b8593dfe07a02fbe6ce0a13a91407136da89e40540d3326e27fef4a971e8a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
@@ -71,7 +71,15 @@ module RDF; class Literal
71
71
  @object = value.is_a?(String) ? ::Base64.decode64(value) : value
72
72
  canonicalize! unless value.is_a?(String)
73
73
  end
74
-
74
+
75
+ ##
76
+ # Returns the value as a string.
77
+ #
78
+ # @return [String]
79
+ def to_s
80
+ @string || @object.to_s
81
+ end
82
+
75
83
  ##
76
84
  # Converts this literal into its canonical lexical representation.
77
85
  #
@@ -88,7 +96,7 @@ module RDF; class Literal
88
96
  #
89
97
  # @return [Boolean]
90
98
  def valid?
91
- Base64.strict_decode64(value.gsub(/\s+/m, ''))
99
+ !!Base64.strict_decode64(value.gsub(/\s+/m, ''))
92
100
  rescue ArgumentError
93
101
  false
94
102
  end
metadata CHANGED
@@ -1,118 +1,118 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-xsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
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: 2015-07-09 00:00:00.000000000 Z
12
+ date: 2015-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: rdf
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ~>
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.1'
20
- - - '>='
21
+ - - ">="
21
22
  - !ruby/object:Gem::Version
22
23
  version: 1.1.9
23
- name: rdf
24
- prerelease: false
25
24
  type: :runtime
25
+ prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ~>
28
+ - - "~>"
29
29
  - !ruby/object:Gem::Version
30
30
  version: '1.1'
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.9
34
34
  - !ruby/object:Gem::Dependency
35
+ name: activesupport
35
36
  requirement: !ruby/object:Gem::Requirement
36
37
  requirements:
37
- - - ~>
38
+ - - "~>"
38
39
  - !ruby/object:Gem::Version
39
40
  version: '4.1'
40
- name: activesupport
41
- prerelease: false
42
41
  type: :development
42
+ prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.1'
48
48
  - !ruby/object:Gem::Dependency
49
+ name: i18n
49
50
  requirement: !ruby/object:Gem::Requirement
50
51
  requirements:
51
- - - ~>
52
+ - - "~>"
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0.6'
54
- name: i18n
55
- prerelease: false
56
55
  type: :development
56
+ prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.6'
62
62
  - !ruby/object:Gem::Dependency
63
+ name: rspec
63
64
  requirement: !ruby/object:Gem::Requirement
64
65
  requirements:
65
- - - ~>
66
+ - - "~>"
66
67
  - !ruby/object:Gem::Version
67
68
  version: '3.0'
68
- name: rspec
69
- prerelease: false
70
69
  type: :development
70
+ prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
76
76
  - !ruby/object:Gem::Dependency
77
+ name: rspec-its
77
78
  requirement: !ruby/object:Gem::Requirement
78
79
  requirements:
79
- - - ~>
80
+ - - "~>"
80
81
  - !ruby/object:Gem::Version
81
82
  version: '1.0'
82
- name: rspec-its
83
- prerelease: false
84
83
  type: :development
84
+ prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
90
  - !ruby/object:Gem::Dependency
91
+ name: rdf-spec
91
92
  requirement: !ruby/object:Gem::Requirement
92
93
  requirements:
93
- - - ~>
94
+ - - "~>"
94
95
  - !ruby/object:Gem::Version
95
96
  version: '1.1'
96
- name: rdf-spec
97
- prerelease: false
98
97
  type: :development
98
+ prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.1'
104
104
  - !ruby/object:Gem::Dependency
105
+ name: yard
105
106
  requirement: !ruby/object:Gem::Requirement
106
107
  requirements:
107
- - - ~>
108
+ - - "~>"
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0.8'
110
- name: yard
111
- prerelease: false
112
111
  type: :development
112
+ prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0.8'
118
118
  description: Adds RDF::Literal subclasses for extended XSD datatypes.
@@ -139,26 +139,27 @@ homepage: http://ruby-rdf.github.com/rdf-xsd
139
139
  licenses:
140
140
  - Public Domain
141
141
  metadata: {}
142
- post_install_message: "\n For best results, use nokogiri and equivalent-xml gems\
143
- \ as well.\n These are not hard requirements to preserve pure-ruby dependencies.\n\
144
- \ "
142
+ post_install_message: |2
143
+
144
+ For best results, use nokogiri and equivalent-xml gems as well.
145
+ These are not hard requirements to preserve pure-ruby dependencies.
145
146
  rdoc_options: []
146
147
  require_paths:
147
148
  - lib
148
149
  required_ruby_version: !ruby/object:Gem::Requirement
149
150
  requirements:
150
- - - '>='
151
+ - - ">="
151
152
  - !ruby/object:Gem::Version
152
153
  version: 1.9.2
153
154
  required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  requirements:
155
- - - '>='
156
+ - - ">="
156
157
  - !ruby/object:Gem::Version
157
158
  version: '0'
158
159
  requirements: []
159
160
  rubyforge_project: rdf-xsd
160
- rubygems_version: 2.4.5
161
- signing_key:
161
+ rubygems_version: 2.4.5.1
162
+ signing_key:
162
163
  specification_version: 4
163
164
  summary: Extended XSD Datatypes for RDF.rb.
164
165
  test_files: []