bdoc 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.rdoc +2 -0
- data/lib/bdoc.rb +8 -1
- metadata +4 -4
data/History.txt
CHANGED
data/README.rdoc
CHANGED
data/lib/bdoc.rb
CHANGED
@@ -7,8 +7,14 @@ require 'tmpdir'
|
|
7
7
|
require 'launchy'
|
8
8
|
require 'multi_json'
|
9
9
|
|
10
|
+
if VERSION == /^1.9/
|
11
|
+
Encoding.default_internal = 'UTF-8'
|
12
|
+
else
|
13
|
+
$KCODE = "u"
|
14
|
+
end
|
15
|
+
|
10
16
|
module Bdoc
|
11
|
-
VERSION = '0.3.
|
17
|
+
VERSION = '0.3.3'
|
12
18
|
|
13
19
|
class << self
|
14
20
|
attr_accessor :output_dir
|
@@ -47,6 +53,7 @@ module Bdoc
|
|
47
53
|
def generate_index
|
48
54
|
@gems = gems_with_doc_index
|
49
55
|
@gems_json = MultiJson.encode(@gems)
|
56
|
+
|
50
57
|
index = ERB.new(File.read(File.join(File.dirname(__FILE__), '..', "templates","bdoc.html"))).result(binding)
|
51
58
|
Dir.mkdir(output_dir) unless File.exists?(output_dir)
|
52
59
|
File.open(output_index,"w") {|f| f.write(index)}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rich Manalang
|
@@ -97,7 +97,7 @@ files:
|
|
97
97
|
- test/test_helper.rb
|
98
98
|
- .gemtest
|
99
99
|
has_rdoc: true
|
100
|
-
homepage: http://
|
100
|
+
homepage: http://github.com/manalang/bdoc
|
101
101
|
licenses: []
|
102
102
|
|
103
103
|
post_install_message: PostInstall.txt
|