pdf-wrapper 0.2.1 → 0.3.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/specs/text_spec.rb CHANGED
@@ -67,7 +67,7 @@ context "The PDF::Wrapper class" do
67
67
 
68
68
  # ensure the text is placed in the right location
69
69
  params = receiver.first_occurance_of(:set_text_matrix_and_text_line_matrix)[:args]
70
- params[4].should eql(@pdf.margin_left.to_f)
70
+ params[4].should eql(@pdf.margin_left)
71
71
  end
72
72
 
73
73
  specify "should be able to align text on the left when using the text method" do
@@ -80,7 +80,7 @@ context "The PDF::Wrapper class" do
80
80
 
81
81
  # ensure the text is placed in the right location
82
82
  params = receiver.first_occurance_of(:set_text_matrix_and_text_line_matrix)[:args]
83
- params[4].should eql(@pdf.margin_left.to_f)
83
+ params[4].should eql(@pdf.margin_left)
84
84
  end
85
85
 
86
86
  specify "should be able to align text in the centre when using the text method" do
@@ -385,8 +385,8 @@ context "The PDF::Wrapper class" do
385
385
  receiver = PageSizeReceiver.new
386
386
  reader = PDF::Reader.string(output.string, receiver)
387
387
 
388
- receiver.pages[0].should eql([0.0, 0.0, 734.0, 772.0])
389
- receiver.pages[1].should eql([0.0, 0.0, 595.28, 841.89])
388
+ receiver.pages[0].should eql([0, 0, 734, 772])
389
+ receiver.pages[1].should eql([0, 0, 595.28, 841.89])
390
390
  end
391
391
 
392
392
  specify "should allow an existing file to be used as a template for page 2" do
@@ -396,8 +396,8 @@ context "The PDF::Wrapper class" do
396
396
  receiver = PageSizeReceiver.new
397
397
  reader = PDF::Reader.string(@output.string, receiver)
398
398
 
399
- receiver.pages[0].should eql([0.0, 0.0, 595.28, 841.89])
400
- receiver.pages[1].should eql([0.0, 0.0, 734.0, 772.0])
399
+ receiver.pages[0].should eql([0, 0, 595.28, 841.89])
400
+ receiver.pages[1].should eql([0, 0, 734, 772])
401
401
  end
402
402
 
403
403
  specify "should correctly convert a user x co-ordinate to device" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-18 00:00:00 +11:00
12
+ date: 2009-10-15 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -45,18 +45,19 @@ files:
45
45
  - examples/utf8.rb
46
46
  - examples/varied_page_size.rb
47
47
  - examples/table_fixed_col_width.rb
48
- - lib/pdf
48
+ - examples/table_images.rb
49
+ - examples/table_simple.rb
49
50
  - lib/pdf/core.rb
50
51
  - lib/pdf/wrapper.rb
51
52
  - lib/pdf/errors.rb
52
- - lib/pdf/wrapper
53
53
  - lib/pdf/wrapper/graphics.rb
54
54
  - lib/pdf/wrapper/images.rb
55
55
  - lib/pdf/wrapper/loading.rb
56
56
  - lib/pdf/wrapper/page.rb
57
57
  - lib/pdf/wrapper/table.rb
58
58
  - lib/pdf/wrapper/text.rb
59
- - specs/data
59
+ - lib/pdf/wrapper/text_cell.rb
60
+ - lib/pdf/wrapper/text_image_cell.rb
60
61
  - specs/data/google.png
61
62
  - specs/data/iso-2022-jp.txt
62
63
  - specs/data/orc.svg
@@ -81,6 +82,8 @@ files:
81
82
  - TODO
82
83
  has_rdoc: true
83
84
  homepage: http://pdf-wrapper.rubyforge.org/
85
+ licenses: []
86
+
84
87
  post_install_message:
85
88
  rdoc_options:
86
89
  - --title
@@ -105,9 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
108
  requirements: []
106
109
 
107
110
  rubyforge_project: pdf-wrapper
108
- rubygems_version: 1.2.0
111
+ rubygems_version: 1.3.5
109
112
  signing_key:
110
- specification_version: 2
113
+ specification_version: 3
111
114
  summary: A PDF generating library built on top of cairo
112
115
  test_files: []
113
116