jsdoc-toolkit 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jsdoc-toolkit}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ggironda"]
12
- s.date = %q{2009-10-06}
12
+ s.date = %q{2009-10-08}
13
13
  s.description = %q{RubyGem packaged version of jsdoc-toolkit with extra rake tasks for automating doc generation}
14
14
  s.email = %q{gabriel.gironda@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -12,18 +12,18 @@ module JsDocToolkit
12
12
  end
13
13
 
14
14
  def jsdoc_dir=(path)
15
- @jsdoc_dir = Pathname(caller.first.sub(/:\d+$/, "")).expand_path.parent + path
15
+ @jsdoc_dir = Pathname(path)
16
16
  end
17
17
 
18
18
  def jsdoc_files=(path)
19
- @jsdoc_files = Pathname(caller.first.sub(/:\d+$/, "")).expand_path.parent + path
19
+ @jsdoc_files = Pathname(path)
20
20
  end
21
21
 
22
22
  private
23
23
 
24
24
  def build
25
25
  generator = JsDocToolkit::Generator.new
26
- generator.build(:src_dir => @jsdoc_files.expand_path.to_s, :doc_dir => @jsdoc_dir.expand_path.to_s)
26
+ generator.build(:src_dir => @jsdoc_files.to_s, :doc_dir => @jsdoc_dir.to_s)
27
27
  end
28
28
 
29
29
  end # DocTask
@@ -3,7 +3,8 @@ require 'pathname'
3
3
 
4
4
  module JsDocToolkit
5
5
  class Generator
6
- DefaultOptions = {:recurse => "-r", :all => "-a", :template => %Q[-t=#{JsDocTemplatePath + "jsdoc"}]}
6
+ DefaultOptions = {:recurse => "-r", :all => "-a", :template => %Q[-t=#{JsDocTemplatePath + "jsdoc"}],
7
+ :verbose => "-v", :unique => "-u"}
7
8
 
8
9
  def build(options)
9
10
  raise RuntimeError, "java was not found in your PATH." if `which java 2>/dev/null`.strip.empty?
@@ -23,7 +24,7 @@ module JsDocToolkit
23
24
  end
24
25
 
25
26
  def merge_defaults_with_src(src_dir)
26
- DefaultOptions.values + [src_dir.expand_path.to_s]
27
+ DefaultOptions.values + [src_dir.to_s]
27
28
  end
28
29
 
29
30
  end # Generator
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsdoc-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ggironda
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 -05:00
12
+ date: 2009-10-08 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency