bdoc 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/README.rdoc +2 -0
  3. data/lib/bdoc.rb +8 -1
  4. metadata +4 -4
@@ -1,3 +1,8 @@
1
+ == 0.3.3 2011-03-14
2
+
3
+ * 1 bug fix
4
+ * explicitely set encoding
5
+
1
6
  == 0.3.2 2011-03-14
2
7
 
3
8
  * 1 bug fix
@@ -1,5 +1,7 @@
1
1
  = Bdoc
2
2
 
3
+ http://github.com/manalang/bdoc
4
+
3
5
  http://img.skitch.com/20110314-df4nt8pyuw4ddnjtc1fast9nds.png
4
6
 
5
7
  == Description
@@ -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.2'
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
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://img.skitch.com/20110314-df4nt8pyuw4ddnjtc1fast9nds.png
100
+ homepage: http://github.com/manalang/bdoc
101
101
  licenses: []
102
102
 
103
103
  post_install_message: PostInstall.txt