spreadskos 0.0.3 → 0.0.4

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/spreadskos.rb +4 -5
  2. metadata +1 -1
data/lib/spreadskos.rb CHANGED
@@ -40,7 +40,8 @@ class Spreadskos
40
40
  # Load SKOS itself to be able to render labels etc later.
41
41
  def setup_skos
42
42
 
43
- skosfile = File.dirname(__FILE__) + ::File::SEPARATOR + "skos.rdf"
43
+ #skosfile = File.dirname(__FILE__) + ::File::SEPARATOR + "skos.rdf"
44
+ skosfile = File.expand_path("skos.rdf", File.dirname(__FILE__))
44
45
  @log.info("Load SKOS itself to be able to render labels etc later. File: " + skosfile)
45
46
 
46
47
  RDF::Reader.open(skosfile) do |reader|
@@ -98,7 +99,7 @@ class Spreadskos
98
99
  when "Contributors:"
99
100
  contributors = info_sheet.cell(row_no, 2).strip.split(",")
100
101
  else
101
- puts "Unknown property: " + info_sheet.cell(row_no, 1)
102
+ @log.info("Unknown property: " + info_sheet.cell(row_no, 1))
102
103
  end
103
104
  end
104
105
 
@@ -258,9 +259,7 @@ class Spreadskos
258
259
 
259
260
  def write_graph(filename="result.rdf", format=:rdfxml)
260
261
 
261
- puts @graph.dump(:rdfxml)
262
-
263
- File.open(filename, 'w') { |file|
262
+ File.open(filename, 'w:UTF-8') { |file|
264
263
  file.write(@graph.dump(format))
265
264
  }
266
265
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadskos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: