rdf 0.3.5.1 → 0.3.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rdf/reader.rb +10 -3
  3. metadata +31 -11
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5.1
1
+ 0.3.5.2
@@ -389,7 +389,7 @@ module RDF
389
389
  # @return [void]
390
390
  # @raise [RDF::ReaderError]
391
391
  def fail_subject
392
- raise RDF::ReaderError, "expected subject in #{@input.inspect} line #{lineno}"
392
+ raise RDF::ReaderError, "expected subject in line #{lineno}: #{current_line.inspect}"
393
393
  end
394
394
 
395
395
  ##
@@ -398,7 +398,7 @@ module RDF
398
398
  # @return [void]
399
399
  # @raise [RDF::ReaderError]
400
400
  def fail_predicate
401
- raise RDF::ReaderError, "expected predicate in #{@input.inspect} line #{lineno}"
401
+ raise RDF::ReaderError, "expected predicate in line #{lineno}: #{current_line.inspect}"
402
402
  end
403
403
 
404
404
  ##
@@ -407,7 +407,7 @@ module RDF
407
407
  # @return [void]
408
408
  # @raise [RDF::ReaderError]
409
409
  def fail_object
410
- raise RDF::ReaderError, "expected object in #{@input.inspect} line #{lineno}"
410
+ raise RDF::ReaderError, "expected object in line #{lineno}: #{current_line.inspect}"
411
411
  end
412
412
 
413
413
  ##
@@ -465,6 +465,13 @@ module RDF
465
465
  @input.lineno
466
466
  end
467
467
 
468
+ ##
469
+ # @private
470
+ # @return [String] The most recently read line of the input
471
+ def current_line
472
+ @line
473
+ end
474
+
468
475
  ##
469
476
  # @return [String]
470
477
  def readline
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5.1
4
+ version: 0.3.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-14 00:00:00.000000000Z
14
+ date: 2012-04-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
18
- requirement: &70288181625060 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,15 @@ dependencies:
23
23
  version: 2.2.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70288181625060
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: 2.2.6
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: yard
29
- requirement: &70288181624500 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
30
35
  none: false
31
36
  requirements:
32
37
  - - ! '>='
@@ -34,10 +39,15 @@ dependencies:
34
39
  version: 0.7.5
35
40
  type: :development
36
41
  prerelease: false
37
- version_requirements: *70288181624500
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.7.5
38
48
  - !ruby/object:Gem::Dependency
39
49
  name: rdf-spec
40
- requirement: &70288181623980 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
41
51
  none: false
42
52
  requirements:
43
53
  - - ~>
@@ -45,10 +55,15 @@ dependencies:
45
55
  version: 0.3.5
46
56
  type: :development
47
57
  prerelease: false
48
- version_requirements: *70288181623980
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: 0.3.5
49
64
  - !ruby/object:Gem::Dependency
50
65
  name: rspec
51
- requirement: &70288181623480 !ruby/object:Gem::Requirement
66
+ requirement: !ruby/object:Gem::Requirement
52
67
  none: false
53
68
  requirements:
54
69
  - - ! '>='
@@ -56,7 +71,12 @@ dependencies:
56
71
  version: 2.8.0
57
72
  type: :development
58
73
  prerelease: false
59
- version_requirements: *70288181623480
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: 2.8.0
60
80
  description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
61
81
  (RDF) data.
62
82
  email: public-rdf-ruby@w3.org
@@ -165,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
185
  version: '0'
166
186
  requirements: []
167
187
  rubyforge_project: rdf
168
- rubygems_version: 1.8.17
188
+ rubygems_version: 1.8.19
169
189
  signing_key:
170
190
  specification_version: 3
171
191
  summary: A Ruby library for working with Resource Description Framework (RDF) data.