prawn-table 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bb26b3cd806b99d95c80bc1b14e54727e53ce60
4
- data.tar.gz: 9526ad3d0b13f33fc113000409e43e1674604447
3
+ metadata.gz: a4a6491060408a154f0b6b70579d776f97624436
4
+ data.tar.gz: d470ea52f9d97111fe2176dbe30382b4ecd9335f
5
5
  SHA512:
6
- metadata.gz: 46f037412934af66b44aebb2b59e46f62161b84426e5d176ebc222211fc9984d8aef573e9c6aff85fb34f8d33757d16192c8de763150ae6735df47746b2e4462
7
- data.tar.gz: ad550c5d510339f9464f84c2b8628222701d6163bbb5b05d8e76f08431939c4c41d17e6db93b01c650a6c3743d16176a18f506a1a2b30412ff1552161ad1a176
6
+ metadata.gz: b710e1ae453b7008b313dc1a44b6e53f8930573727a4442fde65b3600fc7b40e867f9a21c345c97004ce9586ba376bec41d09eb5f744934ad2e1491e271fd4df
7
+ data.tar.gz: 6fdb44072676f245e942f33c8d0c9b2fd8b47d99aa8dceef9866ed0ba2ee49d65dcbb6d788ed228789f628e6fe36544db08fb6a59ff43cc9853abab56f55588d
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "prawn", :git => "https://github.com/prawnpdf/prawn.git",
4
- :branch => "extract_tables"
5
3
  gemspec
@@ -6,8 +6,8 @@ require File.expand_path(File.join(File.dirname(__FILE__),
6
6
  %w[.. example_helper]))
7
7
 
8
8
  Prawn::ManualBuilder::Example.generate("table.pdf", :page_size => "FOLIO") do
9
-
10
9
  package "table" do |p|
10
+ p.name = "Prawn::Table"
11
11
 
12
12
  p.section "Basics" do |s|
13
13
  s.example "creation"
data/prawn-table.gemspec CHANGED
@@ -16,14 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.rubyforge_project = "prawn"
17
17
  spec.licenses = ['RUBY', 'GPL-2', 'GPL-3']
18
18
 
19
- spec.add_development_dependency('prawn', '~> 1.2.0')
19
+ spec.add_development_dependency('prawn', '~> 1.2.1')
20
20
  spec.add_development_dependency('pdf-inspector', '~> 1.1.0')
21
21
  spec.add_development_dependency('yard')
22
22
  spec.add_development_dependency('rspec', '2.14.1')
23
23
  spec.add_development_dependency('mocha')
24
24
  spec.add_development_dependency('rake')
25
25
  spec.add_development_dependency('simplecov')
26
- spec.add_development_dependency('prawn-manual_builder', ">= 0.1.3")
26
+ spec.add_development_dependency('prawn-manual_builder', ">= 0.2.0")
27
27
  spec.add_development_dependency('pdf-reader', '~>1.2')
28
28
 
29
29
  spec.homepage = "http://prawn.majesticseacreature.com"
data/spec/cell_spec.rb CHANGED
@@ -471,12 +471,7 @@ describe "Prawn::Table::Cell" do
471
471
  end
472
472
 
473
473
  it "supports variant styles of the current font" do
474
- font_path = "#{Prawn::BASEDIR}/data/fonts/Panic+Sans.dfont"
475
- @pdf.font_families.merge!("Panic Sans" => {
476
- :normal => { :file => font_path, :font => "PanicSans" },
477
- :bold => { :file => font_path, :font => "PanicSans-Bold" },
478
- })
479
- @pdf.font "Panic Sans"
474
+ @pdf.font "Courier"
480
475
 
481
476
  c = cell(:content => "text", :font_style => :bold)
482
477
 
@@ -484,7 +479,7 @@ describe "Prawn::Table::Cell" do
484
479
  Prawn::Text::Box.expects(:new).checking do |text, options|
485
480
  text.should == "text"
486
481
  options[:style].should == :bold
487
- @pdf.font.family.should == 'Panic Sans'
482
+ @pdf.font.family.should == 'Courier'
488
483
  end.at_least_once.returns(box)
489
484
 
490
485
  c.draw
@@ -492,19 +487,14 @@ describe "Prawn::Table::Cell" do
492
487
 
493
488
 
494
489
  it "uses the style of the current font if none given" do
495
- font_path = "#{Prawn::BASEDIR}/data/fonts/Panic+Sans.dfont"
496
- @pdf.font_families.merge!("Panic Sans" => {
497
- :normal => { :file => font_path, :font => "PanicSans" },
498
- :bold => { :file => font_path, :font => "PanicSans-Bold" },
499
- })
500
- @pdf.font "Panic Sans", :style => :bold
490
+ @pdf.font "Courier", :style => :bold
501
491
 
502
492
  c = cell(:content => "text")
503
493
 
504
494
  box = Prawn::Text::Box.new("text", :document => @pdf)
505
495
  Prawn::Text::Box.expects(:new).checking do |text, options|
506
496
  text.should == "text"
507
- @pdf.font.family.should == 'Panic Sans'
497
+ @pdf.font.family.should == 'Courier'
508
498
  @pdf.font.options[:style].should == :bold
509
499
  end.at_least_once.returns(box)
510
500
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-07-23 00:00:00.000000000 Z
16
+ date: 2014-07-27 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: prawn
@@ -21,14 +21,14 @@ dependencies:
21
21
  requirements:
22
22
  - - "~>"
23
23
  - !ruby/object:Gem::Version
24
- version: 1.2.0
24
+ version: 1.2.1
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - "~>"
30
30
  - !ruby/object:Gem::Version
31
- version: 1.2.0
31
+ version: 1.2.1
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: pdf-inspector
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -119,14 +119,14 @@ dependencies:
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 0.1.3
122
+ version: 0.2.0
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 0.1.3
129
+ version: 0.2.0
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: pdf-reader
132
132
  requirement: !ruby/object:Gem::Requirement