pivotal_to_pdf-formatters 0.0.3 → 0.0.4

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.
@@ -0,0 +1,13 @@
1
+ require_relative "default"
2
+ module PivotalToPdf
3
+ module Formatters
4
+ class Asian < Default
5
+
6
+ private
7
+
8
+ def setup_font(pdf)
9
+ pdf.font "#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -11,8 +11,7 @@ module PivotalToPdf
11
11
  :margin => [25, 25, 50, 25],
12
12
  :page_size => [302, 432]) do |pdf|
13
13
 
14
- # pdf.font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf"
15
- # pdf.start_new_page
14
+ setup_font(pdf)
16
15
 
17
16
  stories.each_with_index do |story, index|
18
17
  padding = 10
@@ -50,6 +49,10 @@ module PivotalToPdf
50
49
  puts "[!] There was an error while generating the PDF file... What happened was:".foreground(:red)
51
50
  raise
52
51
  end
52
+
53
+ private
54
+ def setup_font(pdf)
55
+ end
53
56
  end
54
57
  end
55
58
  end
@@ -1,5 +1,5 @@
1
1
  module PivotalToPdf
2
2
  module Formatters
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal_to_pdf-formatters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-14 00:00:00.000000000 Z
12
+ date: 2012-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -156,6 +156,7 @@ files:
156
156
  - README.md
157
157
  - Rakefile
158
158
  - lib/pivotal_to_pdf-formatters.rb
159
+ - lib/pivotal_to_pdf-formatters/asian.rb
159
160
  - lib/pivotal_to_pdf-formatters/base.rb
160
161
  - lib/pivotal_to_pdf-formatters/default.rb
161
162
  - lib/pivotal_to_pdf-formatters/teaser.rb