prawn_rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +15 -53
- data/VERSION +1 -0
- data/lib/prawn_rails.rb +7 -4
- data/prawn_rails.gemspec +49 -0
- metadata +11 -30
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,56 +1,18 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
require 'rake/gempackagetask'
|
5
1
|
require 'rubygems'
|
2
|
+
require 'jeweler'
|
6
3
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
s.add_dependency('rails', '>=3.0.0')
|
21
|
-
s.add_dependency('prawn', '>=0.8.4')
|
22
|
-
s.platform = Gem::Platform::RUBY
|
23
|
-
s.summary = "Integrates Prawn into Rails in a natural way"
|
24
|
-
s.description=<<-EOF
|
25
|
-
The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails.
|
26
|
-
EOF
|
27
|
-
s.files = PKG_FILES.to_a
|
28
|
-
s.require_path = "lib"
|
29
|
-
s.has_rdoc = false
|
30
|
-
s.extra_rdoc_files = ["README.rdoc"]
|
31
|
-
end
|
32
|
-
|
33
|
-
desc 'Default: create gem'
|
34
|
-
task :default => :gem
|
35
|
-
|
36
|
-
desc 'Turn this plugin into a gem.'
|
37
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
38
|
-
pkg.gem_spec = spec
|
39
|
-
end
|
40
|
-
|
41
|
-
desc 'Test the prawn_rails plugin.'
|
42
|
-
Rake::TestTask.new(:test) do |t|
|
43
|
-
t.libs << 'lib'
|
44
|
-
t.libs << 'test'
|
45
|
-
t.pattern = 'test/**/*_test.rb'
|
46
|
-
t.verbose = true
|
47
|
-
end
|
48
|
-
|
49
|
-
desc 'Generate documentation for the prawn_rails plugin.'
|
50
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
51
|
-
rdoc.rdoc_dir = 'rdoc'
|
52
|
-
rdoc.title = 'PrawnRails'
|
53
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
54
|
-
rdoc.rdoc_files.include('README')
|
55
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
4
|
+
Jeweler::Tasks.new do |gem|
|
5
|
+
gem.name = "prawn_rails"
|
6
|
+
gem.author = "Walton Hoops"
|
7
|
+
gem.email = "me@waltonhoops.com"
|
8
|
+
gem.homepage = "http://github.com/Volundr/prawn-rails"
|
9
|
+
gem.platform = Gem::Platform::RUBY
|
10
|
+
gem.summary = "Integrates Prawn into Rails in a natural way"
|
11
|
+
gem.description = "The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails."
|
12
|
+
gem.has_rdoc = false
|
13
|
+
gem.extra_rdoc_files = ["README.rdoc"]
|
14
|
+
gem.license = "MIT"
|
15
|
+
gem.add_dependency('rails', '>=3.0.0')
|
16
|
+
gem.add_dependency('prawn', '>=0.8.4')
|
56
17
|
end
|
18
|
+
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.5
|
data/lib/prawn_rails.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'prawn'
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
if Prawn::VERSION == "0.8.4"
|
4
|
+
require 'prawn/layout'
|
5
|
+
require 'prawn/security'
|
6
|
+
end
|
4
7
|
|
5
8
|
module Prawn
|
6
9
|
module Rails
|
@@ -21,8 +24,8 @@ module Prawn
|
|
21
24
|
def disposition(download, filename)
|
22
25
|
download = true if (filename && download == nil)
|
23
26
|
disposition = download ? "attachment;" : "inline;"
|
24
|
-
disposition += " filename
|
25
|
-
headers["Content-Disposition"]=disposition
|
27
|
+
disposition += " filename=\"#{filename}\"" if filename
|
28
|
+
headers["Content-Disposition"] = disposition
|
26
29
|
end
|
27
30
|
|
28
31
|
end
|
data/prawn_rails.gemspec
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{prawn_rails}
|
8
|
+
s.version = "0.0.5"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Walton Hoops"]
|
12
|
+
s.date = %q{2011-07-06}
|
13
|
+
s.description = %q{The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails.}
|
14
|
+
s.email = %q{me@waltonhoops.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"MIT-LICENSE",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"init.rb",
|
24
|
+
"lib/prawn_rails.rb",
|
25
|
+
"prawn_rails.gemspec",
|
26
|
+
"rails/init.rb"
|
27
|
+
]
|
28
|
+
s.homepage = %q{http://github.com/Volundr/prawn-rails}
|
29
|
+
s.licenses = ["MIT"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.6.2}
|
32
|
+
s.summary = %q{Integrates Prawn into Rails in a natural way}
|
33
|
+
|
34
|
+
if s.respond_to? :specification_version then
|
35
|
+
s.specification_version = 3
|
36
|
+
|
37
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
38
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
|
39
|
+
s.add_runtime_dependency(%q<prawn>, [">= 0.8.4"])
|
40
|
+
else
|
41
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
42
|
+
s.add_dependency(%q<prawn>, [">= 0.8.4"])
|
43
|
+
end
|
44
|
+
else
|
45
|
+
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
46
|
+
s.add_dependency(%q<prawn>, [">= 0.8.4"])
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prawn_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.5
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Walton Hoops
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2011-07-06 00:00:00 -06:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
- 0
|
34
24
|
version: 3.0.0
|
35
25
|
type: :runtime
|
36
26
|
version_requirements: *id001
|
@@ -42,15 +32,10 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ">="
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 55
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 8
|
49
|
-
- 4
|
50
35
|
version: 0.8.4
|
51
36
|
type: :runtime
|
52
37
|
version_requirements: *id002
|
53
|
-
description:
|
38
|
+
description: The prawn_rails gem provides a Prawn based view engine for creating PDFs with rails.
|
54
39
|
email: me@waltonhoops.com
|
55
40
|
executables: []
|
56
41
|
|
@@ -59,16 +44,18 @@ extensions: []
|
|
59
44
|
extra_rdoc_files:
|
60
45
|
- README.rdoc
|
61
46
|
files:
|
47
|
+
- MIT-LICENSE
|
62
48
|
- README.rdoc
|
63
|
-
- init.rb
|
64
49
|
- Rakefile
|
65
|
-
-
|
50
|
+
- VERSION
|
51
|
+
- init.rb
|
66
52
|
- lib/prawn_rails.rb
|
53
|
+
- prawn_rails.gemspec
|
67
54
|
- rails/init.rb
|
68
55
|
has_rdoc: true
|
69
56
|
homepage: http://github.com/Volundr/prawn-rails
|
70
|
-
licenses:
|
71
|
-
|
57
|
+
licenses:
|
58
|
+
- MIT
|
72
59
|
post_install_message:
|
73
60
|
rdoc_options: []
|
74
61
|
|
@@ -79,23 +66,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
66
|
requirements:
|
80
67
|
- - ">="
|
81
68
|
- !ruby/object:Gem::Version
|
82
|
-
hash: 3
|
83
|
-
segments:
|
84
|
-
- 0
|
85
69
|
version: "0"
|
86
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
71
|
none: false
|
88
72
|
requirements:
|
89
73
|
- - ">="
|
90
74
|
- !ruby/object:Gem::Version
|
91
|
-
hash: 3
|
92
|
-
segments:
|
93
|
-
- 0
|
94
75
|
version: "0"
|
95
76
|
requirements: []
|
96
77
|
|
97
78
|
rubyforge_project:
|
98
|
-
rubygems_version: 1.
|
79
|
+
rubygems_version: 1.6.2
|
99
80
|
signing_key:
|
100
81
|
specification_version: 3
|
101
82
|
summary: Integrates Prawn into Rails in a natural way
|