rsinger-rdfobjects 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rdf_objects/parsers.rb +3 -3
  2. metadata +1 -1
@@ -86,14 +86,14 @@ class NTriplesParser
86
86
  else
87
87
  @literal = true
88
88
  scanner.getch
89
- object = scanner.scan_until(/("\s?\.\n?$)|("@[A-z])|("\^\^)/)
89
+ object = scanner.scan_until(/("\s?\.\s*\n?$)|("@[A-z])|("\^\^)/)
90
90
  scanner.pos=(scanner.pos-2)
91
91
  object.sub!(/"..$/,'')
92
92
  if object.respond_to?(:force_encoding)
93
- object.force_encoding('utf-8')
93
+ object.force_encoding('utf-8').chomp!
94
94
  else
95
95
  uscan = UTF8Parser.new(object)
96
- object = uscan.parse_string
96
+ object = uscan.parse_string.chomp!
97
97
  end
98
98
  if scanner.match?(/@/)
99
99
  scanner.getch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsinger-rdfobjects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Singer