pivotal_doc 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -27,6 +27,7 @@ module PivotalDoc
27
27
 
28
28
  def render_doc(output='')
29
29
  begin
30
+ # No permissions throw exception about output_path
30
31
  FileUtils.mkdir_p(output_path)
31
32
  f= File.open(self.output_file, 'w+')
32
33
  f.write(output)
@@ -2,7 +2,7 @@ module PivotalDoc
2
2
  module Generators
3
3
  class HTML < Base
4
4
  def template_name
5
- @options[:template_name] || 'html_gen.haml'
5
+ @options['template_name'] || 'html_gen.haml'
6
6
  end
7
7
  def output_ext; '.html' end
8
8
  def render_doc
data/pivotal_doc.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pivotal_doc}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Linquist"]
@@ -23,9 +23,9 @@ describe PivotalDoc::Generators::HTML do
23
23
  end
24
24
 
25
25
  it "should use the template_name if specified" do
26
- options= {:template_name=>'fancy.html'}
26
+ options= {'template_name'=>'fancy.html'}
27
27
  html= PivotalDoc::Generators::HTML.new(@release, options)
28
- html.template_name.should eql(options[:template_name])
28
+ html.template_name.should eql(options['template_name'])
29
29
  end
30
30
 
31
31
  it "should know its template name" do
data/templates/fancy.haml CHANGED
@@ -3,9 +3,11 @@
3
3
  %head
4
4
  %meta{'http-equiv' => 'Content-Type', :content => 'text/html;charset=utf-8'}
5
5
  %title= release.name
6
- %script{:type => "text/javascript", :src => "../../assets/js/jquery-1.4.2.min.js"}
7
- %script{:type => "text/javascript", :src => "../../assets/js/jquery-ui-1.8.5.custom.min.js"}
8
- %link{:rel=>"stylesheet", :href=>"../../assets/css/ui-lightness/jquery-ui-1.8.5.custom.css"}
6
+ %script{:type => "text/javascript", :src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"}
7
+ %script{:type => "text/javascript", :src => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"}
8
+
9
+ / %script{:type => "text/javascript", :src => "../../assets/js/jquery-ui-1.8.5.custom.min.js"}
10
+ / %link{:rel=>"stylesheet", :href=>"../../assets/css/ui-lightness/jquery-ui-1.8.5.custom.css"}
9
11
  %style{:type => "text/css", :media => "screen"}
10
12
  :plain
11
13
  p,div,h1,h2,h3,h4,h5,h6,span,a {font-family: Arial}
@@ -36,7 +38,7 @@
36
38
  #accordian
37
39
  %h3
38
40
  %a{:href=>'#'} Accepted Stories
39
- .accodian_container
41
+ .accordian_container
40
42
  - release.stories.each do |story|
41
43
  .item
42
44
  %h4= "Story ##{story.id} - #{story.name}"
@@ -49,7 +51,7 @@
49
51
 
50
52
  %h3
51
53
  %a{:href=>'#'} Bug Fixes
52
- .accodian_container
54
+ .accordian_container
53
55
  - release.bugs.each do |bug|
54
56
  .item
55
57
  %h4= "Bug ##{bug.id} - #{bug.name}"
@@ -62,7 +64,7 @@
62
64
 
63
65
  %h3
64
66
  %a{:href=>'#'} Miscellaneous Chores
65
- .accodian_container
67
+ .accordian_container
66
68
  - release.chores.each do |chore|
67
69
  .item
68
70
  %h4= "Chore ##{chore.id} - #{chore.name}"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal_doc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Linquist