manalang-bdoc 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.2 2009-06-08
2
+
3
+ * 1 new feature from csexton -- Thanks!
4
+ * Ability to specify an output directory
5
+
1
6
  == 0.2.1 2009-04-06
2
7
 
3
8
  * 2 bug fixes from vesan
data/README.rdoc CHANGED
@@ -10,6 +10,8 @@ Hanna[http://github.com/mislav/hanna/tree/master] (a beautiful rdoc theme).
10
10
 
11
11
  Check out the demo http://manalang.com/bdoc
12
12
 
13
+ http://img.skitch.com/20090406-8bhnftitwtrpd5xeu4acexerm6.png
14
+
13
15
  == Install
14
16
 
15
17
  [sudo] gem install manalang-bdoc
@@ -21,6 +23,12 @@ Check out the demo http://manalang.com/bdoc
21
23
  That's it! This will create an index of all your local gems then launch your
22
24
  default browser. Enjoy!
23
25
 
26
+ === Specify output directory
27
+
28
+ Optionally you can specify the output directory on the command line:
29
+
30
+ bdoc /path/to/bdoc
31
+
24
32
  == LICENSE:
25
33
 
26
34
  (The MIT License)
data/lib/bdoc.rb CHANGED
@@ -8,7 +8,7 @@ require 'launchy'
8
8
  require 'json'
9
9
 
10
10
  module Bdoc
11
- VERSION = '0.2.1'
11
+ VERSION = '0.2.2'
12
12
 
13
13
  class << self
14
14
  attr_accessor :output_dir
@@ -59,6 +59,6 @@ module Bdoc
59
59
  end
60
60
  end
61
61
 
62
- self.output_dir = File.join(Dir.tmpdir,"bdoc")
62
+ self.output_dir = ARGV[0] || File.join(Dir.tmpdir,"bdoc")
63
63
  self.output_index = File.join(@output_dir,"index.html")
64
64
  end
data/templates/index.html CHANGED
@@ -155,7 +155,7 @@ body { background: #aaa }
155
155
  <% if gem[:versions].last[:rdoc_index] %>
156
156
  <a href="<%= gem[:versions].last[:rdoc_index] %>" class="gemname" title="<%= ERB::Util.h gem[:description] %>" rel="<%= gem[:homepage] %>"><%= gem[:name] %></a>
157
157
  <% else %>
158
- <span class="gemname quiet" title="<%= gem[:description] %>">*<%= gem[:name] %></span>
158
+ <span class="gemname quiet" title="<%= ERB::Util.h gem[:description] %>">*<%= gem[:name] %></span>
159
159
  <% end %>
160
160
  <span class="version hide"><%= gem[:versions].last[:version] %></span>
161
161
  </span>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manalang-bdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Manalang