pivotal_doc 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/pivotal_doc/generators/base.rb +1 -0
- data/lib/pivotal_doc/generators/html.rb +1 -1
- data/pivotal_doc.gemspec +1 -1
- data/spec/lib/generators/html_spec.rb +2 -2
- data/templates/fancy.haml +8 -6
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/pivotal_doc.gemspec
CHANGED
@@ -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= {
|
26
|
+
options= {'template_name'=>'fancy.html'}
|
27
27
|
html= PivotalDoc::Generators::HTML.new(@release, options)
|
28
|
-
html.template_name.should eql(options[
|
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 => "
|
7
|
-
%script{:type => "text/javascript", :src => "
|
8
|
-
|
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
|
-
.
|
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
|
-
.
|
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
|
-
.
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Linquist
|