pivotal_to_pdf 0.5.1 → 0.5.2
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/7515549.pdf +0 -0
- data/CHANGELOG +1 -0
- data/Manifest +2 -1
- data/lib/pivotal_to_pdf/pdf_writer.rb +2 -0
- data/lib/pivotal_to_pdf/story.rb +4 -0
- data/pivotal_to_pdf.gemspec +3 -3
- data/spec/story_spec.rb +31 -0
- metadata +6 -4
data/7515549.pdf
ADDED
Binary file
|
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
7515549.pdf
|
1
2
|
CHANGELOG
|
2
3
|
Gemfile
|
3
4
|
Gemfile.lock
|
@@ -10,7 +11,7 @@ lib/pivotal_to_pdf/iteration.rb
|
|
10
11
|
lib/pivotal_to_pdf/pdf_writer.rb
|
11
12
|
lib/pivotal_to_pdf/pivotal.rb
|
12
13
|
lib/pivotal_to_pdf/story.rb
|
13
|
-
pivotal_to_pdf.gemspec
|
14
14
|
spec/pivotal_to_pdf_bin_spec.rb
|
15
15
|
spec/spec_helper.rb
|
16
|
+
spec/story_spec.rb
|
16
17
|
tasks/spec.rb
|
@@ -29,6 +29,8 @@ class PdfWriter
|
|
29
29
|
# --- Write content
|
30
30
|
pdf.bounding_box [pdf.bounds.left+padding, pdf.bounds.top-padding], :width => width do
|
31
31
|
pdf.text "#{story.id} - #{story.name}", :size => 14
|
32
|
+
pdf.fill_color "52D017"
|
33
|
+
pdf.text story.label_text, :size => 8
|
32
34
|
pdf.text "\n", :size => 14
|
33
35
|
pdf.fill_color "444444"
|
34
36
|
pdf.text story.description || "", :size => 10
|
data/lib/pivotal_to_pdf/story.rb
CHANGED
data/pivotal_to_pdf.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{pivotal_to_pdf}
|
5
|
-
s.version = "0.5.
|
5
|
+
s.version = "0.5.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Yi Wen"]
|
9
|
-
s.date = %q{2010-12-
|
9
|
+
s.date = %q{2010-12-19}
|
10
10
|
s.default_executable = %q{pivotal_to_pdf}
|
11
11
|
s.description = %q{Convert Pivotal Tracker Stories to 4x6 PDF for printing so that you can stick the card to your story board}
|
12
12
|
s.email = %q{hayafirst@gmail.com}
|
13
13
|
s.executables = ["pivotal_to_pdf"]
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG", "README.md", "bin/pivotal_to_pdf", "lib/pivotal_to_pdf.rb", "lib/pivotal_to_pdf/iteration.rb", "lib/pivotal_to_pdf/pdf_writer.rb", "lib/pivotal_to_pdf/pivotal.rb", "lib/pivotal_to_pdf/story.rb", "tasks/spec.rb"]
|
15
|
-
s.files = ["CHANGELOG", "Gemfile", "Gemfile.lock", "Manifest", "README.md", "Rakefile", "bin/pivotal_to_pdf", "lib/pivotal_to_pdf.rb", "lib/pivotal_to_pdf/iteration.rb", "lib/pivotal_to_pdf/pdf_writer.rb", "lib/pivotal_to_pdf/pivotal.rb", "lib/pivotal_to_pdf/story.rb", "
|
15
|
+
s.files = ["7515549.pdf", "CHANGELOG", "Gemfile", "Gemfile.lock", "Manifest", "README.md", "Rakefile", "bin/pivotal_to_pdf", "lib/pivotal_to_pdf.rb", "lib/pivotal_to_pdf/iteration.rb", "lib/pivotal_to_pdf/pdf_writer.rb", "lib/pivotal_to_pdf/pivotal.rb", "lib/pivotal_to_pdf/story.rb", "spec/pivotal_to_pdf_bin_spec.rb", "spec/spec_helper.rb", "spec/story_spec.rb", "tasks/spec.rb", "pivotal_to_pdf.gemspec"]
|
16
16
|
s.homepage = %q{https://github.com/ywen/pivotal_to_pdf}
|
17
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pivotal_to_pdf", "--main", "README.md"]
|
18
18
|
s.require_paths = ["lib"]
|
data/spec/story_spec.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
2
|
+
|
3
|
+
describe Story do
|
4
|
+
let(:story){Story.new :labels => []}
|
5
|
+
describe "when asked for label text" do
|
6
|
+
describe "and there is no label" do
|
7
|
+
it "should return blank string" do
|
8
|
+
story = Story.new
|
9
|
+
story.label_text.should == ""
|
10
|
+
end
|
11
|
+
end
|
12
|
+
describe "and labels is empty" do
|
13
|
+
it "should return blank string" do
|
14
|
+
story.label_text.should == ""
|
15
|
+
end
|
16
|
+
end
|
17
|
+
describe "and labels is nil" do
|
18
|
+
it "should return blank string" do
|
19
|
+
story.labels = nil
|
20
|
+
story.label_text.should == ""
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "and when there are less than 3 labels" do
|
25
|
+
it "should return them in a nice format" do
|
26
|
+
story.labels="test1, test2"
|
27
|
+
story.label_text.should == "test1, test2"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Yi Wen
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-19 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -86,6 +86,7 @@ extra_rdoc_files:
|
|
86
86
|
- lib/pivotal_to_pdf/story.rb
|
87
87
|
- tasks/spec.rb
|
88
88
|
files:
|
89
|
+
- 7515549.pdf
|
89
90
|
- CHANGELOG
|
90
91
|
- Gemfile
|
91
92
|
- Gemfile.lock
|
@@ -98,10 +99,11 @@ files:
|
|
98
99
|
- lib/pivotal_to_pdf/pdf_writer.rb
|
99
100
|
- lib/pivotal_to_pdf/pivotal.rb
|
100
101
|
- lib/pivotal_to_pdf/story.rb
|
101
|
-
- pivotal_to_pdf.gemspec
|
102
102
|
- spec/pivotal_to_pdf_bin_spec.rb
|
103
103
|
- spec/spec_helper.rb
|
104
|
+
- spec/story_spec.rb
|
104
105
|
- tasks/spec.rb
|
106
|
+
- pivotal_to_pdf.gemspec
|
105
107
|
has_rdoc: true
|
106
108
|
homepage: https://github.com/ywen/pivotal_to_pdf
|
107
109
|
licenses: []
|