sparql-doc 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -134,9 +134,9 @@ Here's [the example output](http://ldodds.github.com/sparql-doc/) using the exam
134
134
 
135
135
  ## Installation
136
136
 
137
- ### Ruby Gem
137
+ `sparql-doc` is available as a gem:
138
138
 
139
- Once RubyGems is out of read-only mode, I can release this as a gem until then use the manual instructions.
139
+ [sudo] gem install sparql-doc
140
140
 
141
141
  ### Manual Install
142
142
 
@@ -186,4 +186,4 @@ See the [issue list](https://github.com/ldodds/sparql-doc/issues). Got a suggest
186
186
 
187
187
  This work is hereby released into the Public Domain.
188
188
 
189
- To view a copy of the public domain dedication, visit http://creativecommons.org/licenses/publicdomain or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
189
+ To view a copy of the public domain dedication, visit http://creativecommons.org/licenses/publicdomain or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
@@ -45,6 +45,9 @@ module SparqlDoc
45
45
 
46
46
  def copy_assets(asset_dir=@asset_dir)
47
47
  $stderr.puts("Copying assets");
48
+ if !File.exists?(@output_dir)
49
+ FileUtils.mkdir_p(@output_dir)
50
+ end
48
51
  Dir.new(asset_dir).each() do |file|
49
52
  if file != "." and file != ".."
50
53
  FileUtils.cp( File.join(asset_dir, file),
@@ -65,8 +68,7 @@ module SparqlDoc
65
68
  File.open(file, "w") do |f|
66
69
  f.puts html
67
70
  end
68
-
69
- end
71
+ end if @package["extra-files"]
70
72
  end
71
73
 
72
74
  def get_overview()
@@ -1,5 +1,6 @@
1
1
  <html>
2
2
  <head>
3
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
3
4
  <title><%= title %></title>
4
5
  <link href="bootstrap.min.css" rel="stylesheet">
5
6
  <link rel="stylesheet" href="codemirror.css">
@@ -20,8 +20,7 @@ class GeneratorTest < Test::Unit::TestCase
20
20
 
21
21
  File.open("/in/test.rq", "w") do |f|
22
22
  f.puts "DESCRIBE ?x"
23
- end
24
- FileUtils.mkdir_p("/out")
23
+ end
25
24
  end
26
25
 
27
26
  def teardown
@@ -34,7 +33,7 @@ class GeneratorTest < Test::Unit::TestCase
34
33
  assert_equal( true, File.exists?("/out/test.js") )
35
34
  assert_equal( true, File.exists?("/out/test.css") )
36
35
  end
37
-
36
+
38
37
  def test_parse_queries
39
38
  generator = SparqlDoc::Generator.new("/in", "/out", "/lib/views", "/lib/assets")
40
39
  generator.parse_queries
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparql-doc
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-03 00:00:00.000000000 Z
12
+ date: 2013-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json