manalang-bdoc 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/bdoc.rb +4 -3
- metadata +1 -1
data/History.txt
CHANGED
data/lib/bdoc.rb
CHANGED
@@ -8,7 +8,7 @@ require 'launchy'
|
|
8
8
|
require 'json/pure'
|
9
9
|
|
10
10
|
module Bdoc
|
11
|
-
VERSION = '0.1.
|
11
|
+
VERSION = '0.1.9'
|
12
12
|
|
13
13
|
class << self
|
14
14
|
attr_accessor :output_dir
|
@@ -49,8 +49,9 @@ module Bdoc
|
|
49
49
|
index = ERB.new(File.read(File.join(File.dirname(__FILE__), '..', "templates","index.html"))).result(binding)
|
50
50
|
Dir.mkdir(output_dir) unless File.exists?(output_dir)
|
51
51
|
File.open(output_index,"w") {|f| f.write(index)}
|
52
|
-
FileUtils.cp
|
53
|
-
FileUtils.cp
|
52
|
+
FileUtils.cp File.join(File.dirname(__FILE__), '..', "templates","jquery.js"), output_dir
|
53
|
+
FileUtils.cp File.join(File.dirname(__FILE__), '..', "templates","screen.css"), output_dir
|
54
|
+
FileUtils.cp File.join(File.dirname(__FILE__), '..', "templates","bdoc.css"), output_dir
|
54
55
|
end
|
55
56
|
|
56
57
|
def open
|