pivotal_to_pdf 0.6 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.7.1
2
+ * To support prawn 0.11.1
3
+ * To make the border thicker
1
4
  v0.6
2
5
  * The points section will be printed only for features. Bugs and Chores don't
3
6
  have points
data/Gemfile CHANGED
@@ -8,5 +8,5 @@ group :test do
8
8
  end
9
9
 
10
10
  group :test, :development do
11
- gem 'echoe'
11
+ gem 'echoe', "4.5.6"
12
12
  end
data/Gemfile.lock CHANGED
@@ -1,48 +1,50 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.0.3)
5
- activesupport (= 3.0.3)
4
+ Ascii85 (1.0.1)
5
+ activemodel (3.0.9)
6
+ activesupport (= 3.0.9)
6
7
  builder (~> 2.1.2)
7
- i18n (~> 0.4)
8
- activeresource (3.0.3)
9
- activemodel (= 3.0.3)
10
- activesupport (= 3.0.3)
11
- activesupport (3.0.3)
8
+ i18n (~> 0.5.0)
9
+ activeresource (3.0.9)
10
+ activemodel (= 3.0.9)
11
+ activesupport (= 3.0.9)
12
+ activesupport (3.0.9)
13
+ allison (2.0.3)
12
14
  builder (2.1.2)
13
15
  diff-lcs (1.1.2)
14
- echoe (4.3.1)
16
+ echoe (4.5.6)
17
+ allison
15
18
  gemcutter
16
19
  rubyforge
17
- gemcutter (0.6.1)
20
+ gemcutter (0.7.0)
18
21
  i18n (0.5.0)
19
- json_pure (1.4.6)
20
- prawn (0.8.4)
21
- prawn-core (>= 0.8.4, < 0.9)
22
- prawn-layout (>= 0.8.4, < 0.9)
23
- prawn-security (>= 0.8.4, < 0.9)
24
- prawn-core (0.8.4)
25
- prawn-layout (0.8.4)
26
- prawn-security (0.8.4)
27
- rainbow (1.1)
28
- rspec (2.2.0)
29
- rspec-core (~> 2.2)
30
- rspec-expectations (~> 2.2)
31
- rspec-mocks (~> 2.2)
32
- rspec-core (2.2.1)
33
- rspec-expectations (2.2.0)
22
+ json_pure (1.5.3)
23
+ pdf-reader (0.9.2)
24
+ Ascii85 (>= 0.9)
25
+ prawn (0.11.1)
26
+ pdf-reader (>= 0.9.0)
27
+ ttfunk (~> 1.0.0)
28
+ rainbow (1.1.1)
29
+ rspec (2.6.0)
30
+ rspec-core (~> 2.6.0)
31
+ rspec-expectations (~> 2.6.0)
32
+ rspec-mocks (~> 2.6.0)
33
+ rspec-core (2.6.4)
34
+ rspec-expectations (2.6.0)
34
35
  diff-lcs (~> 1.1.2)
35
- rspec-mocks (2.2.0)
36
+ rspec-mocks (2.6.0)
36
37
  rubyforge (2.0.4)
37
38
  json_pure (>= 1.1.7)
38
39
  thor (0.14.6)
40
+ ttfunk (1.0.1)
39
41
 
40
42
  PLATFORMS
41
43
  ruby
42
44
 
43
45
  DEPENDENCIES
44
46
  activeresource
45
- echoe
47
+ echoe (= 4.5.6)
46
48
  prawn
47
49
  rainbow
48
50
  rspec
data/Manifest CHANGED
@@ -10,7 +10,6 @@ lib/pivotal_to_pdf/iteration.rb
10
10
  lib/pivotal_to_pdf/pdf_writer.rb
11
11
  lib/pivotal_to_pdf/pivotal.rb
12
12
  lib/pivotal_to_pdf/story.rb
13
- pivotal_to_pdf.gemspec
14
13
  spec/pivotal_to_pdf/story_spec.rb
15
14
  spec/pivotal_to_pdf_bin_spec.rb
16
15
  spec/spec_helper.rb
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Echoe.new('pivotal_to_pdf') do |p|
5
5
  p.summary = "Convert Pivotal Tracker Stories to 4x6 PDF for printing"
6
6
  p.author = "Yi Wen"
7
7
  p.email = "hayafirst@gmail.com"
8
- p.runtime_dependencies = %w(activeresource prawn rainbow thor)
8
+ p.runtime_dependencies = [ 'activeresource', 'prawn 0.11.1', 'rainbow', 'thor' ]
9
9
  p.bin_files = [ "bin/pivotal_to_pdf" ]
10
10
  p.url = "https://github.com/ywen/pivotal_to_pdf"
11
11
  # p.ignore_pattern = ["bin/*"]
@@ -26,6 +26,7 @@ class PdfWriter
26
26
  pdf.stroke_color = story.story_color
27
27
  pdf.stroke_bounds
28
28
  width = 370
29
+ pdf.line_width=6
29
30
  # --- Write content
30
31
  pdf.bounding_box [pdf.bounds.left+padding, pdf.bounds.top-padding], :width => width do
31
32
  pdf.text story.name, :size => 14
@@ -36,6 +37,8 @@ class PdfWriter
36
37
  pdf.text story.description || "", :size => 10
37
38
  pdf.fill_color "000000"
38
39
  end
40
+ pdf.line(pdf.bounds.bottom_left, pdf.bounds.bottom_right)
41
+ pdf.stroke_bounds
39
42
 
40
43
  pdf.text_box story.points, :size => 12, :at => [12, 50], :width => width-18 unless story.points.nil?
41
44
  pdf.text_box "Owner: " + (story.respond_to?(:owned_by) ? story.owned_by : "None"),
@@ -46,7 +49,7 @@ class PdfWriter
46
49
  pdf.fill_color "000000"
47
50
  pdf.start_new_page unless index == stories.size - 1
48
51
  end
49
- pdf.number_pages "<page>/<total>", [pdf.bounds.right-16, -28]
52
+ pdf.number_pages "<page>/<total>", {:at => [pdf.bounds.right - 16, -28]}
50
53
 
51
54
  puts ">>> Generated PDF file in '#{story_or_iteration.id}.pdf'".foreground(:green)
52
55
  end
@@ -18,8 +18,10 @@ class Story < Pivotal
18
18
  private
19
19
 
20
20
  ["feature", "bug", "chore"].each do |type_str|
21
- define_method "#{type_str}?".to_sym do
22
- self.story_type == type_str
21
+ class_eval <<-EOS
22
+ def #{type_str}?
23
+ self.story_type == "#{type_str}"
23
24
  end
25
+ EOS
24
26
  end
25
27
  end
@@ -2,21 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pivotal_to_pdf}
5
- s.version = "0.6"
5
+ s.version = "0.7.1"
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{2011-04-26}
9
+ s.date = %q{2011-06-20}
10
+ s.default_executable = %q{pivotal_to_pdf}
10
11
  s.description = %q{Convert Pivotal Tracker Stories to 4x6 PDF for printing so that you can stick the card to your story board}
11
12
  s.email = %q{hayafirst@gmail.com}
12
13
  s.executables = ["pivotal_to_pdf"]
13
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"]
14
- 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", "pivotal_to_pdf.gemspec", "spec/pivotal_to_pdf/story_spec.rb", "spec/pivotal_to_pdf_bin_spec.rb", "spec/spec_helper.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", "spec/pivotal_to_pdf/story_spec.rb", "spec/pivotal_to_pdf_bin_spec.rb", "spec/spec_helper.rb", "tasks/spec.rb", "pivotal_to_pdf.gemspec"]
15
16
  s.homepage = %q{https://github.com/ywen/pivotal_to_pdf}
16
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pivotal_to_pdf", "--main", "README.md"]
17
18
  s.require_paths = ["lib"]
18
19
  s.rubyforge_project = %q{pivotal_to_pdf}
19
- s.rubygems_version = %q{1.7.2}
20
+ s.rubygems_version = %q{1.4.0}
20
21
  s.summary = %q{Convert Pivotal Tracker Stories to 4x6 PDF for printing}
21
22
 
22
23
  if s.respond_to? :specification_version then
@@ -24,18 +25,18 @@ Gem::Specification.new do |s|
24
25
 
25
26
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
27
  s.add_runtime_dependency(%q<activeresource>, [">= 0"])
27
- s.add_runtime_dependency(%q<prawn>, [">= 0"])
28
+ s.add_runtime_dependency(%q<prawn>, ["= 0.11.1"])
28
29
  s.add_runtime_dependency(%q<rainbow>, [">= 0"])
29
30
  s.add_runtime_dependency(%q<thor>, [">= 0"])
30
31
  else
31
32
  s.add_dependency(%q<activeresource>, [">= 0"])
32
- s.add_dependency(%q<prawn>, [">= 0"])
33
+ s.add_dependency(%q<prawn>, ["= 0.11.1"])
33
34
  s.add_dependency(%q<rainbow>, [">= 0"])
34
35
  s.add_dependency(%q<thor>, [">= 0"])
35
36
  end
36
37
  else
37
38
  s.add_dependency(%q<activeresource>, [">= 0"])
38
- s.add_dependency(%q<prawn>, [">= 0"])
39
+ s.add_dependency(%q<prawn>, ["= 0.11.1"])
39
40
  s.add_dependency(%q<rainbow>, [">= 0"])
40
41
  s.add_dependency(%q<thor>, [">= 0"])
41
42
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal_to_pdf
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 1
4
5
  prerelease:
5
- version: "0.6"
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 1
10
+ version: 0.7.1
6
11
  platform: ruby
7
12
  authors:
8
13
  - Yi Wen
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-04-26 00:00:00 Z
18
+ date: 2011-06-20 00:00:00 -05:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: activeresource
@@ -20,6 +26,9 @@ dependencies:
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
33
  type: :runtime
25
34
  version_requirements: *id001
@@ -29,9 +38,14 @@ dependencies:
29
38
  requirement: &id002 !ruby/object:Gem::Requirement
30
39
  none: false
31
40
  requirements:
32
- - - ">="
41
+ - - "="
33
42
  - !ruby/object:Gem::Version
34
- version: "0"
43
+ hash: 49
44
+ segments:
45
+ - 0
46
+ - 11
47
+ - 1
48
+ version: 0.11.1
35
49
  type: :runtime
36
50
  version_requirements: *id002
37
51
  - !ruby/object:Gem::Dependency
@@ -42,6 +56,9 @@ dependencies:
42
56
  requirements:
43
57
  - - ">="
44
58
  - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
45
62
  version: "0"
46
63
  type: :runtime
47
64
  version_requirements: *id003
@@ -53,6 +70,9 @@ dependencies:
53
70
  requirements:
54
71
  - - ">="
55
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
56
76
  version: "0"
57
77
  type: :runtime
58
78
  version_requirements: *id004
@@ -85,11 +105,12 @@ files:
85
105
  - lib/pivotal_to_pdf/pdf_writer.rb
86
106
  - lib/pivotal_to_pdf/pivotal.rb
87
107
  - lib/pivotal_to_pdf/story.rb
88
- - pivotal_to_pdf.gemspec
89
108
  - spec/pivotal_to_pdf/story_spec.rb
90
109
  - spec/pivotal_to_pdf_bin_spec.rb
91
110
  - spec/spec_helper.rb
92
111
  - tasks/spec.rb
112
+ - pivotal_to_pdf.gemspec
113
+ has_rdoc: true
93
114
  homepage: https://github.com/ywen/pivotal_to_pdf
94
115
  licenses: []
95
116
 
@@ -108,17 +129,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
129
  requirements:
109
130
  - - ">="
110
131
  - !ruby/object:Gem::Version
132
+ hash: 3
133
+ segments:
134
+ - 0
111
135
  version: "0"
112
136
  required_rubygems_version: !ruby/object:Gem::Requirement
113
137
  none: false
114
138
  requirements:
115
139
  - - ">="
116
140
  - !ruby/object:Gem::Version
141
+ hash: 11
142
+ segments:
143
+ - 1
144
+ - 2
117
145
  version: "1.2"
118
146
  requirements: []
119
147
 
120
148
  rubyforge_project: pivotal_to_pdf
121
- rubygems_version: 1.7.2
149
+ rubygems_version: 1.4.0
122
150
  signing_key:
123
151
  specification_version: 3
124
152
  summary: Convert Pivotal Tracker Stories to 4x6 PDF for printing