pdf-wrapper 0.3.4 → 0.3.5

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.
@@ -50,21 +50,15 @@ James Healy <jimmy@deefa.com>
50
50
 
51
51
  = Dependencies
52
52
 
53
- * ruby/cairo[http://cairographics.org/rcairo/]
54
- * ruby/pango[http://ruby-gnome2.sourceforge.jp/] (optional, required to add text)
55
- * ruby/rsvg2[http://ruby-gnome2.sourceforge.jp/] (optional, required for SVG support)
56
- * ruby/gdkpixbuf[http://ruby-gnome2.sourceforge.jp/] (optional, required for GIF/JPG support)
57
- * ruby/poppler[http://ruby-gnome2.sourceforge.jp/] (optional, required for embedding PDF images)
58
-
59
- These are all ruby bindings to C libraries. On Debian/Ubuntu based systems
60
- (which I develop on) you can get them by running:
61
-
62
- aptitude install libcairo-ruby libpango1-ruby librsvg2-ruby libpoppler-glib-ruby
53
+ As of September 2010 all these dependencies are satisfied by gems. All of them are bindings
54
+ to C libraries, so you will need the libraries and headers installed on your system
55
+ before installing them.
63
56
 
64
- For users of other systems, I'd love to receive info on how you set these bindings up.
65
-
66
- ruby/cairo is also available as a gem (cairo), which may be installable if you have a copy
67
- of the cairo source available on your system.
57
+ * ruby/cairo[http://cairographics.org/rcairo/]
58
+ * ruby/pango[http://ruby-gnome2.sourceforge.jp/]
59
+ * ruby/rsvg2[http://ruby-gnome2.sourceforge.jp/]
60
+ * ruby/gdkpixbuf[http://ruby-gnome2.sourceforge.jp/]
61
+ * ruby/poppler[http://ruby-gnome2.sourceforge.jp/]
68
62
 
69
63
  = Compatibility
70
64
 
data/Rakefile CHANGED
@@ -8,7 +8,8 @@ require 'spec/rake/spectask'
8
8
  require 'roodi'
9
9
  require 'roodi_task'
10
10
 
11
- PKG_VERSION = "0.3.4"
11
+
12
+ PKG_VERSION = "0.3.5"
12
13
  PKG_NAME = "pdf-wrapper"
13
14
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14
15
 
@@ -21,9 +22,7 @@ Spec::Rake::SpecTask.new("spec") do |t|
21
22
  # spec files listed explicitly so that load_spec is the first one run
22
23
  t.spec_files = ['specs/load_spec.rb','specs/image_spec.rb','specs/graphics_spec.rb','specs/tables_spec.rb','specs/text_spec.rb','specs/wrapper_spec.rb']
23
24
  t.spec_opts = ['-c']
24
- t.rcov = true
25
- t.rcov_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + "/rcov"
26
- t.rcov_opts = ["--exclude","spec.*\.rb","--exclude",".*cairo.*","--exclude",".*rcov.*","--exclude",".*rspec.*","--exclude",".*pdf-reader.*", "--exclude",".*gems.*"]
25
+ t.libs << File.dirname(__FILE__) + "/specs"
27
26
  end
28
27
 
29
28
  # generate specdocs
@@ -78,10 +77,10 @@ spec = Gem::Specification.new do |spec|
78
77
  spec.rubyforge_project = "pdf-wrapper"
79
78
  spec.description = "A unicode aware PDF writing library that uses the ruby bindings to various c libraries ( like cairo, pango, poppler and rsvg ) to do the heavy lifting."
80
79
  spec.add_dependency("cairo", "~>1.8")
81
- #spec.add_dependency("pango")
82
- #spec.add_dependency("poppler")
83
- #spec.add_dependency("gdkpixbuf")
84
- # TODO - add rsvg2
80
+ spec.add_dependency("pango")
81
+ spec.add_dependency("poppler")
82
+ spec.add_dependency("gdk_pixbuf2")
83
+ spec.add_dependency("rsvg2")
85
84
  end
86
85
 
87
86
  # package the library into a gem
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ require 'spec_helper'
4
4
 
5
5
  context "The PDF::Wrapper class" do
6
6
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ require 'spec_helper'
4
4
 
5
5
  context "The PDF::Wrapper class" do
6
6
 
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ puts $LOAD_PATH.inspect
4
+ require 'spec_helper'
4
5
 
5
6
  context "The PDF::Wrapper class" do
6
7
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ require 'spec_helper'
4
4
 
5
5
  context PDF::Wrapper do
6
6
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ require 'spec_helper'
4
4
 
5
5
  describe PDF::Wrapper do
6
6
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- require File.dirname(__FILE__) + '/spec_helper'
3
+ require 'spec_helper'
4
4
 
5
5
  context "The PDF::Wrapper class" do
6
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Healy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-13 00:00:00 +10:00
18
+ date: 2010-09-29 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -33,6 +33,62 @@ dependencies:
33
33
  version: "1.8"
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: pango
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: poppler
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ type: :runtime
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: gdk_pixbuf2
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ type: :runtime
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ name: rsvg2
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :runtime
91
+ version_requirements: *id005
36
92
  description: A unicode aware PDF writing library that uses the ruby bindings to various c libraries ( like cairo, pango, poppler and rsvg ) to do the heavy lifting.
37
93
  email: jimmy@deefa.com
38
94
  executables: []